polybar: Add underlines to modules

Slightly accent the modules by adding a distinct line under each one, in
the primary color of the current colorscheme.
This commit is contained in:
Marty Oehme 2020-09-07 22:00:32 +02:00
parent 11f1bf76c9
commit 18cd15222d
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
2 changed files with 18 additions and 0 deletions

View file

@ -44,3 +44,11 @@ Qing
analyses analyses
megaprojects megaprojects
weaponization weaponization
exceptionality
hypermobility
Fordist
FDI
JIT
Fordism
embeddedness
Zapatista

View file

@ -181,6 +181,7 @@ ramp-load-4 = %{F#ff9999}▅%{F-}
ramp-load-5 = %{F#ff6666}▆%{F-} ramp-load-5 = %{F#ff6666}▆%{F-}
ramp-load-6 = %{F#ff3232}▇%{F-} ramp-load-6 = %{F#ff3232}▇%{F-}
ramp-load-7 = %{F#ff0000}█%{F-} ramp-load-7 = %{F#ff0000}█%{F-}
format-underline = ${colors.primary}
[module/temp] [module/temp]
type = internal/temperature type = internal/temperature
@ -206,6 +207,7 @@ label-warn-foreground = ${colors.alert}
ramp-0 = ramp-0 =
ramp-1 = %{F#ff9999}ﲲﲲ%{F-} ramp-1 = %{F#ff9999}ﲲﲲ%{F-}
ramp-2 = %{F#ff0000}ﲲﲲﲲ%{F-} ramp-2 = %{F#ff0000}ﲲﲲﲲ%{F-}
format-underline = ${colors.primary}
[module/date] [module/date]
type = internal/date type = internal/date
@ -221,6 +223,7 @@ time = %H:%M
date-alt = %A, %d %B %Y (W %V) date-alt = %A, %d %B %Y (W %V)
time-alt = %H:%M time-alt = %H:%M
label = %date% %{T2} %{T-}%time% label = %date% %{T2} %{T-}%time%
format-underline = ${colors.primary}
; display information on currently playing track, allows simple track manipulation ; display information on currently playing track, allows simple track manipulation
; TODO: add album art display (on click?) - retrieved by playerctl metadata mpris:artUrl ; TODO: add album art display (on click?) - retrieved by playerctl metadata mpris:artUrl
@ -231,6 +234,7 @@ exec-if = type $XDG_CONFIG_HOME/polybar/scripts/poly-mprisdisplay
tail = true tail = true
click-left = kill -USR1 %pid% click-left = kill -USR1 %pid%
click-right = kill -USR2 %pid% click-right = kill -USR2 %pid%
format-underline = ${colors.primary}
; display information on remaining papers to read for the upcoming week ; display information on remaining papers to read for the upcoming week
[module/papersdue] [module/papersdue]
@ -250,6 +254,7 @@ interval = 120
type = custom/script type = custom/script
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-pomo exec = $XDG_CONFIG_HOME/polybar/scripts/poly-pomo
exec-if = exist pomo normal "pomodoro timer" exec-if = exist pomo normal "pomodoro timer"
format-underline = ${colors.primary}
; pause timer ; pause timer
click-left = $XDG_CONFIG_HOME/polybar/scripts/poly-pomo toggle click-left = $XDG_CONFIG_HOME/polybar/scripts/poly-pomo toggle
; restart timer ; restart timer
@ -267,11 +272,13 @@ format = <label>
format-padding = 2 format-padding = 2
format-prefix = " " format-prefix = " "
; format-foreground = ${colors.primary} ; format-foreground = ${colors.primary}
format-underline = ${colors.primary}
[module/networkspeed] [module/networkspeed]
type = custom/script type = custom/script
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-networkspeed exec = $XDG_CONFIG_HOME/polybar/scripts/poly-networkspeed
tail = true tail = true
format-underline = ${colors.primary}
[module/volume] [module/volume]
type = internal/pulseaudio type = internal/pulseaudio
@ -280,6 +287,7 @@ type = internal/pulseaudio
; <ramp-volume> ; <ramp-volume>
; <bar-volume> ; <bar-volume>
format-volume = <ramp-volume> format-volume = <ramp-volume>
format-underline = ${colors.primary}
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false ; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
use-ui-max = false use-ui-max = false
@ -301,6 +309,7 @@ ramp-1 = 
ramp-2 =  ramp-2 = 
ramp-3 =  ramp-3 = 
ramp-4 =  ramp-4 = 
format-underline = ${colors.primary}
[module/battery] [module/battery]
type = internal/battery type = internal/battery
@ -315,4 +324,5 @@ ramp-capacity-1 = 
ramp-capacity-2 =  ramp-capacity-2 = 
ramp-capacity-3 =  ramp-capacity-3 = 
ramp-capacity-4 =  ramp-capacity-4 = 
format-underline = ${colors.primary}
; vim:ft=dosini ; vim:ft=dosini