PreviousNext
Help > 29. Configuring viewport switcher
29. Configuring viewport switcher

See Viewport switcher for more information.

If you want to switch to another workspace by pressing super+num where num is the number of the workspace you want to use.

Follow the example below.

~/.config/wayfire.ini

[vswitch]

binding_0 = <super> KEY_0

binding_1 = <super> KEY_1

binding_2 = <super> KEY_2

binding_3 = <super> KEY_3

binding_4 = <super> KEY_4

binding_5 = <super> KEY_5

binding_6 = <super> KEY_6

binding_7 = <super> KEY_7

binding_8 = <super> KEY_8

binding_9 = <super> KEY_9

Configuring your outputs

See Output for more information, setting mirroring, custom modes, etc.

Example configuration statically via Wayfire:

~/.config/wayfire.ini

[eDP-1]

mode = 1920x1080@60.000000 # or just 1920x1080

layout = 0,0

transform = normal

scale = 1.000000

Kanshi supports more dynamic configuration, like switching profiles based on connected outputs:

~/.config/kanshi/config

{

  output eDP-1 mode 1920x1080 position 0,0

}

{

  output eDP-1 mode 1920x1080 position 0,900

  output HDMI-A-1 mode 1440x900 position 0,0

}

You can get the names of your outputs with wlr-randr, or by inspecting the log of Wayfire (printed to stdout by default).

And start kanshi on startup with Autostart.

Notifications

Using mako:

~/.config/wayfire.ini

[autostart]

notifications = mako

See Autostart for more information.

Idle configuration

Example configuration with swayidle and swaylock:

~/.config/wayfire.ini

[autostart]

idle = swayidle before-sleep swaylock

 

[idle]

toggle = <super> KEY_Z

screensaver_timeout = 300

dpms_timeout = 600

Disables the compositor going idle with Super + z.

This will lock your screen after 300 seconds of inactivity, then turn off your displays after another 300 seconds.

See Autostart and Idle for more information.

Note: for now there is a trick for binding a key to instantly turn-off the screen (DPMS).