diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2026-10-28 23:12:20 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2026-10-28 23:12:20 +0100 |
| commit | d35bd1184bbe4b67c3dc9d8bcc661bbd4cd391be (patch) | |
| tree | 2cea093bd86b60275809dc8fb16deef5eaae5227 /sway | |
| parent | 890e05c939d161e9135e2330e0c3837837897511 (diff) | |
.
Diffstat (limited to 'sway')
| -rw-r--r-- | sway/config | 4 | ||||
| -rwxr-xr-x | sway/run-sway.sh | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sway/config b/sway/config index a8b0b02..ad17c25 100644 --- a/sway/config +++ b/sway/config @@ -20,8 +20,8 @@ bindsym { XF86MonBrightnessDown exec brightnessctl set 5%- $mod+Return exec foot - $mod+space exec wofi - $mod+Tab layout toggle + $mod+space exec fuzzel + $mod+Tab layout toggle all $mod+Shift+q kill $mod+Shift+r reload diff --git a/sway/run-sway.sh b/sway/run-sway.sh index 3b7b01b..6f6fcfb 100755 --- a/sway/run-sway.sh +++ b/sway/run-sway.sh @@ -5,8 +5,7 @@ exec >~/.sway.log 2>&1 export QT_QPA_PLATFORM=wayland export XDG_CURRENT_DESKTOP=sway -if ( ( command -v systemctl && systemctl --user is-system-running ) || - pgrep -U $(id -u) dbus-daemon ) >/dev/null; then +if [ "$(ps -p 1 -o comm=)" = "systemd" ] || [ -n "$DBUS_SESSION_BUS_ADDRESS" ]; then exec sway else |
