aboutsummaryrefslogtreecommitdiff
path: root/home/dot_config/polybar
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2026-08-02 14:48:29 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2026-08-02 14:48:29 +0200
commite43eb1177872f52e949fb5f0f93396ed94b0d093 (patch)
tree78b73af6a989fa2996d71b112e161b70d35081ef /home/dot_config/polybar
parent2f14a896e4b897bd747c24d7ad8e9e7bb3237d03 (diff)
move to chezmoi
Diffstat (limited to 'home/dot_config/polybar')
-rw-r--r--home/dot_config/polybar/config.ini.tmpl169
1 files changed, 169 insertions, 0 deletions
diff --git a/home/dot_config/polybar/config.ini.tmpl b/home/dot_config/polybar/config.ini.tmpl
new file mode 100644
index 0000000..4af32e6
--- /dev/null
+++ b/home/dot_config/polybar/config.ini.tmpl
@@ -0,0 +1,169 @@
+[barsettings]
+padding = 1.9
+include-file = ./colors.ini
+
+[global/wm]
+margin-bottom = 50
+margin-top = 0
+
+[bar/main]
+tray-position = right
+tray-padding = ${barsettings.padding}
+tray-background = ${color.bg}
+tray-margin = 8
+
+monitor =
+monitor-fallback =
+monitor-strict = false
+
+override-redirect = false
+
+bottom = false
+fixed-center = true
+
+width = 100%
+height = 20
+offset-x = 0
+offset-y = 0
+
+background = ${color.bg}
+foreground = ${color.fg}
+
+radius-top = 0.0
+radius-bottom = 0.0
+
+padding = 5
+module-margin-left = 1
+module-margin-right = 1
+
+font-0 = "sans-serif:pixelsize=8:weight=regular:size=0;2"
+font-1 = "sans-serif:pixelsize=8:weight=bold:size=0;2"
+
+font-2 = "Hiragino Kaku Gothic ProN W3:pixelsize=8:weight=medium:size=0;1"
+font-3 = "Hiragino Kaku Gothic ProN W6:pixelsize=8:weight=medium:size=0;1"
+font-4 = "Noto Sans KR:pixelsize=8:weight=medium:size=0;2"
+font-5 = "Noto Sans CJK SC:pixelsize=8:weight=medium:size=0;2"
+
+modules-left = time date
+modules-center = mpd
+modules-right = wacomtouch keyboard volume
+
+separator =
+
+spacing = 0
+
+dim-value = 1.0
+
+wm-name =
+
+locale = {{ env "LANG" }}
+
+wm-restack = i3
+
+enable-ipc = true
+
+click-left =
+click-middle =
+click-right =
+scroll-up =
+scroll-down =
+double-click-left =
+double-click-middle =
+double-click-right =
+
+cursor-click =
+cursor-scroll =
+
+[settings]
+screenchange-reload = false
+
+compositing-background = source
+compositing-foreground = over
+compositing-overline = over
+compositing-underline = over
+compositing-border = over
+
+format-foreground = ${color.fg}
+format-background = ${color.bg}
+format-padding = ${barsettings.padding}
+
+pseudo-transparency = false
+
+[module/volume]
+type = internal/pulseaudio
+format-volume = <label-volume>
+label-volume = %percentage%%
+label-muted = "muted"
+
+[module/date]
+type = internal/date
+interval = 1.0
+time = %m月%d日 (%a)
+format = <label>
+label = %time%
+
+[module/time]
+type = internal/date
+interval = 1.0
+time = %H:%M
+format = <label>
+label = %time%
+label-font = 2
+
+[module/keyboard]
+type = custom/script
+exec = kbindicator
+tail = true
+
+[module/mpd]
+type = internal/mpd
+format-online = <label-song>
+format-offline =
+format-stopped =
+label-song = %artist% - %title%
+label-song-maxlen = 50
+label-song-ellipsis = true
+
+[module/wacomtouch]
+type = custom/script
+exec = wacomtouch
+interval = 1
+
+[module/battery1]
+type = internal/battery
+battery = BAT0
+adapter = AC
+poll-interval = 5
+format-charging = <label-charging>
+format-charging-foreground = ${color.fg-half}
+format-full = 100%
+format-discharging = <label-discharging>
+label-charging = %percentage%%
+label-discharging = %percentage%%
+
+[module/battery2]
+type = internal/battery
+battery = BAT1
+adapter = AC
+poll-interval = 5
+format-charging = <label-charging>
+format-charging-foreground = ${color.fg-half}
+format-full = 100%
+format-discharging = <label-discharging>
+label-charging = %percentage%%
+label-discharging = %percentage%%
+
+[module/brightness]
+type = internal/backlight
+card = intel_backlight
+format = <label>
+
+[module/wireless]
+type = internal/network
+interface = wlan0
+format-connected = <label-connected>
+format-disconnected = <label-disconnected>
+label-connected = %essid%
+label-disconnected = no network
+
+; vim:ft=dosini