From 89ec8bd17ee8355e190a7ebb7af82e7f2bf3edc5 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 22 Jan 2021 10:17:30 +0100 Subject: [PATCH 1/3] [herbstluftwm] switched "default" terminal to emacs vterm --- herbstluftwm/autostart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index 4e72e9c..b8a94b4 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-v spawn pavucontrol-qt hc keybind $Mod-Control-b spawn firefox-developer-edition hc keybind $Mod-Control-t spawn es -e '(eshell)' From 0c7e88ec927f8b513268960277c46f5303cc8448 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 22 Jan 2021 10:18:35 +0100 Subject: [PATCH 2/3] [herbstluftwm] switched "default" browser to epiphany --- herbstluftwm/autostart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index b8a94b4..011b54b 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-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)' From 6a0e9d2d238f6002fdca5f42ec24b00ee1446583 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 22 Jan 2021 10:19:09 +0100 Subject: [PATCH 3/3] [herbstluftwm] Adjust padding for polybar monitor-sensitive --- herbstluftwm/autostart | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index 011b54b..6eddba5 100755 --- a/herbstluftwm/autostart +++ b/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