Files
dots/files/.config/polybar/config
Marco Thomas 876be58b84 UPdaootst
2021-12-31 11:28:54 +01:00

139 lines
2.4 KiB
Plaintext

[colors]
white = #ffffff
black = #5c6773
green = #a6cc70
red = #ff3333
[bar/bar]
font-0 = "JuliaMono:pixelsize=10;3"
font-1 = "Noto Sans Mono CJK JP:pixelsize=10;1"
font-2 = "FontAwesome:pixelsize=10;3"
monitor = ${env:MON}
scroll-up = i3wm-wsprev
scroll-down = i3wm-wsnext
fixed-center = true
width = 100%
height = 30
background = ${colors.white}
foreground = ${colors.black}
bottom = false
tray-position = right
line-size = 4
padding-left = 1
padding-right = 1
module-margin = 1
modules-left = logo i3 polywins
modules-center = date time
modules-right = backlight pulseaudio battery
[module/i3]
strip-wsnumbers = true
pin-workspaces = true
index-sort = true
wrapping-scroll = false
type = internal/i3
format = <label-state> <label-mode>
label-focused = %index%
label-focused-background = ${colors.green}
label-focused-padding = 1
label-unfocused = %index%
label-unfocused-padding = 1
label-visible = %index%
label-visible-padding = 1
label-urgent = %index%
label-urgent-overline = ${colors.red}
label-urgent-padding = 1
[module/date]
type = internal/date
interval = 1.0
date =  %a, %d %b
[module/time]
type = internal/date
interval = 1.0
date =  %I:%M %p
[module/pulseaudio]
type = internal/pulseaudio
sink = master
use-ui-max = true
interval = 5
format-volume =  <label-volume>
format-muted-foreground = ${colors.red}
label-muted =  Muted
click-right = pavucontrol
[module/title]
type = internal/xwindow
format-padding = 1
label-maxlen = 100
[module/logo]
type = custom/text
content = "花"
content-padding = 1
[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
time-format = %H:%M
# charging
format-charging = <animation-charging> <label-charging>
label-charging = %percentage% - %time%
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-framerate = 750
# discharging
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
# full
label-full =  100
[module/backlight]
type = internal/backlight
card = amdgpu_bl0
format = <ramp> <label>
label = %percentage%
ramp-0 = 
ramp-1 = 
[module/polywins]
type = custom/script
exec = /home/marc/dots/scripts/polywins.sh 2>/dev/null
format = <label>
label = %output%
label-padding = 1
tail = true