aboutsummaryrefslogtreecommitdiff
path: root/tools/panel/panel_bar
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2015-08-08 12:38:43 +0200
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2015-08-08 12:38:43 +0200
commit26a62982eab36ee68608a61306e6fab6447edd8a (patch)
tree83ab68093182c174b0c9c94176aceb1805dfe6cb /tools/panel/panel_bar
parentb0708ad010b4e557f52bf3c8dc37b3b3b9e08fc6 (diff)
downloaddotfiles-26a62982eab36ee68608a61306e6fab6447edd8a.tar.gz
dotfiles-26a62982eab36ee68608a61306e6fab6447edd8a.tar.bz2
dotfiles-26a62982eab36ee68608a61306e6fab6447edd8a.zip
Fix many bar bugs and improve ratpoison config
Diffstat (limited to 'tools/panel/panel_bar')
-rwxr-xr-xtools/panel/panel_bar13
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/panel/panel_bar b/tools/panel/panel_bar
index ab39edf..4bc63f9 100755
--- a/tools/panel/panel_bar
+++ b/tools/panel/panel_bar
@@ -117,20 +117,19 @@ while read -r line ; do
desktop="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG} ${line#?}%{B-}%{F-} "
;;
Wclear)
- # focused occupied desktop
- wm_infos=""
+ wm_infos=''
;;
\**)
- # focused occupied desktop
- wm_infos="${wm_infos}%{F$COLOR_FOCUSED_FG}%{B$COLOR_FOCUSED_BG}%{U$COLOR_FOCUSED_UG} ${line#?} %{-u}%{B-}%{F-}"
+ # current focused window
+ wm_infos="${wm_infos}%{F$COLOR_FOCUSED_FG}%{B$COLOR_FOCUSED_BG}%{U$COLOR_FOCUSED_UG}%{+o} ${line#?} %{-o}%{B-}%{F-}%{U-}"
;;
+*)
- # occupied desktop
+ # last focused window
wm_infos="${wm_infos}%{F$COLOR_OTHER_FG}%{B$COLOR_OTHER_BG} ${line#?} %{B-}%{F-}"
;;
-*)
- # free desktop
+ # other windows
wm_infos="${wm_infos}%{F$COLOR_ELSE_FG}%{B$COLOR_ELSE_BG} ${line#?} %{B-}%{F-}"
;;
# u*)
@@ -143,5 +142,5 @@ while read -r line ; do
# ;;
esac
# printf "%s\n" "%{l}${wm_infos}${title}%{r}${playing}${paused}${cpu}${ram}${essid}${signal}${volume}${musicvol}${battery}${time_infos} "
- printf "%s\n" "%{l}${desktop}${wm_infos}${title}%{r}${face}${priv}${pub}${mail}${playing}${paused}${cpu}${ram}${volume}${musicvol}${battery}${time_infos}"
+ printf "%s\n" "%{l}${desktop}${wm_infos}%{r}${face}${priv}${pub}${mail}${playing}${paused}${cpu}${ram}${volume}${musicvol}${battery}${time_infos}"
done