kwin-scripts / kwin-tiling

Tiling script for kwin
GNU General Public License v2.0
1.1k stars 68 forks source link

Add shortcuts to switch to each layout #254

Closed Sonotsugipaa closed 2 years ago

Sonotsugipaa commented 2 years ago

Add shortcuts to switch to each layout

When registering keyboard shortcuts, iterate over the TilingManager.availableLayouts array and register a shortcut to switch to each layout.

This commit adds the option to assign a shortcut to switch directly to any layout type.

For example: I can assign GridLayout to Meta+1 and HalfLayout to Meta+2 so I can directly switch to them, whereas before I had to cycle forward twice (or backward three times) to switch from GridLayout to HalfLayout.

faho commented 2 years ago

Sorry it's taken me so long to get to this.

Unfortunately I don't think we want this - adding shortcuts should be done with care because they won't be removed. Sorry!