From 3295a6339ae66c25b7fc75da67b637f8028395f6 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 18 Dec 2024 22:30:48 +0100 Subject: [PATCH] Update .config/sway/config.d/application_defaults Update .config/sway/config.d/autostart_applications --- dot_config/sway/config.d/application_defaults | 7 ++++- .../sway/config.d/autostart_applications | 31 +++++++++++++------ 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/dot_config/sway/config.d/application_defaults b/dot_config/sway/config.d/application_defaults index 4c70974..63052db 100644 --- a/dot_config/sway/config.d/application_defaults +++ b/dot_config/sway/config.d/application_defaults @@ -1,10 +1,12 @@ # Assign workspaces assign [app_id="firefox"] 2 for_window [app_id="firefox"] focus - assign [class="firefox"] 2 for_window [class="firefox"] focus +assign [app_id="zen-alpha"] 2 +for_window [app_id="zen-alpha"] focus + assign [class=Element] 3 for_window [class="Element"] focus @@ -51,8 +53,11 @@ for_window [app_id="xsensors"] floating enable for_window [title="Save File"] floating enable for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill for_window [class ="Google-chrome"] floating disable +for_window [title="waybar_htop"] floating enable, resize set width 70 ppt height 70 ppt +for_window [title="waybar_nmtui"] floating enable # Inhibit idle for_window [app_id="firefox"] inhibit_idle fullscreen +for_window [app_id="zen-alpha"] inhibit_idle fullscreen for_window [app_id="Chromium"] inhibit_idle fullscreen for_window [class="steam_app_582010"] inhibit_idle fullscreen diff --git a/dot_config/sway/config.d/autostart_applications b/dot_config/sway/config.d/autostart_applications index 8e4b36d..50743b7 100644 --- a/dot_config/sway/config.d/autostart_applications +++ b/dot_config/sway/config.d/autostart_applications @@ -1,21 +1,34 @@ # Auth with polkit-gnome: exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +# Import environment variables for user systemd service manager +exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK + +# Update dbux environments with display variables +exec hash dbus-update-activation-environment 2>/dev/null && \ + dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK + # Desktop notifications exec mako -exec fcitx5 +# Start foot server +exec_always --no-startup-id foot --server +# Autotiling +exec autotiling + +# cliphist +exec wl-paste --type text --watch cliphist store +exec wl-paste --type image --watch cliphist store + # Network Applet exec nm-applet --indicator -# GTK3 applications take a long time to start -exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK -exec hash dbus-update-activation-environment 2>/dev/null && \ - dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK - -# Welcome App -exec dex -a -s /etc/xdg/autostart/:~/.config/autostart/ +# Firewall Applet +exec sleep 2 && firewall-applet # Sway Fader -# exec python3 ~/.config/sway/scripts/swayfader.py +# exec python3 ~/.config/sway/scripts/swayfader.py + +# nwg-drawer +exec_always nwg-drawer -r -c 7 -is 90 -mb 10 -ml 50 -mr 50 -mt 10