Created
March 14, 2018 17:06
-
-
Save scmanjarrez/cf206fd5308633e63973c20fc3f0b20f to your computer and use it in GitHub Desktop.
filter alt+tab by monitor, need Alternatetab addon
This file contains 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
// https://www.reddit.com/r/gnome/comments/507bqd/only_feature_im_missing_alttab_filterd_by_monitor/ | |
// open lg and copypaste this | |
imports.ui.altTab.WindowSwitcherPopup.prototype._getWindowList = function() { | |
let workspace = this._settings.get_boolean('current-workspace-only') ? global.screen.get_active_workspace() : null; | |
let allWindows = global.display.get_tab_list(Meta.TabList.NORMAL, workspace); | |
allWindows = allWindows.filter(w => w.get_monitor() === global.screen.get_current_monitor()); | |
return allWindows; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment