Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Next] Add hotkey support for (tiling-) window switching #700

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TobiasSchaffner
Copy link

Despite the existing hotkey support for window tiling in Cinnamon, an efficient mechanism for navigating between the tiled windows, apart from tabbing through the list of open windows, was missing.

This patch adds support for navigation between windows using hotkeys.

Despite the existing hotkey support for window tiling in Cinnamon,
an efficient mechanism for navigating between the tiled windows,
apart from tabbing through the list of open windows, was missing.

This patch adds support for navigation between windows using hotkeys.

Signed-off-by: Tobias Schaffner <[email protected]>
@TobiasSchaffner
Copy link
Author

Additional patches for testing:

cinnamon:

diff --git a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_keyboard.py b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_keyboard.py
index d65a9628c..5406b516c 100755
--- a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_keyboard.py
+++ b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_keyboard.py
@@ -114,6 +114,10 @@ KEYBINDINGS = [
     [_("Push tile right"), MUFFIN_KEYBINDINGS_SCHEMA, "push-tile-right", "win-tiling"],
     [_("Push tile up"), MUFFIN_KEYBINDINGS_SCHEMA, "push-tile-up", "win-tiling"],
     [_("Push tile down"), MUFFIN_KEYBINDINGS_SCHEMA, "push-tile-down", "win-tiling"],
+    [_("Switch to tile left"), MUFFIN_KEYBINDINGS_SCHEMA, "switch-to-tile-left", "win-tiling"],
+    [_("Switch to tile right"), MUFFIN_KEYBINDINGS_SCHEMA, "switch-to-tile-right", "win-tiling"],
+    [_("Switch to tile up"), MUFFIN_KEYBINDINGS_SCHEMA, "switch-to-tile-up", "win-tiling"],
+    [_("Switch to tile down"), MUFFIN_KEYBINDINGS_SCHEMA, "switch-to-tile-down", "win-tiling"],
     # Windows - Workspace-related
     [_("Move window to new workspace"), MUFFIN_KEYBINDINGS_SCHEMA, "move-to-workspace-new", "win-workspaces"],
     [_("Move window to left workspace"), MUFFIN_KEYBINDINGS_SCHEMA, "move-to-workspace-left", "win-workspaces"],

cinnamon-desktop:

diff --git a/schemas/org.cinnamon.desktop.keybindings.wm.gschema.xml.in b/schemas/org.cinnamon.desktop.keybindings.wm.gschema.xml.in
index ed9ca9d..37f3bbe 100644
--- a/schemas/org.cinnamon.desktop.keybindings.wm.gschema.xml.in
+++ b/schemas/org.cinnamon.desktop.keybindings.wm.gschema.xml.in
@@ -21,6 +21,22 @@
       <default><![CDATA[['<Super>Down']]]></default>
     </key>
 
+    <key type="as" name="switch-to-tile-left">
+      <default><![CDATA[['<Alt>Left']]]></default>
+    </key>
+
+    <key type="as" name="switch-to-tile-right">
+      <default><![CDATA[['<Alt>Right']]]></default>
+    </key>
+
+    <key type="as" name="switch-to-tile-up">
+      <default><![CDATA[['<Alt>Up']]]></default>
+    </key>
+
+    <key type="as" name="switch-to-tile-down">
+      <default><![CDATA[['<Alt>Down']]]></default>
+    </key>
+
     <key type="as" name="push-snap-left">
       <default>[]</default>
       <summary>obsolete</summary>

@clefebvre
Copy link
Member

Marking this as NEXT. I like the idea but we're planning to look into workspace management in the near future and maybe redesign scale/overview. The design around integrated tiling features should go along with that.

@clefebvre clefebvre changed the title Add hotkey support for (tiling-) window switching [Next] Add hotkey support for (tiling-) window switching Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants