diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index 4e72e9c..6eddba5 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -41,8 +41,8 @@ hc keybind $Mod-x spawn rofi -show run hc keybind $Mod-Tab spawn rofi -show combi hc keybind $Mod-Return spawn es hc keybind $Mod-Control-Return spawn ~/.emacs_anywhere/bin/run -hc keybind $Mod-t spawn alacritty -hc keybind $Mod-b spawn brave +hc keybind $Mod-t spawn es -e '(vterm)' +hc keybind $Mod-b spawn epiphany hc keybind $Mod-v spawn pavucontrol-qt hc keybind $Mod-Control-b spawn firefox-developer-edition hc keybind $Mod-Control-t spawn es -e '(eshell)' @@ -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