added installing my apps + custom fastfetch + fixes
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
set $base ~/.config/sway
|
||||
set $base ~/.config/sway/
|
||||
|
||||
xwayland enable
|
||||
include ~/.config/mute/monitors.conf
|
||||
|
||||
exec_always sh -c 'BASE_SWAY="$base" /usr/bin/python $base/main/boot.py'
|
||||
exec_always env BASE_SWAY=$base /usr/bin/python3 $base/main/boot.py
|
||||
@@ -22,8 +22,7 @@ def apply_safe_config(sway):
|
||||
|
||||
|
||||
def boot(base):
|
||||
base = os.path.expanduser(base) if base else ""
|
||||
|
||||
base = os.path.expanduser(base)
|
||||
with open(Logs, "w") as f:
|
||||
return subprocess.run(
|
||||
["python3", os.path.join(base, "main/swayconfig.py")],
|
||||
@@ -35,7 +34,9 @@ def boot(base):
|
||||
def main():
|
||||
sway = Swayipc()
|
||||
base = get_base()
|
||||
|
||||
if not base:
|
||||
print("BASE_SWAY isnt defined correctly. This WILL cause problems with startup.")
|
||||
return
|
||||
rc = boot(base)
|
||||
|
||||
if rc != 0:
|
||||
|
||||
@@ -13,7 +13,7 @@ Recordings = Path.home() / "records"
|
||||
Tmp = tempfile.gettempdir()
|
||||
|
||||
def run(cmd):
|
||||
return subprocess.run(cmd)
|
||||
return subprocess.Popen(c, shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
|
||||
def find_focused_pid(node):
|
||||
if isinstance(node, dict):
|
||||
|
||||
@@ -31,11 +31,11 @@ def apply_ui_and_environment(sway):
|
||||
sway.cmd("exec_always gsettings set org.gnome.desktop.interface.desktop-app-info-default-handler 'librewolf.desktop'")
|
||||
|
||||
run_sh("/usr/lib/xdg-desktop-portal -r")
|
||||
os.environ["GTK_USE_PORTAL"] = "0"
|
||||
os.environ["XDG_CURRENT_DESKTOP"] = "sway"
|
||||
os.environ["XDG_SESSION_TYPE"] = "wayland"
|
||||
os.environ["XDG_PORTAL_BACKEND"] = "wlroots"
|
||||
|
||||
sway.cmd("setenv GTK_USE_PORTAL 0")
|
||||
sway.cmd("setenv XDG_CURRENT_DESKTOP sway")
|
||||
sway.cmd("setenv XDG_SESSION_TYPE wayland")
|
||||
sway.cmd("setenv XDG_PORTAL_BACKEND wlroots")
|
||||
|
||||
run_sh(f"swaybg -i {base}/wallpaper/metrowaymaka.png -m fill")
|
||||
run_sh("blueman-applet")
|
||||
run_sh("/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1")
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# boot depends on it and if u break it u get no safe mode.
|
||||
from pathlib import Path
|
||||
import os
|
||||
import base64
|
||||
|
||||
Vpn_cache = Path("/tmp/vpn_country.cache")
|
||||
Media_flag = Path("/tmp/media_active")
|
||||
|
||||
Reference in New Issue
Block a user