aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2017-02-10 19:15:18 -0700
committerSean Whitton <spwhitton@spwhitton.name>2017-02-10 19:16:18 -0700
commit9fc175012e0c1af29c026c8ffe239e5469454000 (patch)
tree44194a39a9c55386f38fb7bcff1ea7827a10e931
parentfdfefbc30a018da6d5687f7106fb3e856f40fc8e (diff)
downloadgnome-shell-extension-stealmyfocus-master.tar.gz
barebones debianisationHEADmaster
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control15
-rw-r--r--debian/gnome-shell-extension-stealmyfocus/DEBIAN/control11
-rw-r--r--debian/gnome-shell-extension-stealmyfocus/DEBIAN/md5sums3
-rw-r--r--debian/gnome-shell-extension-stealmyfocus/usr/share/doc/gnome-shell-extension-stealmyfocus/changelog.Debian.gzbin0 -> 217 bytes
-rw-r--r--debian/gnome-shell-extension-stealmyfocus/usr/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/extension.js44
-rw-r--r--debian/gnome-shell-extension-stealmyfocus/usr/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/metadata.json20
-rw-r--r--debian/install2
-rwxr-xr-xdebian/rules4
-rw-r--r--debian/source/format1
11 files changed, 106 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..efcf12e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+gnome-shell-extension-stealmyfocus (0~git20140517.fdfefbc-1) UNRELEASED; urgency=medium
+
+ * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
+
+ -- Sean Whitton <spwhitton@spwhitton.name> Fri, 10 Feb 2017 18:57:01 -0700
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..26dc735
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,15 @@
+Source: gnome-shell-extension-stealmyfocus
+Section: gnome
+Priority: optional
+Maintainer: Sean Whitton <spwhitton@spwhitton.name>
+Build-Depends: debhelper (>= 10)
+Standards-Version: 3.9.8
+Homepage: https://github.com/kagesenshi/gnome-shell-extension-stealmyfocus
+Vcs-Git: https://git.spwhitton.name/gnome-shell-extension-stealmyfocus
+Vcs-Browser: https://git.spwhitton.name/gnome-shell-extension-stealmyfocus
+
+Package: gnome-shell-extension-stealmyfocus
+Architecture: all
+Depends: ${misc:Depends}, gnome-shell
+Description: <insert up to 60 chars description>
+ <insert long description, indented with spaces>
diff --git a/debian/gnome-shell-extension-stealmyfocus/DEBIAN/control b/debian/gnome-shell-extension-stealmyfocus/DEBIAN/control
new file mode 100644
index 0000000..15031a7
--- /dev/null
+++ b/debian/gnome-shell-extension-stealmyfocus/DEBIAN/control
@@ -0,0 +1,11 @@
+Package: gnome-shell-extension-stealmyfocus
+Version: 0~git20140517.fdfefbc-1
+Architecture: all
+Maintainer: Sean Whitton <spwhitton@spwhitton.name>
+Installed-Size: 13
+Depends: gnome-shell
+Section: gnome
+Priority: optional
+Homepage: https://github.com/kagesenshi/gnome-shell-extension-stealmyfocus
+Description: <insert up to 60 chars description>
+ <insert long description, indented with spaces>
diff --git a/debian/gnome-shell-extension-stealmyfocus/DEBIAN/md5sums b/debian/gnome-shell-extension-stealmyfocus/DEBIAN/md5sums
new file mode 100644
index 0000000..7e94985
--- /dev/null
+++ b/debian/gnome-shell-extension-stealmyfocus/DEBIAN/md5sums
@@ -0,0 +1,3 @@
+752146a85b11239c30fed33d15bbac45 usr/share/doc/gnome-shell-extension-stealmyfocus/changelog.Debian.gz
+da51209e89ca57788f8ae7471d8e0428 usr/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/extension.js
+a8791d35876b6926e098001518012a8c usr/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/metadata.json
diff --git a/debian/gnome-shell-extension-stealmyfocus/usr/share/doc/gnome-shell-extension-stealmyfocus/changelog.Debian.gz b/debian/gnome-shell-extension-stealmyfocus/usr/share/doc/gnome-shell-extension-stealmyfocus/changelog.Debian.gz
new file mode 100644
index 0000000..fe904a4
--- /dev/null
+++ b/debian/gnome-shell-extension-stealmyfocus/usr/share/doc/gnome-shell-extension-stealmyfocus/changelog.Debian.gz
Binary files differ
diff --git a/debian/gnome-shell-extension-stealmyfocus/usr/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/extension.js b/debian/gnome-shell-extension-stealmyfocus/usr/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/extension.js
new file mode 100644
index 0000000..1127b3a
--- /dev/null
+++ b/debian/gnome-shell-extension-stealmyfocus/usr/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/extension.js
@@ -0,0 +1,44 @@
+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/debian/gnome-shell-extension-stealmyfocus/usr/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/metadata.json b/debian/gnome-shell-extension-stealmyfocus/usr/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/metadata.json
new file mode 100644
index 0000000..b45a0ac
--- /dev/null
+++ b/debian/gnome-shell-extension-stealmyfocus/usr/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org/metadata.json
@@ -0,0 +1,20 @@
+{
+ "_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
+}
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..9fdcbee
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+metadata.json usr/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org
+extension.js usr/share/gnome-shell/extensions/steal-my-focus@kagesenshi.org
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2d33f6a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)