diff --git a/zsh/.config/zsh/.zlogout b/zsh/.config/zsh/.zlogout new file mode 100644 index 0000000..4ec8594 --- /dev/null +++ b/zsh/.config/zsh/.zlogout @@ -0,0 +1,10 @@ +if [ "$(tty)" = "/dev/tty1" ]; then + 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 +fi diff --git a/zsh/.config/zsh/.zprofile b/zsh/.config/zsh/.zprofile index e2d4812..7389984 100644 --- a/zsh/.config/zsh/.zprofile +++ b/zsh/.config/zsh/.zprofile @@ -1,18 +1,11 @@ -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 export GTK_USE_PORTAL=1 export QT_QPA_PLATFORM=wayland - exec dbus-launch --sh-syntax --exit-with-session sway &> /dev/null + + dbus-launch --sh-syntax --exit-with-session sway &> /dev/null + exit else neofetch fi