Browse Source

[herbstluftwm] Adjust padding for polybar monitor-sensitive

main
Marcel Kapfer 1 year ago
parent
commit
6a0e9d2d23
Signed by: mmk2410
GPG Key ID: CADE6F0C09F21B09
  1. 13
      herbstluftwm/autostart

13
herbstluftwm/autostart

@ -183,8 +183,17 @@ hc unlock
# or simply:
hc detect_monitors
# make room for the panel
hc pad 0 22
# 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
;;
esac
# find the panel
panel=~/.config/herbstluftwm/panel.sh

Loading…
Cancel
Save