From 767f3fb5f20d28462c431e83df230e680694ad3e Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Sat, 24 Jul 2021 22:26:36 -0400 Subject: [PATCH] fixed desktop fetching for bspwm --- dotfiles-old/bin/data | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles-old/bin/data b/dotfiles-old/bin/data index 54c1e4d..4184a1b 100755 --- a/dotfiles-old/bin/data +++ b/dotfiles-old/bin/data @@ -65,7 +65,7 @@ get_cpu_temp() { get_current_desktop() { case "$WM" in - (bspwm) bspc query -D -d focused --names ;; + (bspwm) printf "[%b] " "$(bspc query -D -d focused --names)" ;; esac } @@ -88,7 +88,7 @@ get_public_ip() { PUBLIC_IP="$(get_public_ip)" printbar() { - printf "[%b] " "$(get_current_desktop)" + printf "%b" "$(get_current_desktop)" printf "%b" "$(date)" #printf "%b" "$DELIMITER" #printf "%b" "BAT: $(get_battery_status)"