additional error stuffz
This commit is contained in:
parent
87b515fa20
commit
0ed25bbc16
@ -53,12 +53,17 @@ get_cpu_temp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_current_desktop() {
|
get_current_desktop() {
|
||||||
|
LASTDESKTOP="$DESKTOP"
|
||||||
case "$WM" in
|
case "$WM" in
|
||||||
(bspwm)
|
(bspwm)
|
||||||
DESKTOP="$(bspc query -D -d focused --names)" ;;
|
DESKTOP="$(bspc query -D -d focused --names 2>/dev/null)" ;;
|
||||||
|
|
||||||
esac || DESKTOP=""
|
esac || DESKTOP=""
|
||||||
printf "[%s] " "$DESKTOP"
|
printf "[%s] " "$DESKTOP"
|
||||||
|
if test -n "$LASTDESKTOP" && ! test -n "$DESKTOP"; then
|
||||||
|
# X is kill
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
get_memory_usage() {
|
get_memory_usage() {
|
||||||
|
Loading…
Reference in New Issue
Block a user