1
0
Fork 0

herbst: fix lemonbar

This commit is contained in:
Vladimír Dudr 2024-01-05 21:51:26 +01:00
parent c3d36849d9
commit 40c71528b3

View file

@ -57,7 +57,7 @@ hc --idle | {
for monitor in "${monitors[@]}" ; do for monitor in "${monitors[@]}" ; do
tags[$monitor]="$(hc tag_status "$monitor")" tags[$monitor]="$(hc tag_status "$monitor")"
done done
date="%{T2}%{T-} $(date '+%{F#efefef}%H:%M%{F#909090}, %Y-%m-%{F#efefef}%d')" date="%{T2}%{T-} $(date "+%H:%M%{F${colors[light4]}, %Y-%m-%{F-}%d")"
windowtitle="" windowtitle=""
#count-mails; #count-mails;
#charge=$(battery | awk '{print $2}') #charge=$(battery | awk '{print $2}')
@ -114,11 +114,11 @@ hc --idle | {
res+="%{S$m}" res+="%{S$m}"
#echo -en "%{S$((${#monitors[@]} - monitor))}" #echo -en "%{S$((${#monitors[@]} - monitor))}"
### print the left ### print the left
res+="%{l}${output_tags[$monitor]}$separator ${windowtitle:0:150}" res+="%{l}${output_tags[$monitor]}$separator${windowtitle:0:150}"
### center ### center
#echo -n "%{c}%{U${colors[bright_orange]}}${windowtitle:0:150}%{U-}" #echo -n "%{c}%{U${colors[bright_orange]}}${windowtitle:0:150}%{U-}"
### print the right ### print the right
res+="%{r}$memory$df$playing$volume$wifi$network$temperature$load$separator$date$separator%{U#f2f229}$charge%{U-}$separator" res+="%{r}$memory$df$playing$volume$wifi$network$temperature$load $separator$date $separator%{U#f2f229}$charge%{U-}$separator"
#echo -en "%{r}$right $separator %{U#f2f229}$charge%{U-} $separator" #echo -en "%{r}$right $separator %{U#f2f229}$charge%{U-} $separator"
done done
@ -150,7 +150,7 @@ hc --idle | {
;; ;;
date) date)
#echo "resetting date" >&2 #echo "resetting date" >&2
date="${cmd[*]:1}" date="%{T2}%{T-} $(date "+%H:%M%%{F${colors[light4]}}, %Y-%m-%%{F-}%d")"
;; ;;
quit_panel) quit_panel)
exit exit
@ -259,9 +259,9 @@ hc --idle | {
_wifi_net="${cmd[1]}" _wifi_net="${cmd[1]}"
if [[ -n "$_wifi_net" ]] if [[ -n "$_wifi_net" ]]
then then
_wifi_sym=󰖩 _wifi_sym=
else else
_wifi_sym=󰖪 _wifi_sym=
fi fi
wifi="$(xargs <<<"$_wifi_sym $_wifi_net $separator")" wifi="$(xargs <<<"$_wifi_sym $_wifi_net $separator")"
;; ;;
@ -292,7 +292,7 @@ hc --idle | {
first_loop=0 first_loop=0
done done
} | lemonbar -f "Hack-10" -f "Symbols Nerd Font Mono-10" -f "Noto Color Emoji-10" -a30 -B "$col_bg" -F "$col_fg" -u 1 | sh } | lemonbar -f "Hack-10" -f "Symbols Nerd Font Mono" -f "Noto Color Emoji-10" -a30 -B "$col_bg" -F "$col_fg" -u 1 | sh
#} | lemonbar -f "DejaVu Sans-9" -f "Font Awesome-9" -f "Symbols Nerd Font-9" #} | lemonbar -f "DejaVu Sans-9" -f "Font Awesome-9" -f "Symbols Nerd Font-9"
#} | tee >(lemonbar -f "DejaViu Sans-9" -f "Font Awesome-9" ) #} | tee >(lemonbar -f "DejaViu Sans-9" -f "Font Awesome-9" )