[polybar] Update for new version of font with combining icons
This commit is contained in:
parent
e18ea3387e
commit
ec32ec0bb6
3 changed files with 16 additions and 16 deletions
Binary file not shown.
1
polybar/bar-material-supplements.ttf
Symbolic link
1
polybar/bar-material-supplements.ttf
Symbolic link
|
@ -0,0 +1 @@
|
|||
../yambar/bar-material-supplements.ttf
|
|
@ -30,9 +30,9 @@ try:
|
|||
hour = hourhands [ t.hour % 12 ]
|
||||
|
||||
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:
|
||||
return "%{O1}%{T8}" + color_for(t) + hour + minute + "%{T-}%{F}"
|
||||
return "%{O1}%{T8}" + color_for(t) + hour + minute + "%{T-}%{F}"
|
||||
|
||||
|
||||
def color_for(t):
|
||||
|
|
|
@ -58,7 +58,7 @@ cursor-scroll = ns-resize
|
|||
[bar/midbard]
|
||||
inherit = bardefaults
|
||||
|
||||
monitor = ${env:MONITOR:eDP-1}
|
||||
;monitor = ${env:MONITOR:eDP-1}
|
||||
width = 100%
|
||||
|
||||
modules-left = i3 volume mpd-local
|
||||
|
@ -326,24 +326,24 @@ interval = 3
|
|||
|
||||
; %{T7} select font 7
|
||||
; %{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
|
||||
; %{O-18} go back 18 pixels to the left
|
||||
; <ramp-signal> show a signal strength icon
|
||||
; <ramp-signal> show a combining signal strength icon
|
||||
; advance one icon's width
|
||||
; 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}
|
||||
label-connected = %essid%
|
||||
|
||||
format-disconnected = %{A1:alacritty -e wlan &:}<label-disconnected>%{A}
|
||||
label-disconnected =
|
||||
format-disconnected = %{A1:alacritty -e wlan &:}<label-disconnected>%{A}
|
||||
label-disconnected =
|
||||
label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
;ramp-signal-0 = ""
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-font = 7
|
||||
ramp-signal-foreground = ${colors.foreground}
|
||||
|
||||
|
@ -398,13 +398,13 @@ adapter = AC
|
|||
full-at = 90
|
||||
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%
|
||||
|
||||
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%
|
||||
|
||||
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
|
||||
ramp-capacity-0 = %{F#f55}
|
||||
|
|
Loading…
Reference in a new issue