diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2018-04-07 10:17:36 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2018-04-07 10:17:36 -0700 |
commit | 1f9c1e2a69de6c7456d425b8cbb0293f66efab95 (patch) | |
tree | 98575c019dae934575417c28c84151dc7aaa7f9c /.local | |
parent | d385532242370bdf01db1f015acc804c11c1ae16 (diff) | |
download | dotfiles-1f9c1e2a69de6c7456d425b8cbb0293f66efab95.tar.gz |
archive a lot more out of ~
Diffstat (limited to '.local')
-rw-r--r-- | .local/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/extension.js | 44 | ||||
-rw-r--r-- | .local/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/metadata.json | 20 |
2 files changed, 0 insertions, 64 deletions
diff --git a/.local/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/extension.js b/.local/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/extension.js deleted file mode 100644 index 1127b3a0..00000000 --- a/.local/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/extension.js +++ /dev/null @@ -1,44 +0,0 @@ -const Main = imports.ui.main; -const WindowAttentionHandler = imports.ui.windowAttentionHandler; -const Shell = imports.gi.Shell; -const Lang = imports.lang; - -function StealMyFocus() { - this._init(); - this.blacklist = ["Skype"]; -} - -StealMyFocus.prototype = { - _init : function() { - this._tracker = Shell.WindowTracker.get_default(); - this._handlerid = global.display.connect('window-demands-attention', Lang.bind(this, this._onWindowDemandsAttention)); - }, - - _onWindowDemandsAttention: function(display, window) { - for (var i = 0; i < this.blacklist.length; i++) { - var name = this.blacklist[i].toLowerCase(); - if (window.title.toLowerCase().indexOf(name) != -1) { - // app in blacklist, return and do nothing - return; - } - } - Main.activateWindow(window); - }, - - destroy: function () { - global.display.disconnect(this._handlerid); - } -} - -let stealmyfocus; - -function init() { -} - -function enable() { - stealmyfocus = new StealMyFocus(); -} - -function disable() { - stealmyfocus.destroy(); -} diff --git a/.local/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/metadata.json b/.local/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/metadata.json deleted file mode 100644 index b45a0ac1..00000000 --- a/.local/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/metadata.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "_generated": "Generated by SweetTooth, do not edit", - "description": "Let windows steal focus. Removes the annoying 'Window is ready' notification and focus window immediately", - "name": "Steal My Focus", - "original-authors": [ - "kagesenshi.87@gmail.com" - ], - "shell-version": [ - "3.2", - "3.4", - "3.5.2", - "3.6", - "3.8", - "3.10", - "3.10.*" - ], - "url": "https://github.com/kagesenshi/gnome-shell-extension-stealmyfocus", - "uuid": "steal-my-focus@kagesenshi.org", - "version": 1 -} |