Further updates for trayer

This commit is contained in:
ItsDrike 2021-07-15 03:42:44 +02:00
parent 51aa4996ad
commit a60115e2dd
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
3 changed files with 3 additions and 4 deletions

View file

@ -30,9 +30,8 @@ for ((n=0;n<MONITOR_AMOUT;n++)); do
position_line="$(make_position_line $n)" position_line="$(make_position_line $n)"
contents="${xmobarhs_content/$position_line_0/$position_line}" contents="${xmobarhs_content/$position_line_0/$position_line}"
# Only keep trayer spacer in 1st xmobar # Only use Trayer in the 1st xmobar (on single monitor)
if [ $n -ne 0 ]; then if [ $n -ne 0 ]; then
#contents="${contents/'%trayerpad%'/''}"
contents="$(grep -v trayerpad <<< $contents)" contents="$(grep -v trayerpad <<< $contents)"
fi fi

View file

@ -43,7 +43,7 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=t
\<fc=#666666>|</fc> <fc=#51afef> <action=`alacritty -e htop`>%disku%</action> </fc> \ \<fc=#666666>|</fc> <fc=#51afef> <action=`alacritty -e htop`>%disku%</action> </fc> \
\<fc=#666666>|</fc> <fc=#98be65> <action=`alacritty -e sudo iftop`>%wlp2s0%</action> </fc> \ \<fc=#666666>|</fc> <fc=#98be65> <action=`alacritty -e sudo iftop`>%wlp2s0%</action> </fc> \
\<fc=#666666>|</fc> <fc=#46d9ff> %date% </fc> \ \<fc=#666666>|</fc> <fc=#46d9ff> %date% </fc> \
\%trayerpad%\ \<fc=#666666>|</fc>%trayerpad%\
\ " \ "
} }

View file

@ -43,6 +43,6 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=t
\<fc=#666666>|</fc> <fc=#51afef> <action=`alacritty -e htop`>%disku%</action> </fc> \ \<fc=#666666>|</fc> <fc=#51afef> <action=`alacritty -e htop`>%disku%</action> </fc> \
\<fc=#666666>|</fc> <fc=#98be65> <action=`alacritty -e sudo iftop`>%wlp2s0%</action> </fc> \ \<fc=#666666>|</fc> <fc=#98be65> <action=`alacritty -e sudo iftop`>%wlp2s0%</action> </fc> \
\<fc=#666666>|</fc> <fc=#46d9ff> %date% </fc> \ \<fc=#666666>|</fc> <fc=#46d9ff> %date% </fc> \
\%trayerpad%\ \<fc=#666666>|</fc>%trayerpad%\
\ " \ "
} }