aboutsummaryrefslogtreecommitdiff
path: root/.config/polybar/config##template
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-09-22 12:58:16 +0200
committerlonkaars <loek@pipeframe.xyz>2022-09-22 12:58:16 +0200
commit9293bd808111f576f981d0d93ca8d715d22cd7e5 (patch)
tree518d9867579cc01929198f4fce4f015ac6c9e128 /.config/polybar/config##template
parent8da5ed235bf0177df156eca42239257586026d02 (diff)
large laptop dotfiles update
Diffstat (limited to '.config/polybar/config##template')
-rw-r--r--.config/polybar/config##template142
1 files changed, 142 insertions, 0 deletions
diff --git a/.config/polybar/config##template b/.config/polybar/config##template
new file mode 100644
index 0000000..dafd333
--- /dev/null
+++ b/.config/polybar/config##template
@@ -0,0 +1,142 @@
+[barsettings]
+padding = 1.9
+
+[color]
+bg = ${xrdb:background:#fdf9f7}
+fg = ${xrdb:foreground:#121213}
+fg-alt = ${xrdb:background:#fdf9f7}
+fg-half = ${xrdb:color8:#bbb8b7}
+
+alpha = #00000000
+
+[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 = 3
+
+module-margin-left = 1
+module-margin-right = 1
+
+font-0 = "JetBrains Mono Nerd Font:pixelsize=8:weight=regular:size=0;2"
+font-1 = "JetBrains Mono Nerd Font:pixelsize=8:weight=bold:size=0;2"
+font-2 = "Noto Sans JP:pixelsize=8:weight=medium:size=0;2"
+font-3 = "Noto Sans KR:pixelsize=8:weight=medium:size=0;2"
+
+{% if yadm.hostname == "thoncc" %}
+modules-left = time date rooster
+modules-center = battery1 battery2 brightness
+modules-right = wireless keyboard volume whoami
+{% else %}
+modules-left = time date
+modules-center = weather mpd
+modules-right = keyboard volume whoami
+{% endif %}
+
+separator =
+
+spacing = 0
+
+dim-value = 1.0
+
+wm-name =
+
+locale = ja_JP.UTF-8
+
+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]
+throttle-output = 5
+throttle-output-for = 10
+
+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 = %{T2}%H時%M分%{T-}
+format = <label>
+label = %time%
+
+[module/weather]
+type = custom/script
+exec = ~/.config/polybar-forecast/target/release/polybar-forecast
+interval = 120
+exec-if = ping openweathermap.org -c 1
+label-font = 2
+
+[module/whoami]
+type = custom/script
+exec = echo "%{T2}$(id -u -n)%{T-}@%{T2}$(uname -n)%{T-}"
+interval = 9999999
+label-font = 2
+
+{% include "config.{{ yadm.hostname }}" %}
+
+; vim:ft=dosini