project-repo / cagebreak

Cagebreak: A Wayland Tiling Compositor Inspired by Ratpoison
MIT License
273 stars 20 forks source link

Toggle Top Mode Binding #53

Closed VehementHam closed 1 year ago

VehementHam commented 1 year ago

Hey I am wondering how to set a keybind to togglig top mode. For exaple C-t enters top mode and exits after I do something. If I want to do multiple things in a row it is more efficent to also have a keybind to toggel top mode like resize.

project-repo commented 1 year ago

Hi VehementHam Please consult the config man page. You should be able to achieve what you want using the setmode command.

Cheers project-repo

VehementHam commented 1 year ago

Here's the solution:

definekey top A-t setmode root
bind Escape setmode top