summaryrefslogtreecommitdiffstats
path: root/bspwm/panel_bar
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-10 14:34:27 +0100
committerDavid Robillard <d@drobilla.net>2017-12-10 14:39:53 +0100
commitd2da4e5d2866083b8159f57eb04da01662b0dc17 (patch)
tree14fd5bf57fbaedccd00d1490639319c40b163638 /bspwm/panel_bar
parentba6f1ea48ccc54f0afdd5eafee65ad6bf9b502c6 (diff)
downloaddotfiles-d2da4e5d2866083b8159f57eb04da01662b0dc17.tar.gz
dotfiles-d2da4e5d2866083b8159f57eb04da01662b0dc17.tar.bz2
dotfiles-d2da4e5d2866083b8159f57eb04da01662b0dc17.zip
Make dotfiles stow compatible
Diffstat (limited to 'bspwm/panel_bar')
-rwxr-xr-xbspwm/panel_bar96
1 files changed, 0 insertions, 96 deletions
diff --git a/bspwm/panel_bar b/bspwm/panel_bar
deleted file mode 100755
index bf0fc6d..0000000
--- a/bspwm/panel_bar
+++ /dev/null
@@ -1,96 +0,0 @@
-#! /bin/sh
-
-#. panel_colors
-
-n_monitors=$(bspc query -M | wc -l)
-
-while read -r line ; do
- case $line in
- S*)
- # Clock
- sys_info="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG}${line#?}%{B-}%{F-}"
- ;;
- T*)
- # Title
- title="%{F$COLOR_TITLE_FG}%{B$COLOR_TITLE_BG}${line#?}%{B-}%{F-}"
- ;;
- I*)
- # IO
- io_info="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG}${line#?}%{B-}%{F-}"
- ;;
- B*)
- # Battery
- bat_info="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG}${line#?}%{B-}%{F-}"
- ;;
- C*)
- # CPU temperature
- temp_info="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG}${line#?}°%{B-}%{F-}"
- ;;
- L*)
- # CPU load
- load_info="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG}${line#?}%%{B-}%{F-}"
- ;;
- M*)
- # Memory usage
- mem_info="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG}${line#?}%{B-}%{F-}"
- ;;
- N*)
- # Network throughput
- net_info="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG}${line#?}%{B-}%{F-}"
- ;;
- W*)
- # Window manager state
- wm_info=""
- IFS=':'
- set -- ${line#?}
- while [ $# -gt 0 ] ; do
- item=$1
- name=${item#?}
- case $item in
- M*)
- # active monitor
- if [ $n_monitors -gt 1 ] ; then
- wm_info="$wm_info %{F$COLOR_ACTIVE_MONITOR_FG}%{B$COLOR_ACTIVE_MONITOR_BG}${name} %{B-}%{F-} "
- fi
- ;;
- m*)
- # inactive monitor
- if [ $n_monitors -gt 1 ] ; then
- wm_info="$wm_info %{F$COLOR_INACTIVE_MONITOR_FG}%{B$COLOR_INACTIVE_MONITOR_BG}${name}%{B-}%{F-} "
- fi
- ;;
- O*)
- # focused occupied desktop
- wm_info="${wm_info}%{F$COLOR_FOCUSED_OCCUPIED_FG}%{B$COLOR_FOCUSED_OCCUPIED_BG}%{U$COLOR_FOREGROUND}%{+u}${name}%{-u}%{B-}%{F-} "
- ;;
- F*)
- # focused free desktop
- wm_info="${wm_info}%{F$COLOR_FOCUSED_FREE_FG}%{B$COLOR_FOCUSED_FREE_BG}%{U$COLOR_FOREGROUND}%{+u}${name}%{-u}%{B-}%{F-} "
- ;;
- U*)
- # focused urgent desktop
- wm_info="${wm_info}%{F$COLOR_FOCUSED_URGENT_FG}%{B$COLOR_FOCUSED_URGENT_BG}%{U$COLOR_FOREGROUND}%{+u}${name}%{-u}%{B-}%{F-} "
- ;;
- o*)
- # occupied desktop
- wm_info="${wm_info}%{F$COLOR_OCCUPIED_FG}%{B$COLOR_OCCUPIED_BG}${name}%{B-}%{F-} "
- ;;
- f*)
- # free desktop
- wm_info="${wm_info}%{F$COLOR_FREE_FG}%{B$COLOR_FREE_BG}${name}%{B-}%{F-} "
- ;;
- u*)
- # urgent desktop
- wm_info="${wm_info}%{F$COLOR_URGENT_FG}%{B$COLOR_URGENT_BG}${name}%{B-}%{F-} "
- ;;
- L*)
- # layout
- wm_info="$wm_info%{F$COLOR_LAYOUT_FG}%{B$COLOR_LAYOUT_BG}${name}%{B-}%{F-}"
- ;;
- esac
- shift
- done
- ;;
- esac
- printf "%s\n" "%{l}${wm_info} cpu ${load_info} ${temp_info} mem ${mem_info} ${io_info} ${net_info} bat ${bat_info} %{c} ${title} %{r} ${sys_info}"
-done