aboutsummaryrefslogtreecommitdiff
path: root/.config/polybar
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-08 19:40:18 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-08 19:40:18 +0100
commit282bbbfd8ace0b020c6ea4b072f0abc5a9515c00 (patch)
tree0658a17771b3ff62c0f97de2d94cb21509d5aeab /.config/polybar
parent136ccfa72ba67145d80d8257144061fc1a5e21b6 (diff)
update polybar config
Diffstat (limited to '.config/polybar')
-rw-r--r--.config/polybar/config.ini##template56
-rw-r--r--.config/polybar/config.superesc.ini15
-rw-r--r--.config/polybar/config.thoncc.ini49
3 files changed, 52 insertions, 68 deletions
diff --git a/.config/polybar/config.ini##template b/.config/polybar/config.ini##template
index ccb3c06..ed5371a 100644
--- a/.config/polybar/config.ini##template
+++ b/.config/polybar/config.ini##template
@@ -43,12 +43,11 @@ 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"
+modules-left = time date cal
{% if yadm.hostname == "thoncc" %}
-modules-left = time date cal mpd
modules-center = battery1 battery2 brightness
-modules-right = wireless keyboard volume
+modules-right = mpd wireless keyboard volume
{% else %}
-modules-left = time date cal
modules-center = mpd
modules-right = wacomtouch keyboard volume
{% endif %}
@@ -125,6 +124,55 @@ type = custom/script
exec = now | ansi2polybar
interval = 60
-{% include "config.{{ yadm.hostname }}.ini" %}
+[module/mpd]
+type = internal/mpd
+format-online = <label-song>
+format-offline =
+format-stopped =
+label-song = %artist% - %{T2}%title%%{T-}
+label-song-maxlen = 50
+label-song-ellipsis = true
+
+[module/wacomtouch]
+type = custom/script
+exec = ~/.local/share/bin/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
diff --git a/.config/polybar/config.superesc.ini b/.config/polybar/config.superesc.ini
deleted file mode 100644
index 2c15531..0000000
--- a/.config/polybar/config.superesc.ini
+++ /dev/null
@@ -1,15 +0,0 @@
-[module/wacomtouch]
-type = custom/script
-exec = ~/.local/share/bin/wacomtouch
-interval = 1
-
-[module/mpd]
-type = internal/mpd
-format-online = <label-song>
-format-offline =
-format-stopped =
-label-song = %artist% - %{T2}%title%%{T-}
-label-song-maxlen = 50
-label-song-ellipsis = true
-
-# vim:ft=dosini
diff --git a/.config/polybar/config.thoncc.ini b/.config/polybar/config.thoncc.ini
deleted file mode 100644
index 52b9326..0000000
--- a/.config/polybar/config.thoncc.ini
+++ /dev/null
@@ -1,49 +0,0 @@
-[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
-
-[module/mpd]
-type = internal/mpd
-format-online = <toggle> <label-song>
-format-offline =
-format-stopped =
-icon-play = [一時停止]
-icon-pause = [再生中]
-label-song = %artist% - %{T2}%title%%{T-}
-label-song-maxlen = 50
-label-song-ellipsis = true
-
-; vim:ft=dosini