[herbstluftwm] Adjust padding for polybar monitor-sensitive

This commit is contained in:
Marcel Kapfer 2021-01-22 10:19:09 +01:00
parent 0c7e88ec92
commit 6a0e9d2d23
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -183,8 +183,17 @@ hc unlock
# or simply: # or simply:
hc detect_monitors hc detect_monitors
# make room for the panel # make room for the panel, depending on how many monitors are configured
monitor_amount=$(hc list_monitors | wc -l)
case "$monitor_amount" in
[2-3])
hc pad 1 22
;;
*)
hc pad 0 22 hc pad 0 22
;;
esac
# find the panel # find the panel
panel=~/.config/herbstluftwm/panel.sh panel=~/.config/herbstluftwm/panel.sh