From 4a26f86311e71068e1417166fcc551975d1bc1dc Mon Sep 17 00:00:00 2001 From: BluishHumility Date: Wed, 18 Sep 2024 21:18:07 -0400 Subject: [PATCH] feat(sway-autostart): drop dex in favor of using autostart_applications config The firewall-applet is failing to launch with dex (it core dumps because it can't use "wayland" for QT_QPA_PLATFORM), and nm-applet is already being launched from the autostart_applications config, so the only thing dex is actually doing is starting the Welcome App. This commit drops dex in favor of setting all apps that need to be autostarted in the Sway config, where there is more flexibility with setting needed environment variables or making other adjustments. Additionally, this configuration choice will not inherit conflicts from other autostart processes if users are running multiple environments (see https://github.com/EndeavourOS-Community-Editions/sway/pull/84). * Remove dex from packages-repository.txt and from autostart_applications config * Add firewall-applet and eos-welcome to autostart_applications config --- .config/sway/config.d/autostart_applications | 11 +++++++---- packages-repository.txt | 1 - 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.config/sway/config.d/autostart_applications b/.config/sway/config.d/autostart_applications index a922371..ab417b2 100644 --- a/.config/sway/config.d/autostart_applications +++ b/.config/sway/config.d/autostart_applications @@ -14,9 +14,6 @@ exec hash dbus-update-activation-environment 2>/dev/null && \ # Desktop notifications exec mako -# Network Applet -exec nm-applet --indicator - # Start foot server exec_always --no-startup-id foot --server @@ -27,8 +24,14 @@ exec autotiling exec wl-paste --type text --watch cliphist store exec wl-paste --type image --watch cliphist store +# Network Applet +exec nm-applet --indicator + +# Firewall Applet +exec QT_QPA_PLATFORM=xcb firewall-applet + # Welcome App -exec dex -a -e sway -s /etc/xdg/autostart/:~/.config/autostart/ +exec eos-welcome --startdelay=3 # Sway Fader # exec python3 ~/.config/sway/scripts/swayfader.py diff --git a/packages-repository.txt b/packages-repository.txt index 78c6232..4555d8b 100644 --- a/packages-repository.txt +++ b/packages-repository.txt @@ -5,7 +5,6 @@ awesome-terminal-fonts azote brightnessctl cliphist -dex egl-wayland file-roller foot