aboutsummaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm/panel.sh
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2014-07-08 11:32:24 -0700
committershmibs <shmibs@gmail.com>2014-07-08 11:32:24 -0700
commiteffba62a0758a13cfdc288d1c8543c74634fdac2 (patch)
tree3f20086ff186eeb0f37d21ce35599a91984535c6 /.config/herbstluftwm/panel.sh
parent6e61dc69a46b676a32fb8c85fdc33223f0fbce4e (diff)
downloaddotfiles-effba62a0758a13cfdc288d1c8543c74634fdac2.tar.gz
fixed when in panel
Diffstat (limited to '.config/herbstluftwm/panel.sh')
-rwxr-xr-x.config/herbstluftwm/panel.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh
index e052b13..6417ebf 100755
--- a/.config/herbstluftwm/panel.sh
+++ b/.config/herbstluftwm/panel.sh
@@ -71,7 +71,7 @@ update_winlist() {
# formatting, and finally delete win ids and merge
# lines
- for c in $(herbstclient layout | grep -Eo '0x[0-9a-f]*'); do
+ for c in $(hc layout | grep -Eo '0x[0-9a-f]*'); do
xwininfo -id $c | sed -n 2p | sed -e 's/"//' -e 's/"$//' -e 's/$/\t/' | cut -c -70 | sed \
-e 's/xwininfo: Window id: //' \
-e 's/$/.../' -e 's/\t\.\.\.$//' \
@@ -164,6 +164,9 @@ get_when() {
for id in ${child[@]}; do
kill $id
done
+
+ pkill bar
+
} 2> /dev/null | {
@@ -217,8 +220,9 @@ get_when() {
;;
when)
- if [[ "${events[1]}" -eq 1 ]]; then
- fields[4]="%{F${bg_focus}}|%{F${fg_normal} A:when:} * %{A}"
+ if [[ "${event[1]}" -eq 1 ]]; then
+ fields[4]=$(echo -n "%{F${bg_focus}}|%{F${fg_normal} A:when:}"
+ echo -n "%{F${fg_red}} \uE0AE %{F${fg_normal} A}")
else
fields[4]=""
fi
@@ -263,7 +267,7 @@ get_when() {
notify-send "$(cal)"
;;
stats)
- urxvt -e htop
+ urxvt -e htop &
;;
when)
notify-send "$(when)"