1
0

additional error stuffz

This commit is contained in:
dtb 2022-10-21 00:23:47 -04:00
parent 87b515fa20
commit 0ed25bbc16

View File

@ -53,12 +53,17 @@ get_cpu_temp() {
}
get_current_desktop() {
LASTDESKTOP="$DESKTOP"
case "$WM" in
(bspwm)
DESKTOP="$(bspc query -D -d focused --names)" ;;
DESKTOP="$(bspc query -D -d focused --names 2>/dev/null)" ;;
esac || DESKTOP=""
printf "[%s] " "$DESKTOP"
if test -n "$LASTDESKTOP" && ! test -n "$DESKTOP"; then
# X is kill
exit 0
fi
}
get_memory_usage() {