dotfiles/config/polybar/modules.ini

225 lines
5.1 KiB
INI
Raw Normal View History

2021-03-28 17:11:08 +02:00
[module/battery]
type= internal/battery
battery= BATT
adapter= ACAD
; see "man date" for details on how to format the time string
; NOTE: if you want to use syntax tags here you need to use %%{...}
; Default: %H:%M:%S
time-format = %H:%M
; Available tags:
; <label-charging> (default)
; <bar-capacity>
; <ramp-capacity>
; <animation-charging>
2021-04-11 17:45:37 +02:00
format-charging = <animation-charging> <label-charging>
format-charging-underline = ${colors.green}
2021-03-28 17:11:08 +02:00
; Available tags:
; <label-discharging> (default)
; <bar-capacity>
; <ramp-capacity>
; <animation-discharging>
format-discharging = <ramp-capacity> <label-discharging>
2021-04-11 17:45:37 +02:00
format-discharging-underline = ${colors.red}
2021-03-28 17:11:08 +02:00
; Available tags:
; <label-full> (default)
; <bar-capacity>
; <ramp-capacity>
2021-04-11 17:45:37 +02:00
format-full = <label-full>
format-full-underline = ${colors.green}
2021-03-28 17:11:08 +02:00
; Available tokens:
; %percentage% (default) - is set to 100 if full-at is reached
; %percentage_raw%
; %time%
; %consumption% (shows current charge rate in watts)
2021-04-11 17:45:37 +02:00
label-charging = %percentage%% %time% remaining
2021-03-28 17:11:08 +02:00
; Available tokens:
; %percentage% (default) - is set to 100 if full-at is reached
; %percentage_raw%
; %time%
; %consumption% (shows current discharge rate in watts)
2021-04-11 17:45:37 +02:00
label-discharging = %percentage%% %time% remaining
2021-03-28 17:11:08 +02:00
; Available tokens:
; %percentage% (default) - is set to 100 if full-at is reached
; %percentage_raw%
label-full = Fully charged
; Only applies if <ramp-capacity> is used
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
; Only applies if <bar-capacity> is used
bar-capacity-width = 10
; Only applies if <animation-charging> is used
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
; Framerate in milliseconds
animation-charging-framerate = 750
; Only applies if <animation-discharging> is used
animation-discharging-0 =
animation-discharging-1 =
animation-discharging-2 =
animation-discharging-3 =
animation-discharging-4 =
; Framerate in milliseconds
animation-discharging-framerate = 500
[module/bspwm]
type = internal/bspwm
reverse-scroll = false
2021-08-10 15:07:10 +02:00
label-focused =
label-focused-foreground = ${colors.purple}
2021-03-28 17:11:08 +02:00
label-focused-padding = 1
2021-08-10 15:07:10 +02:00
label-occupied =
2021-08-11 16:25:46 +02:00
label-occupied-foreground = ${colors.comment}
2021-03-28 17:11:08 +02:00
label-occupied-padding = 1
2021-08-10 15:07:10 +02:00
label-urgent =
label-urgent-foreground = ${colors.red}
2021-03-28 17:11:08 +02:00
label-urgent-padding = 1
2021-08-10 15:07:10 +02:00
label-empty =
2021-08-11 16:25:46 +02:00
label-empty-foreground = ${colors.comment}
2021-08-10 15:07:10 +02:00
; label-empty-background = ${colors.pink}
2021-03-28 17:11:08 +02:00
label-empty-padding = 1
2021-04-11 17:45:37 +02:00
2021-08-10 15:07:10 +02:00
label-separator = " "
2021-04-11 17:45:37 +02:00
label-separator-foreground = ${colors.cyan}
2021-08-10 15:07:10 +02:00
label-separator-padding = 2
2021-03-28 17:11:08 +02:00
pin-workspaces = true
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
2021-04-11 17:45:37 +02:00
format-prefix-foreground = ${colors.red}
2021-03-28 17:11:08 +02:00
format-underline = ${colors.red}
label = %percentage:2%%
[module/date]
type = internal/date
interval = 5
2021-04-11 17:45:37 +02:00
date = "%A"
2021-03-28 17:11:08 +02:00
date-alt = " %Y-%m-%d"
time = %H:%M
time-alt = %H:%M:%S
2021-04-11 17:45:37 +02:00
format-underline = ${colors.purple}
2021-03-28 17:11:08 +02:00
label = %date% %time%
2021-04-19 12:10:22 +02:00
[module/eth]
type = internal/network
interface = enp42s0
interval = 3.0
format-connected-underline = ${colors.purple}
label-connected = "%upspeed% %downspeed%"
2021-04-19 12:10:22 +02:00
2021-04-11 17:45:37 +02:00
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.green}
format-underline = ${colors.green}
2021-03-28 17:11:08 +02:00
2021-04-11 17:45:37 +02:00
label = %percentage_used%%
click-left=kitty bpytop
2021-03-28 17:11:08 +02:00
[module/powermenu]
type = custom/menu
expand-right = false
2021-03-28 17:11:08 +02:00
format-spacing = 1
2021-08-10 15:07:10 +02:00
label-open = ""
2021-04-11 17:45:37 +02:00
label-open-foreground = ${colors.orange}
2021-08-10 17:20:37 +02:00
label-close = ""
2021-03-28 17:11:08 +02:00
label-close-foreground = ${colors.red}
label-separator = |
2021-04-11 17:45:37 +02:00
label-separator-foreground = ${colors.cyan}
2021-03-28 17:11:08 +02:00
2021-08-10 17:20:37 +02:00
menu-0-0 = " "
menu-0-0-exec = #powermenu.open.1
2021-08-10 17:20:37 +02:00
menu-0-1 = " "
menu-0-1-exec = #powermenu.open.2
2021-08-10 17:20:37 +02:00
menu-0-2 = " "
menu-0-2-exec = #powermenu.open.3
2021-03-28 17:11:08 +02:00
2021-08-10 17:20:37 +02:00
menu-1-0 = " "
2021-03-28 17:11:08 +02:00
menu-1-0-exec = systemctl reboot
2021-08-10 17:20:37 +02:00
menu-2-0 = " "
2021-03-28 17:11:08 +02:00
menu-2-0-exec = systemctl poweroff
2021-08-10 17:20:37 +02:00
menu-3-0 = " "
2021-03-28 17:11:08 +02:00
menu-3-0-exec = systemctl hibernate
2021-04-11 17:45:37 +02:00
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <label-volume> <bar-volume>
label-volume = %percentage%%
label-volume-foreground = ${colors.foreground}
label-muted = " muted"
2021-04-11 17:45:37 +02:00
label-muted-foreground = ${colors.foreground-alt}
bar-volume-width = 12
2021-04-11 17:45:37 +02:00
bar-volume-foreground-0 = ${colors.green}
bar-volume-foreground-1 = ${colors.green}
bar-volume-foreground-2 = ${colors.green}
bar-volume-foreground-3 = ${colors.green}
bar-volume-foreground-4 = ${colors.green}
bar-volume-foreground-5 = ${colors.orange}
bar-volume-foreground-6 = ${colors.orange}
bar-volume-foreground-7 = ${colors.orange}
bar-volume-foreground-8 = ${colors.red}
bar-volume-gradient = true
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = -
2021-04-11 17:45:37 +02:00
bar-volume-fill-font = 2
bar-volume-empty = -
2021-04-11 17:45:37 +02:00
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground}
click-middle=pavucontrol
click-right=~/bin/cycle_sinks.sh
[module/wlan]
type = internal/network
2021-06-22 22:49:44 +02:00
interface = wlp1s0
2021-04-11 17:45:37 +02:00
interval = 3.0
format-connected-underline = ${colors.purple}
label-connected = "%upspeed% %downspeed%"
2021-04-11 17:45:37 +02:00
[module/xwindow]
type = internal/xwindow
format = <label>
label = %title:0:30:...%
format-underline = ${colors.orange}