From 8828bd7cabc39f0a3564467c2303774dc494fd0b Mon Sep 17 00:00:00 2001 From: Omar Zeidan Date: Sat, 2 Dec 2017 23:03:45 +0100 Subject: Added keybindings for corner tiling --- src/50-marco-window-key.xml.in | 16 ++++++++++++++++ src/include/all-keybindings.h | 12 ++++++++++++ src/org.mate.marco.gschema.xml | 20 ++++++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/src/50-marco-window-key.xml.in b/src/50-marco-window-key.xml.in index 0b3ecef4..6d826d5f 100644 --- a/src/50-marco-window-key.xml.in +++ b/src/50-marco-window-key.xml.in @@ -77,6 +77,22 @@ name="tile-to-side-w" _description="Tile window to west (left) side of screen" /> + + + + + + + + diff --git a/src/include/all-keybindings.h b/src/include/all-keybindings.h index b236823c..924a8e66 100644 --- a/src/include/all-keybindings.h +++ b/src/include/all-keybindings.h @@ -258,6 +258,18 @@ keybind (tile-to-side-e, handle_toggle_tiled, META_TILE_RIGHT, keybind (tile-to-side-w, handle_toggle_tiled, META_TILE_LEFT, BINDING_PER_WINDOW) +keybind (tile-to-corner-nw, handle_toggle_tiled, META_TILE_TOP_LEFT, + BINDING_PER_WINDOW) + +keybind (tile-to-corner-ne, handle_toggle_tiled, META_TILE_TOP_RIGHT, + BINDING_PER_WINDOW) + +keybind (tile-to-corner-se, handle_toggle_tiled, META_TILE_BOTTOM_RIGHT, + BINDING_PER_WINDOW) + +keybind (tile-to-corner-sw, handle_toggle_tiled, META_TILE_BOTTOM_LEFT, + BINDING_PER_WINDOW) + keybind (move-to-corner-nw, handle_move_to_corner_nw, 0, BINDING_PER_WINDOW) keybind (move-to-corner-ne, handle_move_to_corner_ne, 0, diff --git a/src/org.mate.marco.gschema.xml b/src/org.mate.marco.gschema.xml index 835abebe..4d76700e 100644 --- a/src/org.mate.marco.gschema.xml +++ b/src/org.mate.marco.gschema.xml @@ -878,6 +878,26 @@ Tile window to west (left) side of screen The format looks like "<Control>a" or "<Shift><Alt>F1". The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "<Ctl>" and "<Ctrl>". If you set the option to the special string "disabled", then there will be no keybinding for this action. + + 'disabled' + Tile window to north-west (upper left) corner of screen + The format looks like "<Control>a" or "<Shift><Alt>F1". The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "<Ctl>" and "<Ctrl>". If you set the option to the special string "disabled", then there will be no keybinding for this action. + + + 'disabled' + Tile window to north-east (upper right) corner of screen + The format looks like "<Control>a" or "<Shift><Alt>F1". The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "<Ctl>" and "<Ctrl>". If you set the option to the special string "disabled", then there will be no keybinding for this action. + + + 'disabled' + Tile window to south-east (lower right) corner of screen + The format looks like "<Control>a" or "<Shift><Alt>F1". The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "<Ctl>" and "<Ctrl>". If you set the option to the special string "disabled", then there will be no keybinding for this action. + + + 'disabled' + Tile window to south-west (lower left) corner of screen + The format looks like "<Control>a" or "<Shift><Alt>F1". The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "<Ctl>" and "<Ctrl>". If you set the option to the special string "disabled", then there will be no keybinding for this action. + 'disabled' Move window to north-west (top left) corner -- cgit v1.2.1