115 lines
2.2 KiB
INI
115 lines
2.2 KiB
INI
|
[colors]
|
||
|
background = #111
|
||
|
foreground = #dfdfdf
|
||
|
primary = #285577
|
||
|
secondary = #333333
|
||
|
alert = #bd2c40
|
||
|
|
||
|
[settings]
|
||
|
screenchange-reload = true
|
||
|
|
||
|
[bar/example]
|
||
|
monitor = ${env:MONITOR:}
|
||
|
width = 100%
|
||
|
height = 30
|
||
|
fixed-center = true
|
||
|
background = ${colors.background}
|
||
|
foreground = ${colors.foreground}
|
||
|
|
||
|
padding-right = 2
|
||
|
|
||
|
font-0 = "DejaVu Sans Mono:size=9;2"
|
||
|
font-1 = "FontAwesome5FreeSolid:size=8;2"
|
||
|
|
||
|
modules-left = i3 xwindow
|
||
|
modules-center = date
|
||
|
modules-right = player_mpris_tail memory cpu pulseaudio power-menu
|
||
|
|
||
|
module-margin = 2
|
||
|
|
||
|
wm-restack = i3
|
||
|
|
||
|
scroll-up = i3wm-wsnext
|
||
|
scroll-down = i3wm-wsprev
|
||
|
|
||
|
cursor-click = pointer
|
||
|
cursor-scroll = default
|
||
|
|
||
|
|
||
|
[module/xwindow]
|
||
|
type = internal/xwindow
|
||
|
label = %title%
|
||
|
label-maxlen = 75
|
||
|
|
||
|
[module/i3]
|
||
|
type = internal/i3
|
||
|
format = <label-state>
|
||
|
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 = 10
|
||
|
|
||
|
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 = 75
|
||
|
|
||
|
[module/power-menu]
|
||
|
type = custom/menu
|
||
|
label-open =
|
||
|
label-close =
|
||
|
menu-0-0 = Shutdown
|
||
|
menu-0-0-foreground = #F00
|
||
|
menu-0-1 = Restart
|
||
|
menu-0-1-foreground = #0F0
|
||
|
label-separator = " | "
|
||
|
expand-right = false
|