Window Manager Central
EN ES FR

Niri

Undocumented and Uncommon Tips

  • One can expand a column horizontally, vertically or both by doublie right-clicking while holding the Modifier key and placing the cursor inside the window in the desired direction.

  • One can focus windows into the adjacent monitor when reaching a workspace end by using the following Niri actions, focus-column-or-monitor-<direction> and move-column-<direction>-or-monitor-<direction>. The direction can be any of “right”, “left”, “up”, and “down”.

  • Splitting lines:

    This is useful for lone lines and to make the more readable.

    Split the lines with the backwards slash symbol and double quoted string to not require escaping the newline.

    kdl
        xf86audioraisevolume allow-when-locked=true { spawn-sh \
            "wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 &&
            wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+";
        }
        xf86audiolowervolume allow-when-locked=true { spawn-sh \
            "wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 &&
            wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-";
        }
        xf86audiomute        allow-when-locked=true { spawn-sh \
            "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
        }
        xf86audiomicmute     allow-when-locked=true { spawn-sh \
            "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle";
        }
Tags: #niri and #scrolling