Skip to content

Instantly share code, notes, and snippets.

@scmanjarrez
Created March 14, 2018 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scmanjarrez/cf206fd5308633e63973c20fc3f0b20f to your computer and use it in GitHub Desktop.
Save scmanjarrez/cf206fd5308633e63973c20fc3f0b20f to your computer and use it in GitHub Desktop.
filter alt+tab by monitor, need Alternatetab addon
// 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