Browse Source

Fixed bspwm desktop names and added clickable desktop switching to

panel.  Seems to be a bug (in lemonbar?) that misaligns clickable areas
for centered clickable text.
master
Daniel Sissom 5 years ago
parent
commit
842c3c6d7c
Signed by untrusted user who does not match committer: djsissom GPG Key ID: 2C30FFB796852389
3 changed files with 4 additions and 3 deletions
  1. + 1
    - 2
      bspwm/bspwmrc
  2. + 1
    - 1
      bspwm/panel/panel
  3. + 2
    - 0
      bspwm/panel/panel_bar

+ 1
- 2
bspwm/bspwmrc

@ -58,9 +58,8 @@ i=1
#for monitor in $(bspc query -M); do #for monitor in $(bspc query -M); do
for monitor in $(bspc query -M --names); do for monitor in $(bspc query -M --names); do
bspc monitor $monitor \ bspc monitor $monitor \
-d $i/{Desktop-2, Desktop-1, Desktop-0, Desktop+1, Desktop+2}
-d $i/Desktop-2 $i/Desktop-1 $i/Desktop-0 $i/Desktop+1 $i/Desktop+2
#-n "$i" \ #-n "$i" \
#-d $i/{I,II,III,IV,V,VI,VII,VIII,IX,X}
let i++ let i++
done done
#NMON=$i #NMON=$i

+ 1
- 1
bspwm/panel/panel

@ -18,7 +18,7 @@ xtitle -sf 'T%s\n' | sed -u 's/^\(..............................................
bspc subscribe report > "$PANEL_FIFO" & bspc subscribe report > "$PANEL_FIFO" &
tick > "$PANEL_FIFO" & tick > "$PANEL_FIFO" &
~/.config/bspwm/panel/panel_bar < "$PANEL_FIFO" | lemonbar -n "$PANEL_WM_NAME" -g "x$PANEL_HEIGHT" -B "#BF000000" -F "#FF9A875F" -f "$PANEL_FONT" -f "$PANEL_FONT2" -f "$PANEL_FONT3" | sh &
~/.config/bspwm/panel/panel_bar < "$PANEL_FIFO" | lemonbar -n "$PANEL_WM_NAME" -g "x$PANEL_HEIGHT" -a 20 -B "#BF000000" -F "#FF9A875F" -f "$PANEL_FONT" -f "$PANEL_FONT2" -f "$PANEL_FONT3" | sh &
wid=$(xdo id -m -a "$PANEL_WM_NAME") wid=$(xdo id -m -a "$PANEL_WM_NAME")
xdo above -t $(xdo id -N Bspwm -n root | sort | head -n 1) $wid xdo above -t $(xdo id -N Bspwm -n root | sort | head -n 1) $wid

+ 2
- 0
bspwm/panel/panel_bar

@ -33,6 +33,7 @@ while read -r line ; do
wm_infos="$wm_infos%{F-} %{F-}" wm_infos="$wm_infos%{F-} %{F-}"
;; ;;
[fFoOuU]*) [fFoOuU]*)
wm_infos="${wm_infos}%{A:bspc desktop -f ${name}:}"
case $item in case $item in
[OF]*) [OF]*)
if [ "$on_focused_monitor" ]; then if [ "$on_focused_monitor" ]; then
@ -60,6 +61,7 @@ while read -r line ; do
wm_infos="$wm_infos%{F#FF0000} ○ %{F-}" wm_infos="$wm_infos%{F#FF0000} ○ %{F-}"
;; ;;
esac esac
wm_infos="${wm_infos}%{A}"
;; ;;
esac esac
shift shift

Loading…
Cancel
Save