[download]

local/bin/xfwm4-status

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