Fix sway session setup and migrate waybar to sway modules

- Start xdg-desktop-portal-wlr and sway-session.target for proper portal init
- Re-enable systemd/dbus environment import for Wayland session vars
- Move hypridle startup earlier
- Switch waybar left modules from hyprland/* to sway/*
This commit is contained in:
2026-06-10 18:10:43 -07:00
parent b4b2ca0d43
commit cc949db097
2 changed files with 10 additions and 7 deletions
+7 -4
View File
@@ -52,11 +52,13 @@ exec_always --no-startup-id '/home/work/.config/sway/scripts/clamshell-mode.sh'
seat seat0 xcursor_theme Adwaita 35
exec systemctl --user start xdg-desktop-portal-wlr.service
#exec pipewire
exec swaync
exec shikane
exec nm-applet
exec blueman-applet
exec hypridle
exec systemctl --user start hyperolkitagent
exec waybar -c ~/.config/sway/waybar/config.jsonc -s ~/.config/sway/waybar/style.css
@@ -64,7 +66,6 @@ exec flatpak run com.github.wwmm.easyeffects -w
exec xrdb -merge ~/.Xresources
exec wl-paste -t text --watch clipman store --no-persist
exec hypridle
#exec gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
#exec mpd
@@ -91,7 +92,9 @@ bindsym $mod+Ctrl+y exec : | wl-copy -p
#default_border pixel 2
#default_floating_border pixel 2
#exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP
#exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway XDG_SESSION_DESKTOP=sway
exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP WAYLAND_DISPLAY SWAYSOCK
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway XDG_SESSION_DESKTOP=sway
# Activate graphical-session.target so xdg-desktop-portal (Requisite=graphical-session.target) can start
exec systemctl --user start sway-session.target
#exec --no-startup-id dbus-update-activation-environment --all
+3 -3
View File
@@ -2,9 +2,9 @@
{
"spacing": 2, // Gaps between modules (4px)
"modules-left": [
"hyprland/workspaces",
"hyprland/submap",
"hyprland/window"
"sway/workspaces",
"sway/submap",
"sway/window"
],
//"modules-center": [
//"sway/window"