Adjacent Windows

UUID: adjacent-windows@klangman
Last edited:
1 month ago 2024-03-27, 08:40
Last commit: [757e780b] adjacent-windows@klangman: Add Dutch translation (#590)

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!

4 Comments

Nekkowe!
Nekkowe!-1 month 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-1 month ago
Hope it works well for you. Let me know if you find any bugs or have any suggestions.
qadzek
qadzek-1 month 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-1 month ago
Thanks qadzek for making the suggestion that lead to this extension and for your testing work.