fix weird background and text not truncating

This commit is contained in:
Zoe 2022-04-24 10:37:18 +02:00
parent 836b52e741
commit e84ef62d1d
1 changed files with 4 additions and 9 deletions

13
config
View File

@ -149,7 +149,7 @@ inherit = modules/format
label-background = ${colors.audio}
label-foreground = ${colors.bg}
type = custom/script
exec = $HOME/.config/polybar/player-mpris-tail.py -f '{icon} {artist} - {title}' --icon-playing "契" --icon-paused ""
exec = $HOME/.config/polybar/player-mpris-tail.py -f '{icon} {:t12:{artist}:} - {:t22:{title}:}' --icon-playing "契" --icon-paused ""
tail = true
click-left = $HOME/.config/polybar/player-mpris-tail.py previous &
click-right = $HOME/.config/polybar/player-mpris-tail.py next &
@ -164,16 +164,11 @@ content-background = ${colors.keyboard}
inherit = modules/format
type = internal/xkeyboard
format-background = ${colors.keyboard}
label-layout-padding = ${var.padding}
label-layout =  %layout%
format-foreground = ${colors.bg}
label-layout =  %layout%
label-indicator-on-capslock = בּ
label-indicator-on-capslock-background = ${colors.keyboard}
label-indicator-on-capslock-foreground = ${colors.bg}
label-indicator-on-capslock-padding = ${var.padding}
label-indicator-on-background = ${colors.keyboard}
label-layout-background = ${colors.keyboard}
label-layout-foreground = ${colors.bg}
label-indicator-background = ${colors.keyboard}
label-layout-padding = ${var.padding}
[module/keyboardarrow]
inherit = arrows/arrowR