Last active
April 26, 2024 22:04
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
grouped-window-list
applet from/usr/share/cinnamon/applets
to~/.local/share/cinnamon/applets
making sure to rename the uuid.appGroup.js
file that is located at~/.local/share/cinnamon/applets
, add the above block just below theshouldEndInstance
constant declaration.