freebsd-ports/x11-wm/herbstluftwm/files/patch-share_autostart
Zsolt Udvari a6d2830a5f x11-wm/herbstluftwm: update to 0.9.4
ChangeLog: https://herbstluftwm.org/news.html

Add missing xfixes and xrender dependencies

PR:	262618
Reported by:	uzsolt@uzsolt.hu (maintainer)
2022-03-24 16:02:41 +01:00

27 lines
807 B
Text

--- share/autostart.orig 2022-03-17 08:18:57 UTC
+++ share/autostart
@@ -62,18 +62,13 @@ hc keybind $Mod-Control-Down resize down +$resizest
hc keybind $Mod-Control-Up resize up +$resizestep
hc keybind $Mod-Control-Right resize right +$resizestep
-# tags
-tag_names=( {1..9} )
-tag_keys=( {1..9} 0 )
-hc rename default "${tag_names[0]}" || true
-for i in "${!tag_names[@]}" ; do
- hc add "${tag_names[$i]}"
- key="${tag_keys[$i]}"
- if [ -n "$key" ] ; then
- hc keybind "$Mod-$key" use_index "$i"
- hc keybind "$Mod-Shift-$key" move_index "$i"
- fi
+# tags are 1..9
+hc rename default "1" || true
+for i in $(seq 1 9) ; do
+ hc add "${i}"
+ hc keybind "$Mod-$key" use_index "$i"
+ hc keybind "$Mod-Shift-$key" move_index "$i"
done
# cycle through tags