Skip to content

Instantly share code, notes, and snippets.

@thoughtsunificator
Last active April 26, 2024 22:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thoughtsunificator/6d95841aed7fc2a9e1cdcecfc76ef21d to your computer and use it in GitHub Desktop.
Save thoughtsunificator/6d95841aed7fc2a9e1cdcecfc76ef21d to your computer and use it in GitHub Desktop.
Enable ctrl + right click cycling through windows in Linux Mint 20.2 Cinnamon Edition
if(ctrlPressed && button === 1) {
let currentIndex = 0
for (let i = 0; i < this.groupState.metaWindows.length; i++) {
if(this.groupState.metaWindows[i] === this.groupState.lastFocused) {
currentIndex = i
}
}
if(currentIndex === this.groupState.metaWindows.length - 1) {
currentIndex = 0
} else {
currentIndex++
}
Main.activateWindow(this.groupState.metaWindows[currentIndex], global.get_current_time());
return
}
@thoughtsunificator
Copy link
Author

thoughtsunificator commented Nov 28, 2021

NAME="Linux Mint"
VERSION="20.2 (Uma)"
  1. Fork the grouped-window-list applet from /usr/share/cinnamon/applets to ~/.local/share/cinnamon/applets making sure to rename the uuid.
  2. Inside the appGroup.js file that is located at ~/.local/share/cinnamon/applets, add the above block just below the shouldEndInstance constant declaration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment