Kill services, that are started by sway, first thing when logging in. Turns out logging in actually launches a login shell, but exec prevents it from reading .zlogout.

This commit is contained in:
the_4n0nym0u53 2021-12-23 01:29:16 +01:00
parent a3dba69658
commit 3a9a590f9d
No known key found for this signature in database
GPG key ID: 35EE09F5481049BB

View file

@ -1,3 +1,12 @@
pgrep "^ivpn-service$" &> /dev/null &&
ivpn disconnect &> /dev/null
doas pkill "^ivpn-service$" &> /dev/null
pkill "^mako$" &> /dev/null
pkill "^pipewire$" &> /dev/null
pkill "^pipewire-pulse$" &> /dev/null
pkill "^wireplumber$" &> /dev/null
if [ "$(tty)" = "/dev/tty1" ]; then
export $(gnome-keyring-daemon --start)
export XDG_CURRENT_DESKTOP=Unity