Update dk bar script

This commit is contained in:
natemaia 2022-01-14 10:53:53 -08:00
parent d0abb8a2b5
commit c80fbf533b
2 changed files with 4 additions and 4 deletions

View File

@ -14,10 +14,10 @@ if hash sxhkd >/dev/null 2>&1; then
sxhkd -c "$HOME/.config/dk/sxhkdrc" &
fi
# (re)load sxhkd for keybinds
# (re)load lemonbar script
if hash lemonbar bar >/dev/null 2>&1; then
pkill lemonbar
bar &
bar 2>/dev/null &
fi
{ # compound command to redirect all output

View File

@ -3,7 +3,7 @@
# simple lightweight lemonbar script for use with dk
set -o pipefail
set -eE -o pipefail
bg="#111111"
fg="#666666"
@ -122,7 +122,7 @@ parsefifo()
# kill the process and cleanup if we exit or get killed
trap "trap - TERM; kill 0; rm -f '$fifo'" INT TERM QUIT EXIT
trap "trap - TERM; kill 0; rm -f '$fifo'" INT TERM QUIT EXIT PIPE
# make the fifo
[ -e "$fifo" ] && rm "$fifo"