Skip to content

Modes similar to Sway #64

Closed Answered by mahkoh
SofusA asked this question in Q&A
Oct 18, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can easily implement modes as part of your configuration. E.g.

    s.bind(MOD | SYM_r, move || {
        s.bind(SYM_Left, move || s.focus(Left));
        s.bind(SYM_Down, move || s.focus(Down));
        s.bind(SYM_Right, move || s.focus(Right));
        s.bind(SYM_Up, move || s.focus(Up));
        s.bind(SYM_Escape, move || {
            s.unbind(SYM_Escape);
            s.unbind(SYM_Left);
            s.unbind(SYM_Down);
            s.unbind(SYM_Right);
            s.unbind(SYM_Up);
        });
    });

However, you cannot currently resize windows with the keyboard in any case.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SofusA
Comment options

Answer selected by mahkoh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants