Reply To: [herbstluftwm] How to set default Algo to Vertical

Forum › Forums › New users › New Users and General Questions › [herbstluftwm] How to set default Algo to Vertical › Reply To: [herbstluftwm] How to set default Algo to Vertical

#186178
anti-apXos
Member

    i tried this changing this config in ~/.config/herbstluftwm/autostart

    hc set default_frame_layout horizontal

    but that’s it, i want default split for without frame windows.

    All herbstluft windows are in a frame. That’s just herbstluft terminology for a group of windows.

    The command you posted is correct, but it only applies to new frames that are created after the command, so it needs to be placed in the autostart script before the section where you set up tags or else all the default tags will still use a vertical layout.

    Also, if you switch to herbstluft from another wm with something like

    herbstluftwm --replace &

    then existing windows and desktops transfered from the previous WM will still use a vertical layout, too. In this case, you’ll also want to have

    hc set_layout horizontal

    somewhere early in the autostart script and

    hc set_attr tags.by-name."{tag_names[$i]}".tiling.root.algorithm horizontal

    inside the for-loop that sets up each tag.

    If you have all three of these lines at the correct places in your autostart script, I think that covers all the contingencies.

    "--"