dotfiles/files/polybar.ini

165 lines
3.6 KiB
INI

[colors]
background = #111
foreground = #dfdfdf
primary = #285577
secondary = #333333
alert = #bd2c40
success = #0d0
[settings]
screenchange-reload = true
[bar/top]
monitor = ${env:MONITOR:}
width = 100%
height = 25
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
padding = 2
font-0 = "DejaVu Sans Mono:size=9;2"
font-1 = "FontAwesome5FreeSolid:size=8;2"
modules-left = xwindow
modules-center = date
modules-right = player_mpris_tail memory cpu temperature wifi eno1 pulseaudio wattage battery power-menu
module-margin = 2
wm-restack = i3
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
cursor-click = pointer
cursor-scroll = default
[bar/bottom]
inherit = bar/top
bottom = true
modules-left = i3
modules-center =
tray-position = right
modules-right =
padding = 0
height = 20
[module/xwindow]
type = internal/xwindow
label = %title%
label-maxlen = 75
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
pin-workspaces = true
label-focused = %index%
label-focused-background = ${colors.primary}
label-focused-padding = 1
label-unfocused = ${self.label-focused}
label-unfocused-padding = 1
label-visible = ${self.label-focused}
label-visible-background = ${colors.secondary}
label-visible-padding = ${self.label-focused-padding}
label-urgent = ${self.label-focused}
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
[module/date]
type = internal/date
interval = 1
date = "%Y-%m-%d"
date-alt = "%c"
time = %H:%M:%S
label = %date% %time%
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <ramp-volume> <label-volume>
use-ui-max = false
label-muted =  MUTE
label-muted-foreground = ${colors.alert}
interval = 2
ramp-volume-0 =
ramp-volume-1 =
ramp-volume-2 =
[module/cpu]
type = internal/cpu
interval = 1
label =  %percentage%%
[module/memory]
type = internal/memory
interval = 1
label =  %gb_used%
[module/player_mpris_tail]
type = custom/script
exec = "python3 {{ polybar_scripts }}/player-mpris-tail/player-mpris-tail.py -f '{icon} {title} - {artist}' --icon-playing  --icon-paused "
tail = true
click-left = playerctl play-pause
click-right = playerctl next
label-maxlen = 50
[module/power-menu]
type = custom/menu
label-open =
label-close =
label-open-foreground = ${colors.alert}
label-close-foreground = ${colors.alert}
menu-0-0 = Shutdown
menu-0-0-foreground = ${colors.alert}
menu-0-0-exec = shutdown -h now
menu-0-1 = Restart
menu-0-1-foreground = ${colors.success}
menu-0-1-exec = shutdown -r now
label-separator = " | "
expand-right = false
[module/battery]
type = internal/battery
full-at = 100
poll-interval = 2
time-format = %H:%M
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
format-charging = <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%% (%time%)
label-charging =  %percentage%%
[module/wattage]
type = internal/battery
full-at = ${module/battery.full-at}
label-discharging =  %consumption%W
label-charging = ${self.label-discharging}
poll-interval = ${module/battery.poll-interval}
[module/wifi]
type = internal/network
interface = wlp2s0
label-connected =  %local_ip% (%essid%)
label-connected-foreground = ${colors.success}
label-packetloss = ${self.label-connected}
[module/eno1]
type = internal/network
inherit = module/wifi
label-connected =  %local_ip%
interface = eno1
[module/temperature]
type = internal/temperature
interval = 3
base-temperature = 20
warn-temperature = 75
label-warn-foreground = ${colors.alert}
label =  %temperature-c%
label-warn =  %temperature-c%