Adjacent Windows

UUID: adjacent-windows@klangman
Last edited:
1 month ago 2024-11-11, 15:55
Last commit: [fd4592cc] Update Basque Translations (#771)

Use hotkeys to switch to adjacent windows

README

Close

Adjacent Windows

A Cinnamon extension that allows you to define hotkeys which will activate the nearest window to the current window on the left, right, above, below or underneath. There is also an option (disabled by default) to undo the window change and activate the window that previously had the focus. With this extension you can easily change the window focus without reaching for the mouse and it's faster than using Alt-TAB. It's particularly useful for people who frequently use window tiling.

By default the Super+Alt+(arrow-keys) are defined as the hotkeys to move to adjacent windows, but this can be changed in the configuration. If for example, you like the Vim key bindings, you could change the hotkeys to be Super+h/j/k/l. The default hotkey for activating windows underneath the current window is Super+Alt+Insert (Keypad).

Requirements

This extension requires at least Linux Mint 21 / Cinnamon 5.4 because the Meta.Window.get_frame_rect() API is needed.

Installation

  1. Right click on the cinnamon panel and click "System Settings"
  2. Click on the "Extensions" icon under the "Preferences" category
  3. Click the "Download" tab and then click the "Adjacent Windows" entry
  4. Click the "Install" button on the right and then return to the "Manage" tab
  5. Select the new "Adjacent Windows" entry and then click the "+" button at the bottom of the window
  6. Click on the gears icon to the right of the "Adjacent Windows" entry to open the configuration window so you can change the hotkeys and other options as desired.

Feedback

Please leave a comment here on cinnamon-spices.linuxmint.com or you can create an issue on my "Adjacent Windows" development GitHub repository if you encounter any issues with this extension:

https://github.com/klangman/Adjacent-Windows

This is where I develop new features and test out any new ideas I have before pushing to cinnamon-spices.

If you use this extension please let me know by "liking" it here and on my Github repository, that way I will be encouraged to continue working on the project.

Free Icon: https://www.flaticon.com/free-icon/four-arrows_10696144 Four ways icons created by Laisa Islam Ani

CHANGELOG

Open

Log In To Comment!

7 Comments

lachase
lachase-2 weeks ago
I love it when I think of a functionality and discover it's been made possible in my DE by a piece of software like this. I didn't even know about extensions in cinnamon, just applets/desklets, so that's a bonus. Good work! I assume that there is some reason that this tool can't work across multiple monitors, aside from that I have absolutely no complaints.
lachase
lachase-2 weeks ago
Wow this is embarrassing, just looked at the settings for half a second and realized that mulit-monitor support is indeed possible. I now have absolutely no complaints!
Kevin Langman
Kevin Langman-2 weeks ago
Glad that this extension is useful to you. Let me know if you spot and issues with it.
Nekkowe!
Nekkowe!-8 months ago
That's wild, what a concept! I can think of a good couple cases where this kind of keyboard-only tiled-window navigation would become really useful. Thank you for this extension!
Kevin Langman
Kevin Langman-8 months ago
Hope it works well for you. Let me know if you find any bugs or have any suggestions.
qadzek
qadzek-8 months ago
This extension is working great on Linux Mint 21.3. Together with the key bindings available under Keyboard > Shortcuts > Windows > Tiling and Snapping, it almost feels like using a tiling window manager.
Kevin Langman
Kevin Langman-8 months ago
Thanks qadzek for making the suggestion that lead to this extension and for your testing work.