Update dk bar script
This commit is contained in:
parent
d0abb8a2b5
commit
c80fbf533b
@ -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
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user