From 282bbbfd8ace0b020c6ea4b072f0abc5a9515c00 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 8 Nov 2024 19:40:18 +0100 Subject: update polybar config --- .config/polybar/config.ini##template | 56 +++++++++++++++++++++++++++++++++--- .config/polybar/config.superesc.ini | 15 ---------- .config/polybar/config.thoncc.ini | 49 ------------------------------- 3 files changed, 52 insertions(+), 68 deletions(-) delete mode 100644 .config/polybar/config.superesc.ini delete mode 100644 .config/polybar/config.thoncc.ini 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 = +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 = +format-charging-foreground = ${color.fg-half} +format-full = 100% +format-discharging = +label-charging = %percentage%% +label-discharging = %percentage%% + +[module/battery2] +type = internal/battery +battery = BAT1 +adapter = AC +poll-interval = 5 +format-charging = +format-charging-foreground = ${color.fg-half} +format-full = 100% +format-discharging = +label-charging = %percentage%% +label-discharging = %percentage%% + +[module/brightness] +type = internal/backlight +card = intel_backlight +format =