dotfiles/home/.config/polybar/config.ini
Sarthak 7f41cf7a82 replace the old dotfiles with the sakura line rice
The bare $HOME repo is gone. This is now the rice: install.sh, rice-*
scripts in bin/, configs in home/ linked into $HOME, theme templates, st
and the particle wallpaper. Clone to ~/rice and run install.sh.
2026-09-14 19:44:44 +05:30

121 lines
2.9 KiB
INI

; Sakura Line - polybar. Colours come from the rendered theme.
; Every label opens its panel: left click = panel, right click = quick action.
include-file = ~/.local/state/rice/theme/polybar-colors.ini
include-file = ~/.local/state/rice/theme/polybar-modules.ini
[bar/top]
monitor = ${env:MONITOR:}
wm-restack = bspwm
enable-ipc = true
; Edges line up with tiled windows: bspwm draws borders inside the gap, so their
; outer edges sit one gap (10px) in from each side, so 100% minus 20px.
width = 100%:-20
height = 28
radius = 10
offset-x = 10
offset-y = 5
fixed-center = true
background = ${colors.bg-trans}
foreground = ${colors.text}
border-size = 2
border-color = ${colors.border}
padding = 1
module-margin = 0
cursor-click = pointer
cursor-scroll = ns-resize
font-0 = ${fonts.main}
font-1 = ${fonts.large}
; The clock sits alone in the centre so nothing that comes and goes (the
; player, recording or reminder indicators) can push it off centre.
modules-left = menu bspwm media
modules-center = date
modules-right = indicators cpu sep ram sep gpu sep net sep bt sep vol sep notif
[module/sep]
type = custom/text
format = "|"
format-foreground = ${colors.dim}
format-padding = 0
[module/menu]
type = custom/text
format = "󰣇"
format-foreground = ${colors.accent}
format-font = 2
format-padding = 1
click-left = rice-menu main
click-right = rice-panel hub
[module/bspwm]
type = internal/bspwm
pin-workspaces = true
inline-mode = true
enable-click = true
enable-scroll = true
format = <label-state>
label-focused = "[%name%]"
label-focused-foreground = ${colors.accent}
label-focused-padding = 1
label-occupied = "%name%"
label-occupied-foreground = ${colors.text}
label-occupied-padding = 1
label-empty = "%name%"
label-empty-foreground = ${colors.dim}
label-empty-padding = 1
label-urgent = "!%name%!"
label-urgent-foreground = ${colors.urgent}
label-urgent-padding = 1
[module/indicators]
type = custom/script
exec = rice-status indicators
tail = true
format-padding = 1
[module/media]
type = custom/script
exec = rice-status media
tail = true
format-padding = 1
click-left = rice-panel media
click-right = playerctl play-pause
scroll-up = playerctl previous
scroll-down = playerctl next
[module/net]
type = custom/script
exec = rice-status net
tail = true
format-padding = 1
click-left = rice-panel network
[module/bt]
type = custom/script
exec = rice-status bt
tail = true
format-padding = 1
click-left = rice-panel bluetooth
click-right = rice-bt power toggle
[module/vol]
type = custom/script
exec = rice-status vol
tail = true
format-padding = 1
click-left = rice-panel audio
click-right = rice-volume mute
scroll-up = rice-volume up
scroll-down = rice-volume down
[module/notif]
type = custom/script
exec = rice-status notif
tail = true
format-padding = 1
click-left = rice-panel notifications
click-middle = rice-notify dnd toggle
click-right = rice-notify dismiss-all
[settings]
screenchange-reload = true