From 01a6423ffcb93f7905a623168f0e07eb1fdd610b Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Tue, 4 Jan 2022 16:07:35 +0100 Subject: [PATCH] Update polybar configuration Signed-off-by: Severin Kaderli --- system/.config/polybar/config | 29 +++++++++-------------------- system/.local/bin/polybar-launch | 4 +++- 2 files changed, 12 insertions(+), 21 deletions(-) diff --git a/system/.config/polybar/config b/system/.config/polybar/config index e60e10f..4f6754c 100644 --- a/system/.config/polybar/config +++ b/system/.config/polybar/config @@ -14,7 +14,7 @@ # Variables ####################################### [settings] -padding = 4 +padding = 2 # 60% alpha background-color = ${xrdb:color0:#222} foreground-color = ${xrdb:color7:#222} @@ -40,7 +40,7 @@ offset-y = 10 override-redirect = true wm-restack = i3 -font-0 = Noto Sans:pixelsize=12;3 +font-0 = Iosevka:pixelsize=12;3 font-1 = Noto Sans CJK JP:pixelsize=12;3 font-2 = Font Awesome 5 Free:style=Solid::pixelsize=12;3 font-3 = Font Awesome 5 Brands:pixelsize=12;3 @@ -49,7 +49,7 @@ background = ${settings.background-color} foreground = ${settings.foreground-color} padding-right = 2 -module-margin = 2 +module-margin = 1 modules-left = i3 i3info modules-center = @@ -68,8 +68,8 @@ scroll-down = i3wm-deskprev inherit = bar/top bottom = true modules-left = -modules-center = -modules-right = music +modules-center = +modules-right = memory tray-position = left @@ -294,19 +294,8 @@ content =  click-left = $XDG_BIN_HOME/power +[module/memory] +type = internal/memory -####################################### -# Music status in the bottom bar -####################################### -[module/music] -type = internal/mpd -host = 127.0.0.1 -port = 6600 -password = - -format-online = - -format-stopped = Not playing -label-song = %artist% - %album% - %title% -label-offline = mpd is offline - -interval = 0.5 \ No newline at end of file +; Seconds to sleep between updates +; Default: 1 diff --git a/system/.local/bin/polybar-launch b/system/.local/bin/polybar-launch index 2767450..341ab27 100755 --- a/system/.local/bin/polybar-launch +++ b/system/.local/bin/polybar-launch @@ -31,8 +31,10 @@ MONITORS=( "eDP-1-1" "HDMI1" "HDMI-1-1" + "HDMI-1-2" "DVI-I-1-1" "DVI-I-2-1" + "HDMI2" ) for monitor in "${MONITORS[@]}"; do @@ -41,4 +43,4 @@ for monitor in "${MONITORS[@]}"; do polybar top & polybar bottom & fi -done \ No newline at end of file +done