fish: quit any runsvdir before starting sway

This commit is contained in:
lelgenio 2021-12-07 20:51:30 -03:00
parent fa849710a8
commit 2cc1f70805
1 changed files with 4 additions and 2 deletions

View File

@ -38,8 +38,10 @@ function esway
set -x XDG_CURRENT_DESKTOP sway
# this should not be necessary, but whatever
pidof sway &> /dev/null ||
exec dbus-launch --exit-with-session sway
if not pidof sway &> /dev/null
pkill -HUP -u "$USER" runsvdir
exec dbus-launch --exit-with-session sway
end
end
if test "$XDG_VTNR" = 1