From 9dd5082688f18e0f887de9ff31d1fb28ba5aa14c Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Sat, 1 Jun 2024 21:49:19 +0200 Subject: . --- sway/config | 2 +- sway/init.sh | 1 + sway/run-sway.sh | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'sway') 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 -- cgit v1.2.3-70-g09d2