ice-wm / icewm

IceWM releases only, see Wiki
https://github.com/ice-wm/icewm/releases
Other
289 stars 16 forks source link

Keyboard Shortcuts and/or icesh support for Tiling. #84

Closed Parakleta closed 2 years ago

Parakleta commented 2 years ago

The recent addition of tiling support in icewm is great, thanks so much for that. I was however wondering if it would be possible to expose these to some method of keyboard shortcuts, preferably through the preferences file, or otherwise through the keys file via icesh commands.

I personally would be binding it over the KeyWinArrangeX mappings since I don't use those.

gijsbers commented 2 years ago

This refers to the tiling of a single window.

key "Ctrl+Alt+KP_7" icesh -f sizeto 49% 49% top left
key "Ctrl+Alt+KP_8" icesh -f sizeto 100% 49% top left
key "Ctrl+Alt+KP_9" icesh -f sizeto 49% 49% top right
key "Ctrl+Alt+KP_6" icesh -f sizeto 49% 100% top right
key "Ctrl+Alt+KP_3" icesh -f sizeto 49% 49% bottom right
key "Ctrl+Alt+KP_2" icesh -f sizeto 100% 49% bottom left
key "Ctrl+Alt+KP_1" icesh -f sizeto 49% 49% bottom right
key "Ctrl+Alt+KP_4" icesh -f sizeto 49% 100% top left
key "Ctrl+Alt+KP_5" icesh -f sizeto 49% 49% center
Parakleta commented 2 years ago

I totally missed sizeto by percent. Thanks so much for that.