summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOmar Zeidan <[email protected]>2017-12-02 23:03:45 +0100
committerraveit65 <[email protected]>2017-12-20 20:42:12 +0100
commit8828bd7cabc39f0a3564467c2303774dc494fd0b (patch)
tree324a1aca5c401a27b8081cedcc77eb1bb573bfc2 /src
parentb471b912d68a05711a95a3c0e033c0577262f18e (diff)
downloadmarco-8828bd7cabc39f0a3564467c2303774dc494fd0b.tar.bz2
marco-8828bd7cabc39f0a3564467c2303774dc494fd0b.tar.xz
Added keybindings for corner tiling
Diffstat (limited to 'src')
-rw-r--r--src/50-marco-window-key.xml.in16
-rw-r--r--src/include/all-keybindings.h12
-rw-r--r--src/org.mate.marco.gschema.xml20
3 files changed, 48 insertions, 0 deletions
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
@@ -78,6 +78,22 @@
_description="Tile window to west (left) side of screen" />
<KeyListEntry
+ name="tile-to-corner-nw"
+ _description="Tile window to north-west (top left) corner" />
+
+ <KeyListEntry
+ name="tile-to-corner-ne"
+ _description="Tile window to north-east (top right) corner" />
+
+ <KeyListEntry
+ name="tile-to-corner-sw"
+ _description="Tile window to south-west (bottom left) corner" />
+
+ <KeyListEntry
+ name="tile-to-corner-se"
+ _description="Tile window to south-east (bottom right) corner" />
+
+ <KeyListEntry
name="move-to-corner-nw"
_description="Move window to north-west (top left) corner" />
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 @@
<summary>Tile window to west (left) side of screen</summary>
<description>The format looks like "&lt;Control&gt;a" or "&lt;Shift&gt;&lt;Alt&gt;F1". The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "&lt;Ctl&gt;" and "&lt;Ctrl&gt;". If you set the option to the special string "disabled", then there will be no keybinding for this action.</description>
</key>
+ <key name="tile-to-corner-nw" type="s">
+ <default>'disabled'</default>
+ <summary>Tile window to north-west (upper left) corner of screen</summary>
+ <description>The format looks like "&lt;Control&gt;a" or "&lt;Shift&gt;&lt;Alt&gt;F1". The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "&lt;Ctl&gt;" and "&lt;Ctrl&gt;". If you set the option to the special string "disabled", then there will be no keybinding for this action.</description>
+ </key>
+ <key name="tile-to-corner-ne" type="s">
+ <default>'disabled'</default>
+ <summary>Tile window to north-east (upper right) corner of screen</summary>
+ <description>The format looks like "&lt;Control&gt;a" or "&lt;Shift&gt;&lt;Alt&gt;F1". The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "&lt;Ctl&gt;" and "&lt;Ctrl&gt;". If you set the option to the special string "disabled", then there will be no keybinding for this action.</description>
+ </key>
+ <key name="tile-to-corner-se" type="s">
+ <default>'disabled'</default>
+ <summary>Tile window to south-east (lower right) corner of screen</summary>
+ <description>The format looks like "&lt;Control&gt;a" or "&lt;Shift&gt;&lt;Alt&gt;F1". The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "&lt;Ctl&gt;" and "&lt;Ctrl&gt;". If you set the option to the special string "disabled", then there will be no keybinding for this action.</description>
+ </key>
+ <key name="tile-to-corner-sw" type="s">
+ <default>'disabled'</default>
+ <summary>Tile window to south-west (lower left) corner of screen</summary>
+ <description>The format looks like "&lt;Control&gt;a" or "&lt;Shift&gt;&lt;Alt&gt;F1". The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "&lt;Ctl&gt;" and "&lt;Ctrl&gt;". If you set the option to the special string "disabled", then there will be no keybinding for this action.</description>
+ </key>
<key name="move-to-corner-nw" type="s">
<default>'disabled'</default>
<summary>Move window to north-west (top left) corner</summary>