Omitting exec in .zprofile lets us read .zlogout by adding exit after sway exits.

This commit is contained in:
the_4n0nym0u53 2021-12-23 01:34:38 +01:00
parent 3a9a590f9d
commit c4d066a7d3
No known key found for this signature in database
GPG key ID: 35EE09F5481049BB
2 changed files with 13 additions and 10 deletions

10
zsh/.config/zsh/.zlogout Normal file
View file

@ -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

View file

@ -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