Omitting exec in .zprofile lets us read .zlogout by adding exit after sway exits.
This commit is contained in:
parent
3a9a590f9d
commit
c4d066a7d3
10
zsh/.config/zsh/.zlogout
Normal file
10
zsh/.config/zsh/.zlogout
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue