rework background killing
This commit is contained in:
parent
44b38cb71d
commit
30eadb8039
|
@ -14,7 +14,5 @@ echo "Starting DWM"
|
|||
|
||||
dwm
|
||||
|
||||
echo "Exited DWM, Killing $(jobs -p | awk "{print \$3}")"
|
||||
|
||||
kill $(jobs -p | awk "{print \$3}")
|
||||
echo "Exited DWM"
|
||||
'
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
#!/bin/sh
|
||||
# This script is executed by DWM on start.
|
||||
|
||||
SIGINT=2 SIGTERM=15
|
||||
trap 'trap - SIGTERM && kill -- -$$' $SIGINT $SIGTERM EXIT
|
||||
|
||||
start() {
|
||||
pidof -sx "$1" || "$@" &
|
||||
}
|
||||
|
@ -32,9 +35,10 @@ remaps -qd
|
|||
|
||||
start unclutter -noevents &
|
||||
start gpgconf --launch gpg-agent
|
||||
start env PATH="$HOME/.local/libexec/statusbar:$PATH" dwmblocks
|
||||
start picom
|
||||
start pipewire
|
||||
start dunst
|
||||
start checkup
|
||||
start syncthingtray
|
||||
|
||||
killall dwmblocks; env PATH="$HOME/.local/libexec/statusbar:$PATH" dwmblocks &
|
||||
|
|
Loading…
Reference in New Issue