Other Herbstluftwm 0.9.5

Hello all, I reinstalled herbstluftwm after a couple of years but it seems this version has an issue:
if you try to move from tag 1 to any other tag it does not work.
So I replaced these lines of code from the original autostart
Bash:
# 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

with an old version

Bash:
# tags are 1..9
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  
done

Hope it helps.

FreeBSD 13.1 p5
 
Hello. How about this code?

Bash:
# 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 ! [ -z "$key" ] ; then
        hc keybind "$Mod-$key" use_index "$i"
        hc keybind "$Mod-Shift-$key" move_index "$i"
    fi
done

# cycle through tags
hc keybind $Mod-period use_index +1 --skip-visible
hc keybind $Mod-comma  use_index -1 --skip-visible
 
Hello. How about this code?

Bash:
# 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 ! [ -z "$key" ] ; then
        hc keybind "$Mod-$key" use_index "$i"
        hc keybind "$Mod-Shift-$key" move_index "$i"
    fi
done

# cycle through tags
hc keybind $Mod-period use_index +1 --skip-visible
hc keybind $Mod-comma  use_index -1 --skip-visible
Hello Ogis, your code is same as I wrote.
Do not know what you mean.

cycle through tags is the same in all autostart versions
PS:
I replaced "period" with "Left" and "comma" with "Right" (more pratical for my notebook keyboard)
 
Hello. I meant that this code of mine works not only on FreeBSD but also on Debian. I mean it's universal.
Hello Ogis, peraphs I can't explain well, sorry, english is not my native language.
yes, your code should be the original code in autostart.
But if you install herbstluftwm on freebsd 13.1 the autostart file was modified and does not work.
This is what I noticed.
 
Hello Ogis, peraphs I can't explain well, sorry, english is not my native language.
But if you install herbstluftwm on freebsd 13.1 the autostart file was modified and does not work.
This is what I noticed.
English is not my native language either. Very strange. Is this a bug or is it intended that way. Thanks for letting me know. I've been meaning to try this window manager, but I'll keep that fact in mind for now.
 
Back
Top