diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2024-06-01 21:49:19 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2024-06-01 21:49:19 +0200 |
| commit | 9dd5082688f18e0f887de9ff31d1fb28ba5aa14c (patch) | |
| tree | 374e46fdb7bf3fd047faa5f3c7a628511c0964fe /sway | |
| parent | 2718a4de5389cfe5287f2289b0e46d8509e2aeab (diff) | |
.
Diffstat (limited to 'sway')
| -rw-r--r-- | sway/config | 2 | ||||
| -rwxr-xr-x | sway/init.sh | 1 | ||||
| -rwxr-xr-x | sway/run-sway.sh | 5 |
3 files changed, 5 insertions, 3 deletions
diff --git a/sway/config b/sway/config index 4cf9201..61ad468 100644 --- a/sway/config +++ b/sway/config @@ -15,7 +15,7 @@ assign [app_id="^tmux_term$"] 9:term exec ~/.config/sway/init.sh bindsym { - $mod+Return exec alacritty + $mod+Return exec foot $mod+space exec ~/.dotfiles/wofi/run.sh $mod+Tab layout toggle diff --git a/sway/init.sh b/sway/init.sh index d0c5e49..b478aaa 100755 --- a/sway/init.sh +++ b/sway/init.sh @@ -21,6 +21,7 @@ if command -v systemctl > /dev/null; then systemctl --user restart xdg-desktop-portal systemctl --user restart xdg-desktop-portal-wlr + systemctl --user restart xdg-desktop-portal-gtk systemctl --user restart plasma-kactivitymanagerd else dbus-update-activation-environment WAYLAND_DISPLAY \ diff --git a/sway/run-sway.sh b/sway/run-sway.sh index ed0c0d7..763d83f 100755 --- a/sway/run-sway.sh +++ b/sway/run-sway.sh @@ -1,9 +1,10 @@ #!/bin/sh +exec > ~/.sway.log 2>&1 if ( ( command -v systemctl && systemctl --user is-system-running ) || pgrep -U $(id -u) dbus-daemon ) > /dev/null; then - exec sway > ~/.sway.log 2>&1 + exec sway else - exec dbus-run-session -- sway > ~/.sway.log 2>&1 + exec dbus-run-session -- sway fi |
