[download]

local/bin/xfwm4-status

   1 #!/bin/bash
   2 
   3 pkill -KILL xfce4-panel &&
   4 while pgrep $_; do sleep 0.1; done
   5 
   6 xfce4-panel -d &
   7 source awesome-status
   8 
   9 ################################################################################
  10 
  11 bw=$(xfconf-query -c xfce4-panel -p /panels/panel-1/length)
  12 bh=$(xfconf-query -c xfce4-panel -p /panels/panel-1/size)
  13 bl=$(xfconf-query -c xfce4-panel -p /panels/panel-1/nrows)
  14 w=$(xrandr | awk -v n=0.$bw '/\*/ { print int(int($0) * (1 - n)) }')
  15 x=$(xrandr | awk -v n=0.$bw '/\*/ { print int(int($0) * n) }')
  16 
  17 bw=${bh:-50}
  18 bh=${bh:-20}
  19 bl=${bl:-1}
  20 bh=$(( bh * bl + 1 ))
  21 
  22 echo "Dmenu.height: $bh" | xrdb -m
  23 pidof -q compton && background=$background_argb
  24 
  25 while read i; do
  26     [[ $i == volume:*: ]] && continue
  27     mod[volume]=${mod[volumebar]}
  28 
  29     update
  30     echo "%{r}$status"
  31 done < $f |
  32 lemonbar -g ${w}x${bh}+${x}+0 -B $background -F $foreground \
  33 -f Terminus-9 -f Nerdfont-9 -f Ubuntu-8:antialias=false