Browse Source

Changed to differentiate desktop on focused monitor.

master
Daniel Sissom 5 years ago
parent
commit
168d110f96
Signed by untrusted user who does not match committer: djsissom GPG Key ID: 2C30FFB796852389
1 changed files with 39 additions and 14 deletions
  1. + 39
    - 14
      bspwm/panel/panel_bar

+ 39
- 14
bspwm/panel/panel_bar

@ -21,25 +21,50 @@ while read -r line ; do
item=$1 item=$1
name=${item#?} name=${item#?}
case $item in case $item in
[OFU]*)
# active desktop
wm_infos="$wm_infos%{F#FAE7BF} ● %{F-}%{B-}"
[mM]*)
case $item in
m*)
on_focused_monitor=
;;
M*)
on_focused_monitor=1
;;
esac
wm_infos="$wm_infos%{F-} %{F-}"
;; ;;
o*)
# inactive but occupied desktop
wm_infos="$wm_infos%{F-} ● %{F-}"
;;
f*)
# inactive desktop
wm_infos="$wm_infos%{F-} ○ %{F-}"
;;
u*)
# urgent desktop
wm_infos="$wm_infos%{F-} ● %{F-}"
[fFoOuU]*)
case $item in
[OF]*)
if [ "$on_focused_monitor" ]; then
# focused desktop
wm_infos="$wm_infos%{F#EEFFFF} ● %{F-}"
else
# active desktop
wm_infos="$wm_infos%{F#FAE7BF} ● %{F-}"
fi
;;
U*)
# urgent focused desktop
wm_infos="$wm_infos%{F#FF0000} ● %{F-}"
;;
o*)
# inactive but occupied desktop
wm_infos="$wm_infos%{F-} ● %{F-}"
;;
f*)
# inactive desktop
wm_infos="$wm_infos%{F-} ○ %{F-}"
;;
u*)
# urgent desktop
wm_infos="$wm_infos%{F#FF0000} ○ %{F-}"
;;
esac
;; ;;
esac esac
shift shift
done done
wm_infos="$wm_infos%{F-} %{F-}"
;; ;;
esac esac
printf "%s\n" "%{S+}%{l}  $title%{c}$wm_infos%{r}$sys_infos ⏻ " printf "%s\n" "%{S+}%{l}  $title%{c}$wm_infos%{r}$sys_infos ⏻ "

Loading…
Cancel
Save