mirror of
https://github.com/nboughton/dotfiles
synced 2024-11-22 23:51:57 +01:00
294 lines
6.3 KiB
INI
294 lines
6.3 KiB
INI
[colors]
|
|
background = ${xrdb:background:#222}
|
|
background-alt = ${xrdb:color0:#222}
|
|
foreground = ${xrdb:foreground:#222}
|
|
foreground-alt = ${xrdb:foreground:#222}
|
|
primary = ${xrdb:color5:#222}
|
|
secondary = ${xrdb:color2:#222}
|
|
alert = ${xrdb:color6:#222}
|
|
|
|
[module/updates]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/modules/updates
|
|
exec-if = file ~/tmp/updates.json
|
|
interval = 5
|
|
click-left = update-system; systemctl --user start updates.service
|
|
label = " %output%"
|
|
|
|
[module/my-updates]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/modules/my-updates
|
|
exec-if = file ~/tmp/auroch.json
|
|
interval = 5
|
|
click-left = systemctl --user start auroch.service
|
|
label = " %output%"
|
|
|
|
[module/covid]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/modules/covid
|
|
interval = 3600
|
|
|
|
[module/weather]
|
|
type = custom/script
|
|
exec = ~/.config/waybar/modules/weather.sh
|
|
interval = 3600
|
|
|
|
[module/swap]
|
|
type = custom/script
|
|
exec = free -h | grep Swap | awk '{print $3}'
|
|
label = " %output%"
|
|
interval = 5
|
|
|
|
[module/xwindow]
|
|
type = internal/xwindow
|
|
label = %title:0:30:...%
|
|
|
|
[module/home_storage]
|
|
type = custom/script
|
|
exec = df -h 2>/dev/null | grep sda3 | awk '{print $5}'
|
|
label = " %output%"
|
|
interval = 30
|
|
|
|
[module/root_storage]
|
|
type = custom/script
|
|
exec = df -h 2>/dev/null | grep sda2 | awk '{print $5}'
|
|
label = " %output%"
|
|
interval = 30
|
|
|
|
[module/i3]
|
|
type = internal/i3
|
|
format = <label-state> <label-mode>
|
|
index-sort = true
|
|
wrapping-scroll = false
|
|
|
|
; Only show workspaces on the same output as the bar
|
|
;pin-workspaces = true
|
|
|
|
label-mode-padding = 4
|
|
label-mode-foreground = ${colors.foreground}
|
|
|
|
; focused = Active workspace on focused monitor
|
|
label-focused = %index% %icon%
|
|
label-focused-foreground = ${colors.primary}
|
|
label-focused-padding = 4
|
|
|
|
; unfocused = Inactive workspace on any monitor
|
|
label-unfocused = %index% %icon%
|
|
label-unfocused-padding = 4
|
|
|
|
; visible = Active workspace on unfocused monitor
|
|
label-visible = %index% %icon%
|
|
label-visible-background = ${self.label-focused-background}
|
|
label-visible-padding = ${self.label-focused-padding}
|
|
|
|
; urgent = Workspace with urgency hint set
|
|
label-urgent = %index% %icon%
|
|
label-urgent-foreground = ${colors.alert}
|
|
label-urgent-padding = 4
|
|
|
|
; Separator in between workspaces
|
|
; label-separator = |
|
|
|
|
ws-icon-0 = 1;
|
|
ws-icon-1 = 2;
|
|
ws-icon-2 = 3;
|
|
ws-icon-3 = 4;
|
|
ws-icon-default =
|
|
|
|
[module/xbacklight]
|
|
type = internal/xbacklight
|
|
|
|
format = <label>
|
|
label = %percentage%
|
|
|
|
[module/backlight-acpi]
|
|
inherit = module/xbacklight
|
|
type = internal/backlight
|
|
card = intel_backlight
|
|
|
|
[module/cpu]
|
|
type = internal/cpu
|
|
interval = 1
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
label = %percentage:2%%
|
|
|
|
[module/memory]
|
|
type = internal/memory
|
|
interval = 2
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
label = %percentage_used%%
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
interval = 5
|
|
|
|
date = "%a %d %b"
|
|
date-alt = " %Y-%m-%d"
|
|
|
|
time = %H:%M
|
|
time-alt = %H:%M:%S
|
|
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
|
|
label = %date% %time%
|
|
|
|
[module/pulseaudio]
|
|
type = internal/pulseaudio
|
|
|
|
format-volume = <label-volume>
|
|
label-volume = %percentage%%
|
|
label-volume-foreground = ${root.foreground}
|
|
|
|
label-muted =
|
|
label-muted-foreground = ${colors.foreground}
|
|
|
|
interval = 1
|
|
|
|
[module/battery]
|
|
type = internal/battery
|
|
battery = BAT0
|
|
adapter = AC
|
|
full-at = 98
|
|
|
|
format-charging = <animation-charging> <label-charging>
|
|
format-discharging = <animation-discharging> <label-discharging>
|
|
|
|
format-full-prefix = " "
|
|
format-full-prefix-foreground = ${colors.foreground-alt}
|
|
|
|
ramp-capacity-0 =
|
|
ramp-capacity-1 =
|
|
ramp-capacity-2 =
|
|
ramp-capacity-foreground = ${colors.foreground-alt}
|
|
|
|
animation-charging-0 =
|
|
animation-charging-1 =
|
|
animation-charging-2 =
|
|
animation-charging-foreground = ${colors.foreground-alt}
|
|
animation-charging-framerate = 750
|
|
|
|
animation-discharging-0 =
|
|
animation-discharging-1 =
|
|
animation-discharging-2 =
|
|
animation-discharging-foreground = ${colors.foreground-alt}
|
|
animation-discharging-framerate = 750
|
|
|
|
[module/powermenu]
|
|
type = custom/menu
|
|
|
|
expand-right = true
|
|
|
|
format-spacing = 1
|
|
|
|
label-open =
|
|
label-open-foreground = ${colors.secondary}
|
|
label-close = cancel
|
|
label-close-foreground = ${colors.secondary}
|
|
label-separator = |
|
|
label-separator-foreground = ${colors.foreground-alt}
|
|
|
|
menu-0-0 = reboot
|
|
menu-0-0-exec = menu-open-1
|
|
menu-0-1 = power off
|
|
menu-0-1-exec = menu-open-2
|
|
|
|
menu-1-0 = cancel
|
|
menu-1-0-exec = menu-open-0
|
|
menu-1-1 = reboot
|
|
menu-1-1-exec = systemctl reboot
|
|
|
|
menu-2-0 = power off
|
|
menu-2-0-exec = systemctl -i poweroff
|
|
menu-2-1 = cancel
|
|
menu-2-1-exec = menu-open-0
|
|
|
|
[settings]
|
|
screenchange-reload = true
|
|
|
|
[bar/top]
|
|
monitor = ${env:MONITOR:}
|
|
width = 1900
|
|
height = 30
|
|
override-redirect = true
|
|
wm-restack = i3
|
|
offset-x = 10
|
|
offset-y = 10
|
|
radius = 4.0
|
|
fixed-center = true
|
|
|
|
background = ${colors.background}
|
|
foreground = ${colors.foreground}
|
|
|
|
line-size = 3
|
|
line-color = ${colors.foreground}
|
|
|
|
border-size = 0
|
|
border-color = ${colors.primary}
|
|
|
|
padding-left = 3
|
|
padding-right = 3
|
|
|
|
module-margin-left = 4
|
|
module-margin-right = 4
|
|
|
|
font-1 = Font Awesome 5 Free:style=Solid:pixelsize=8;2
|
|
font-2 = Font Awesome 5 Free:style=Regular:pixelsize=8;2
|
|
font-3 = Font Awesome 5 Brands:pixelsize=8;2
|
|
font-4 = Font Awesome 5 Regular:pixelsize=8;2
|
|
font-0 = Kanit Medium:size=8;2
|
|
|
|
modules-left = date battery root_storage home_storage memory swap cpu
|
|
modules-center = i3
|
|
modules-right = covid weather updates my-updates backlight-acpi pulseaudio powermenu
|
|
|
|
cursor-click = pointer
|
|
cursor-scroll = ns-resize
|
|
|
|
tray-position = right
|
|
tray-padding = 2
|
|
;tray-offset-x = 100
|
|
;tray-background = #00000000
|
|
|
|
;[bar/bottom]
|
|
;bottom = true
|
|
;width = 300
|
|
;height = 30
|
|
;override-redirect = true
|
|
;wm-restack = i3
|
|
;offset-x = 10
|
|
;offset-y = 10
|
|
;radius = 4.0
|
|
;fixed-center = true
|
|
|
|
;background = ${colors.background}
|
|
;foreground = ${colors.foreground}
|
|
|
|
;line-size = 3
|
|
;line-color = ${colors.foreground}
|
|
|
|
;border-size = 0
|
|
;border-color = ${colors.primary}
|
|
|
|
;padding-left = 2
|
|
;padding-right = 2
|
|
|
|
;module-margin-left = 2
|
|
;module-margin-right = 2
|
|
|
|
;font-1 = Font Awesome 5 Free:style=Solid:pixelsize=8;2
|
|
;font-2 = Font Awesome 5 Free:style=Regular:pixelsize=8;2
|
|
;font-3 = Font Awesome 5 Brands:pixelsize=8;2
|
|
;font-4 = Font Awesome 5 Regular:pixelsize=8;2
|
|
;font-0 = Fira Code:style=Medium:size=8;2
|
|
|
|
;modules-left =
|
|
;modules-center =
|
|
;modules-right = powermenu
|
|
|
|
;tray-position = center
|
|
;tray-padding = 2
|
|
|
|
; vim:ft=dosini
|