From 3a9a590f9d669439f917207815ae692a10276f46 Mon Sep 17 00:00:00 2001 From: the_4n0nym0u53 Date: Thu, 23 Dec 2021 01:29:16 +0100 Subject: [PATCH] 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. --- zsh/.config/zsh/.zprofile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zsh/.config/zsh/.zprofile b/zsh/.config/zsh/.zprofile index 7d4bcec..e2d4812 100644 --- a/zsh/.config/zsh/.zprofile +++ b/zsh/.config/zsh/.zprofile @@ -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