diff options
author | Patrick Spek <p.spek@tyil.nl> | 2021-03-08 13:47:25 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2021-08-14 12:01:15 +0200 |
commit | b424b8f40c3b4f3b0d8ae6629f170f1431bb12e6 (patch) | |
tree | 6dde9ef9157098ab829537b7b6be543706132758 /.config/herbstluftwm/panel-top.sh | |
parent | f4439fb9bb24edbb75437a31600dc5080207a1c3 (diff) |
Add a tray to hlwm
Diffstat (limited to '.config/herbstluftwm/panel-top.sh')
-rwxr-xr-x | .config/herbstluftwm/panel-top.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/herbstluftwm/panel-top.sh b/.config/herbstluftwm/panel-top.sh index 536f674..976968c 100755 --- a/.config/herbstluftwm/panel-top.sh +++ b/.config/herbstluftwm/panel-top.sh @@ -72,7 +72,7 @@ fi while true ; do # "date" output is checked once a second, but an event is only # generated if the output changed compared to the previous run. - date +$'date\t^fg(#efefef)%H:%M^fg(#909090), %Y-%m-^fg(#efefef)%d' + date +$'date\t^fg(#909090)%F ^fg(#efefef)%H:%M' sleep 1 || break done > >(uniq_linebuffered) & childpid=$! @@ -121,10 +121,10 @@ fi echo -n "$separator" echo -n "^bg()^fg() ${windowtitle//^/^^}" # small adjustments - right="$separator^bg() $date $separator" + right="$separator^bg() $date" right_text_only=$(echo -n "$right" | sed 's.\^[^(]*([^)]*)..g') # get width of right aligned text.. and add some space.. - width=$($textwidth "$font" "$right_text_only ") + width=$($textwidth "$font" "$right_text_only ") echo -n "^pa($(($panel_width - $width)))$right" echo |