Update polybar configuration

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2022-01-04 16:07:35 +01:00
parent 58c347eecf
commit 01a6423ffc
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
2 changed files with 12 additions and 21 deletions

View file

@ -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 = <label-song> - <label-time>
format-stopped = Not playing
label-song = %artist% - %album% - %title%
label-offline = mpd is offline
interval = 0.5
; Seconds to sleep between updates
; Default: 1

View file

@ -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
done