[polybar] Update for new version of font with combining icons

This commit is contained in:
Midgard 2022-08-29 23:44:02 +02:00
parent e18ea3387e
commit ec32ec0bb6
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4
3 changed files with 16 additions and 16 deletions

Binary file not shown.

View file

@ -0,0 +1 @@
../yambar/bar-material-supplements.ttf

View file

@ -30,9 +30,9 @@ try:
hour = hourhands [ t.hour % 12 ] hour = hourhands [ t.hour % 12 ]
if FILL_CLOCK_FACE: if FILL_CLOCK_FACE:
return "%{O1}%{T8}" + color_for(t) + "%{O-27}%{F#000}" + hour + minute + "%{O27}" + "%{T-}%{F}" return "%{O1}%{T8}" + color_for(t) + "%{F#000}" + hour + minute + "" + "%{T-}%{F}"
else: else:
return "%{O1}%{T8}" + color_for(t) + hour + minute + "%{T-}%{F}" return "%{O1}%{T8}" + color_for(t) + hour + minute + "%{T-}%{F}"
def color_for(t): def color_for(t):

View file

@ -58,7 +58,7 @@ cursor-scroll = ns-resize
[bar/midbard] [bar/midbard]
inherit = bardefaults inherit = bardefaults
monitor = ${env:MONITOR:eDP-1} ;monitor = ${env:MONITOR:eDP-1}
width = 100% width = 100%
modules-left = i3 volume mpd-local modules-left = i3 volume mpd-local
@ -326,24 +326,24 @@ interval = 3
; %{T7} select font 7 ; %{T7} select font 7
; %{F#333} use a dark foreground colour ; %{F#333} use a dark foreground colour
;  icon for "full signal strength" in my font 8 ;  "combining icon full signal strength" in my font Bar Material Supplements
; %{F}%{T-} reset foreground colour and font ; %{F}%{T-} reset foreground colour and font
; %{O-18} go back 18 pixels to the left ; <ramp-signal> show a combining signal strength icon
; <ramp-signal> show a signal strength icon ;  advance one icon's width
; This overlays the actual signal strength icon over the dark "full signal" icon ; This overlays the actual signal strength icon over the dark "full signal" icon
format-connected = %{A:alacritty -e wlan &:}%{T7}%{F#333}%{F}%{T-}%{O-18}<ramp-signal>%{A} format-connected = %{A:alacritty -e wlan &:}%{T7}%{F#333}%{F}%{T-}<ramp-signal>%{A}
format-connected-foreground = ${colors.foreground-alt} format-connected-foreground = ${colors.foreground-alt}
label-connected = %essid% label-connected = %essid%
format-disconnected = %{A1:alacritty -e wlan &:}<label-disconnected>%{A} format-disconnected = %{A1:alacritty -e wlan &:}<label-disconnected>%{A}
label-disconnected = label-disconnected =
label-disconnected-foreground = ${colors.foreground-alt} label-disconnected-foreground = ${colors.foreground-alt}
;ramp-signal-0 = "" ;ramp-signal-0 = ""
ramp-signal-0 = ramp-signal-0 =
ramp-signal-1 = ramp-signal-1 =
ramp-signal-2 = ramp-signal-2 =
ramp-signal-3 = ramp-signal-3 =
ramp-signal-font = 7 ramp-signal-font = 7
ramp-signal-foreground = ${colors.foreground} ramp-signal-foreground = ${colors.foreground}
@ -398,13 +398,13 @@ adapter = AC
full-at = 90 full-at = 90
interval = 5 interval = 5
format-charging = %{A:alacritty -e bat --hold &:}%{T7}%{F#555}%{O-18}%{F#DDA}<ramp-capacity>%{O-17}%{F#000}%{F}%{T-}%{O19}<label-charging>%{A} format-charging = %{A:alacritty -e bat --hold &:}%{T7}%{F#555}%{F#DDA}<ramp-capacity>%{F#000}%{F}%{T-}%{O19}<label-charging>%{A}
label-charging = %percentage% label-charging = %percentage%
format-discharging = %{A:alacritty -e bat --hold &:}%{F#555}%{O-18}%{F}<ramp-capacity>%{O2}<label-discharging>%{A} format-discharging = %{A:alacritty -e bat --hold &:}%{F#555}%{F}<ramp-capacity>%{O2}<label-discharging>%{A}
label-discharging = %percentage% label-discharging = %percentage%
format-full = "%{A:alacritty -e bat --hold &:}%{F#dda}%{F#eea} unplug%{F}%{A}" format-full = "%{A:alacritty -e bat --hold &:}%{F#dda}%{F#eea} unplug%{F}%{A}"
; <5 ; <5
ramp-capacity-0 = %{F#f55} ramp-capacity-0 = %{F#f55}