Changeset View
Changeset View
Standalone View
Standalone View
x11-wm/herbstluftwm/files/patch-share_autostart
--- share/autostart.orig 2019-05-09 09:04:33 UTC | |||||
+++ share/autostart | |||||
@@ -1,4 +1,4 @@ | |||||
-#!/usr/bin/env bash | |||||
+#!/bin/sh | |||||
# this is a simple config for herbstluftwm | |||||
@@ -66,14 +66,11 @@ hc keybind $Mod-Control-Right resize right +$resizes | |||||
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 ! [ -z "$key" ] ; then | |||||
- hc keybind "$Mod-$key" use_index "$i" | |||||
- hc keybind "$Mod-Shift-$key" move_index "$i" | |||||
- fi | |||||
+hc rename default "1" || true | |||||
+for i in $(seq 1 9); do | |||||
+ hc add "${i}" | |||||
+ hc keybind "$Mod-$i" use_index "$i" | |||||
+ hc keybind "$Mod-Shift-$i" move_index "$i" | |||||
done | |||||
# cycle through tags |