Compare commits

..
69 Commits
Author SHA1 Message Date
Daniel van Vugt f25840f74c pristine-tar data for gnome-shell-extensions_50~alpha.orig.tar.xz 2026-02-10 16:03:51 +08:00
Jeremy Bícha ef2dc30c53 pristine-tar data for gnome-shell-extensions_49.0.orig.tar.xz 2025-09-15 07:30:41 -04:00
Simon McVittie fe7bc37bf1 pristine-tar data for gnome-shell-extensions_48.3.orig.tar.xz 2025-07-28 10:21:41 +01:00
Marco Trevisan (Treviño) 5b18df97d4 pristine-tar data for gnome-shell-extensions_49~alpha.1.orig.tar.xz 2025-07-08 22:34:36 +02:00
Jeremy Bícha 4c2d88b7c6 pristine-tar data for gnome-shell-extensions_48.2.orig.tar.xz 2025-05-27 09:01:39 -04:00
Jeremy Bícha d91fd230bf pristine-tar data for gnome-shell-extensions_48.1.orig.tar.xz 2025-04-17 10:54:40 -04:00
Jeremy Bícha 1053742f9c pristine-tar data for gnome-shell-extensions_48.0.orig.tar.xz 2025-03-17 10:22:31 -04:00
Jeremy Bícha 949e3b56b9 pristine-tar data for gnome-shell-extensions_48~rc.orig.tar.xz 2025-03-03 12:40:37 -05:00
Jeremy Bícha 4843192eb4 pristine-tar data for gnome-shell-extensions_48~beta.orig.tar.xz 2025-02-05 06:28:23 -05:00
Jeremy Bícha 0cabfabac2 pristine-tar data for gnome-shell-extensions_47.4.orig.tar.xz 2025-02-05 06:24:44 -05:00
Jeremy Bícha f9afce37ab pristine-tar data for gnome-shell-extensions_47.3.orig.tar.xz 2025-01-14 10:04:26 -05:00
Jeremy Bícha a13b2d0d5b pristine-tar data for gnome-shell-extensions_47.2.orig.tar.xz 2024-11-25 13:48:35 -05:00
Jeremy Bícha 5bcd7748cd pristine-tar data for gnome-shell-extensions_47.1.orig.tar.xz 2024-10-30 12:44:00 +01:00
Jeremy Bícha 2a9382d9f5 pristine-tar data for gnome-shell-extensions_47.0.orig.tar.xz 2024-09-14 19:26:26 -04:00
Jeremy Bícha a963602277 pristine-tar data for gnome-shell-extensions_47~rc.orig.tar.xz 2024-09-04 10:26:10 -04:00
Jeremy Bícha 2b6e393bdd pristine-tar data for gnome-shell-extensions_47~beta.orig.tar.xz 2024-08-06 07:52:25 -04:00
Jeremy Bícha 8b7b004a94 pristine-tar data for gnome-shell-extensions_46.2.orig.tar.xz 2024-05-28 16:19:27 -04:00
Jeremy Bícha 0600cbf7b0 pristine-tar data for gnome-shell-extensions_46.1.orig.tar.xz 2024-04-21 16:44:47 -04:00
Jeremy Bícha b451c1cdb3 pristine-tar data for gnome-shell-extensions_46.0.orig.tar.xz 2024-03-18 15:30:17 -04:00
Jeremy Bícha 159e51d809 pristine-tar data for gnome-shell-extensions_45.2.orig.tar.xz 2023-12-05 10:03:40 -05:00
Jeremy Bícha e3ac038c50 pristine-tar data for gnome-shell-extensions_45.1.orig.tar.xz 2023-11-04 12:30:41 +02:00
Jeremy Bícha c6be28be3e pristine-tar data for gnome-shell-extensions_45.0.orig.tar.xz 2023-09-18 08:45:38 -04:00
Jeremy Bícha 2a1942c0f8 pristine-tar data for gnome-shell-extensions_45~beta.orig.tar.xz 2023-08-16 22:55:57 -04:00
Jeremy Bicha 4aa88e9d5f pristine-tar data for gnome-shell-extensions_44.0.orig.tar.xz 2023-03-27 08:47:19 -04:00
Jeremy Bicha 751fc1d954 pristine-tar data for gnome-shell-extensions_44~rc.orig.tar.xz 2023-03-07 12:19:34 -05:00
Jeremy Bicha d9014bdeb2 pristine-tar data for gnome-shell-extensions_44~beta.orig.tar.xz 2023-02-15 10:59:26 -05:00
Jeremy Bicha 77e7ce8c22 pristine-tar data for gnome-shell-extensions_43.1.orig.tar.xz 2022-11-22 14:13:08 -05:00
Jeremy Bicha 4e296f9dd9 pristine-tar data for gnome-shell-extensions_43.0.orig.tar.xz 2022-09-19 10:57:27 -04:00
Jeremy Bicha 125193e6da pristine-tar data for gnome-shell-extensions_43~rc.orig.tar.xz 2022-09-06 14:38:14 -04:00
Jeremy Bicha 1d949394b1 pristine-tar data for gnome-shell-extensions_43~beta.orig.tar.xz 2022-08-21 10:59:17 -04:00
Jeremy Bicha fa11081337 pristine-tar data for gnome-shell-extensions_42.3.orig.tar.xz 2022-07-13 17:46:11 +02:00
Jeremy Bicha eeafacaf29 pristine-tar data for gnome-shell-extensions_42.2.orig.tar.xz 2022-06-03 09:19:22 -04:00
Jeremy Bicha f37caf8cb1 pristine-tar data for gnome-shell-extensions_42.1.orig.tar.xz 2022-05-09 08:02:10 -04:00
Jeremy Bicha 4e55f22070 pristine-tar data for gnome-shell-extensions_42.0.orig.tar.xz 2022-03-14 11:29:54 -04:00
Jeremy Bicha 93c1e19c34 pristine-tar data for gnome-shell-extensions_42~rc.orig.tar.xz 2022-03-08 09:32:27 -05:00
Marco Trevisan (Treviño) b5fe9da0ed pristine-tar data for gnome-shell-extensions_42~beta.orig.tar.xz 2022-02-23 02:57:09 +01:00
Jeremy Bicha ecf0e9b12e pristine-tar data for gnome-shell-extensions_41.1.orig.tar.xz 2021-12-12 20:28:56 -05:00
Jeremy Bicha 1149251775 pristine-tar data for gnome-shell-extensions_41.0.orig.tar.xz 2021-10-03 20:42:41 -04:00
Jeremy Bicha 88f284c104 pristine-tar data for gnome-shell-extensions_40.4.orig.tar.xz 2021-08-29 08:50:42 -04:00
Marco Trevisan (Treviño) 610cad3d8d pristine-tar data for gnome-shell-extensions_40.1.orig.tar.xz 2021-05-30 17:53:16 +02:00
Simon McVittie a595c5b606 pristine-tar data for gnome-shell-extensions_3.38.2.orig.tar.xz 2020-12-03 10:11:15 +00:00
Jeremy Bicha ed5a2f7be3 pristine-tar data for gnome-shell-extensions_3.38.1.orig.tar.xz 2020-10-06 17:36:35 -04:00
Simon McVittie 0fc1f2fb32 pristine-tar data for gnome-shell-extensions_3.38.0.orig.tar.xz 2020-09-22 09:16:27 +01:00
Marco Trevisan (Treviño) eaa5c0d9bc pristine-tar data for gnome-shell-extensions_3.37.91.orig.tar.xz 2020-08-27 08:18:07 +02:00
Laurent Bigonville dbfd49c1b1 pristine-tar data for gnome-shell-extensions_3.36.2.orig.tar.xz 2020-05-03 10:01:15 +02:00
Simon McVittie 7ea702c58d pristine-tar data for gnome-shell-extensions_3.36.1.orig.tar.xz 2020-04-02 10:14:08 +01:00
Iain Lane 1624158875 pristine-tar data for gnome-shell-extensions_3.36.0.orig.tar.xz 2020-03-16 12:13:26 +00:00
Marco Trevisan (Treviño) 2b3b3d7814 pristine-tar data for gnome-shell-extensions_3.35.91.orig.tar.xz 2020-02-24 14:48:46 +01:00
Laurent Bigonville 3d3c092706 pristine-tar data for gnome-shell-extensions_3.34.2.orig.tar.xz 2019-12-30 00:41:32 +01:00
Jeremy Bicha cddf458061 pristine-tar data for gnome-shell-extensions_3.34.1.orig.tar.xz 2019-10-08 22:45:43 -04:00
Iain Lane 56aa7a7304 pristine-tar data for gnome-shell-extensions_3.34.0.orig.tar.xz 2019-09-10 10:53:04 +01:00
Iain Lane 33d2f79468 pristine-tar data for gnome-shell-extensions_3.33.92.orig.tar.xz 2019-09-05 18:21:22 +01:00
Marco Trevisan (Treviño) e573d14a3c pristine-tar data for gnome-shell-extensions_3.33.90.orig.tar.xz 2019-08-13 04:25:54 +02:00
Iain Lane f80b7fb1a6 pristine-tar data for gnome-shell-extensions_3.32.0.orig.tar.xz 2019-03-12 16:33:31 +00:00
Iain Lane 728e3aa7a0 pristine-tar data for gnome-shell-extensions_3.31.92.orig.tar.xz 2019-03-06 15:39:48 +00:00
Iain Lane 94cf59c484 pristine-tar data for gnome-shell-extensions_3.31.90.orig.tar.xz 2019-02-21 10:08:47 +00:00
Simon McVittie 41821572ea pristine-tar data for gnome-shell-extensions_3.30.1.orig.tar.xz 2018-11-02 09:22:10 +00:00
Jeremy Bicha 787531d790 pristine-tar data for gnome-shell-extensions_3.30.0.orig.tar.xz 2018-09-05 12:32:26 -04:00
Simon McVittie 23ac497271 pristine-tar data for gnome-shell-extensions_3.29.91.orig.tar.xz 2018-08-20 19:55:42 +01:00
Simon McVittie 6ee586d935 pristine-tar data for gnome-shell-extensions_3.29.90.orig.tar.xz 2018-08-02 10:32:11 +01:00
Simon McVittie 64d262be5b pristine-tar data for gnome-shell-extensions_3.29.3+really3.29.3.orig.tar.xz 2018-07-27 23:59:15 +01:00
Simon McVittie 948d0efa59 pristine-tar data for gnome-shell-extensions_3.29.3+really3.28.1.orig.tar.xz 2018-07-27 23:22:03 +01:00
Simon McVittie 5e11e89fb2 Merge remote-tracking branch 'origin/pristine-tar' into pristine-tar 2018-07-27 09:14:36 +01:00
Simon McVittie b0758309be pristine-tar data for gnome-shell-extensions_3.29.3.orig.tar.xz 2018-07-27 08:43:27 +01:00
Jeremy Bicha b95d49d59a pristine-tar data for gnome-shell-extensions_3.28.1.orig.tar.xz 2018-05-14 21:50:46 -04:00
Jeremy Bicha e3de553d16 pristine-tar data for gnome-shell-extensions_3.28.0.orig.tar.xz 2018-03-15 21:28:21 -04:00
Jeremy Bicha 3b7392ff51 pristine-tar data for gnome-shell-extensions_3.27.92.orig.tar.xz 2018-03-05 20:55:44 -05:00
Jeremy Bicha 0c6ce1c959 pristine-tar data for gnome-shell-extensions_3.27.91.orig.tar.xz 2018-02-23 19:30:15 -05:00
Jeremy Bicha baedd746d2 pristine-tar data for gnome-shell-extensions_3.26.2.orig.tar.xz 2017-12-15 15:11:44 -05:00
163 changed files with 68 additions and 973 deletions
-13
View File
@@ -1,13 +0,0 @@
Makefile
Makefile.in
Makefile.in.in
configure
config.log
config.status
config/
aclocal.m4
autom4te.cache/
m4/
po/POTFILES
po/stamp-it
staging/
-31
View File
@@ -1,31 +0,0 @@
--- Creating a New Extension ---
To create a new extension, add a subdirectory in extensions.
Then create a Makefile.am like the one in example, replacing
the EXTENSION_ID with the basename of your extension, which
must match the UUID in metadata.json.
If you need additional files, add them to EXTENSION_EXTRA.
Then modify extensions/Makefile.am and configure.ac. It should
be pretty self-explanatory.
Don't forget to add any translatable file to po/POTFILES.in, and
then you're done.
The Gettext domain you should choose is gnome-shell-extensions,
not gnome-shell, unless you're sure there is the string you
need in gnome-shell.
--- Coding Style ---
Generally, we follow GJS coding style (you can find it at
http://git.gnome.org/browse/gjs/tree/doc/Style_Guide.txt), which
in short is: indent 4 spaces, no tabs, space after comma, no space
after function call.
The Emacs mode line for this
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
Imports should be at the top, in two groups, one for standard
imports (like imports.lang or imports.dbus) and introspection,
the other for Shell API. Within the same group, put everything
in alphabetic order.
-3
View File
@@ -1,3 +0,0 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = extensions po
-26
View File
@@ -1,26 +0,0 @@
GNOME Shell Extensions is a collection of extensions providing additional
and optional functionality to GNOME Shell.
Since GNOME Shell is not API stable, extensions work only against a very
specific version of the shell, usually the same as this package (see
"configure --version"). Also, since extensions are built from many
individual contributors, we cannot guarantee stability or quality for any
specific extension.
For these reasons, distributions are advised to avoid installing or packaging
this module by defaul.
For more information about GNOME Shell Extensions
http://live.gnome.org/GnomeShell/Extensions
For general information about GNOME Shell
http://live.gnome.org/GnomeShell
Bugs should be reported at http://bugzilla.gnome.org against the 'gnome-shell'
product, with the 'extensions' component.
License
=======
GNOME Shell Extensions are distributed under the terms of the GNU General Public License,
version 2 or later. See the COPYING file for details.
Individual extensions may be licensed under different terms, see each source
file for details.
-20
View File
@@ -1,20 +0,0 @@
#!/bin/bash
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="gnome-shell-extensions"
test -f $srcdir/configure.ac || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level gnome-shell-extensions directory"
exit 1
}
which gnome-autogen.sh || {
echo "You need to install gnome-common from GNOME Git (or from"
echo "your OS vendor's package manager)."
exit 1
}
. gnome-autogen.sh
-61
View File
@@ -1,61 +0,0 @@
AC_PREREQ(2.63)
AC_INIT([gnome-shell-extensions],[2.91.6],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell&component=extensions])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([1.10 dist-bzip2 no-dist-gzip foreign])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
GETTEXT_PACKAGE=gnome-shell-extensions
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[The prefix for our gettext translation domains.])
IT_PROG_INTLTOOL(0.26)
PKG_PROG_PKG_CONFIG([0.22])
ADDITIONAL_PACKAGES=
dnl keep this in sync with extensions/Makefile.am
ALL_EXTENSIONS="example alternate-tab xrandr-indicator windowsNavigator"
AC_ARG_ENABLE([extensions],
[AS_HELP_STRING([--enable-extensions],[Space separated list of extensions to enable. Default is that all extensions are built.])],
[],
[enable_extensions=$ALL_EXTENSIONS]
)
ENABLED_EXTENSIONS=
for e in $enable_extensions; do
case $e in
xrandr-indicator)
ENABLED_EXTENSIONS="$ENABLED_EXTENSIONS $e"
ADDITIONAL_PACKAGES="gnome-desktop-3.0 >= 2.91.6"
;;
alternate-tab|example|windowsNavigator)
ENABLED_EXTENSIONS="$ENABLED_EXTENSIONS $e"
;;
*)
AC_MSG_ERROR([invalid extension $e])
esac
done
AC_SUBST(ENABLED_EXTENSIONS, [$ENABLED_EXTENSIONS])
dnl We don't really need cflags or libdirs, we just check
dnl to ensure we don't fail at runtime.
if test "x$ADDITIONAL_PACKAGES" != x; then
PKG_CHECK_MODULES(ADDITIONAL, [$ADDITIONAL_PACKAGES])
fi
AC_CONFIG_FILES([
Makefile
extensions/Makefile
extensions/example/Makefile
extensions/alternate-tab/Makefile
extensions/windowsNavigator/Makefile
extensions/xrandr-indicator/Makefile
po/Makefile.in
])
AC_OUTPUT
-10
View File
@@ -1,10 +0,0 @@
# Change these to modify how installation is performed
# If you modify extensionbase, you also need to modify
# metadata.json of each extension
topextensiondir = $(datadir)/gnome-shell/extensions
extensionbase = @gnome-shell-extensions.gnome.org
extensiondir = $(topextensiondir)/$(EXTENSION_ID)$(extensionbase)
dist_extension_DATA = metadata.json extension.js stylesheet.css
nodist_extension_DATA = $(EXTRA_EXTENSION)
-3
View File
@@ -1,3 +0,0 @@
DIST_SUBDIRS = example alternate-tab xrandr-indicator windowsNavigator
SUBDIRS = $(ENABLED_EXTENSIONS)
-3
View File
@@ -1,3 +0,0 @@
EXTENSION_ID = alternate-tab
include ../../extension.mk
-236
View File
@@ -1,236 +0,0 @@
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
const Clutter = imports.gi.Clutter;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Shell= imports.gi.Shell;
const St = imports.gi.St;
const AltTab=imports.ui.altTab;
const Main = imports.ui.main;
const Tweener = imports.ui.tweener;
const WindowManager = imports.ui.windowManager;
function AltTabPopup2() {
this._init();
}
AltTabPopup2.prototype = {
__proto__ : AltTab.AltTabPopup.prototype,
_init : function() {
this.actor = new Shell.GenericContainer({ name: 'altTabPopup',
reactive: true });
this.actor.connect('get-preferred-width', Lang.bind(this, this._getPreferredWidth));
this.actor.connect('get-preferred-height', Lang.bind(this, this._getPreferredHeight));
this.actor.connect('allocate', Lang.bind(this, this._allocate));
this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
this._haveModal = false;
this._currentApp = 0;
this._currentWindow = -1;
this._thumbnailTimeoutId = 0;
this._motionTimeoutId = 0;
// Initially disable hover so we ignore the enter-event if
// the switcher appears underneath the current pointer location
this._disableHover();
this.show();
Main.uiGroup.add_actor(this.actor);
},
show : function(backward) {
let windows = global.get_window_actors();
let list = '';
let normal_windows= [];
let appIcons = [];
let tracker = Shell.WindowTracker.get_default();
let apps = tracker.get_running_apps ('');
for (let w = windows.length-1; w >= 0; w--) {
let win = windows[w].get_meta_window();
if (win.window_type == 0) {
normal_windows.push(win);
}
}
normal_windows.sort(Lang.bind(this, this._sortWindows));
let win_on_top = normal_windows.shift();
normal_windows.push(win_on_top);
windows = normal_windows;
for (let w = 0; w < windows.length; w++) {
let win = windows[w];
let ap1 = null;
for (let i = 0;i < apps.length; i++) {
let app_wins = apps[i].get_windows();
for (let j = 0;j < app_wins.length; j++) {
if (app_wins[j] == win)
ap1 = new AltTab.AppIcon(apps[i]);
}
}
ap1.cachedWindows = [win];
appIcons.push(ap1);
}
if (!windows.length)
return false;
if (!Main.pushModal(this.actor))
return false;
this._haveModal = true;
this.actor.connect('key-press-event', Lang.bind(this, this._keyPressEvent));
this.actor.connect('key-release-event', Lang.bind(this, this._keyReleaseEvent));
this.actor.connect('button-press-event', Lang.bind(this, this._clickedOutside));
this.actor.connect('scroll-event', Lang.bind(this, this._onScroll));
this._appSwitcher = new WindowList(windows);
this._appSwitcher.highlight(0,false);
this.actor.add_actor(this._appSwitcher.actor);
this._appSwitcher.connect('item-activated', Lang.bind(this, this._appActivated));
this._appSwitcher.connect('item-entered', Lang.bind(this, this._appEntered));
this._appIcons = appIcons;
return true
},
_keyPressEvent : function(actor, event) {
let keysym = event.get_key_symbol();
let shift = (Shell.get_event_state(event) & Clutter.ModifierType.SHIFT_MASK);
// X allows servers to represent Shift+Tab in two different ways
if (shift && keysym == Clutter.Tab)
keysym = Clutter.ISO_Left_Tab;
this._disableHover();
if (keysym == Clutter.grave)
this._select(this._currentApp, this._nextWindow());
else if (keysym == Clutter.asciitilde)
this._select(this._currentApp, this._previousWindow());
else if (keysym == Clutter.Escape)
this.destroy();
else if (this._thumbnailsFocused) {
if (keysym == Clutter.Tab) {
if (this._currentWindow == this._appIcons[this._currentApp].cachedWindows.length - 1)
this._select(this._nextApp());
else
this._select(this._currentApp, this._nextWindow());
} else if (keysym == Clutter.ISO_Left_Tab) {
if (this._currentWindow == 0 || this._currentWindow == -1)
this._select(this._previousApp());
else
this._select(this._currentApp, this._previousWindow());
} else if (keysym == Clutter.Left)
this._select(this._currentApp, this._previousWindow());
else if (keysym == Clutter.Right)
this._select(this._currentApp, this._nextWindow());
else if (keysym == Clutter.Up)
this._select(this._currentApp, null, true);
} else {
if (keysym == Clutter.Tab)
this._select(this._nextApp());
else if (keysym == Clutter.ISO_Left_Tab)
this._select(this._previousApp());
else if (keysym == Clutter.Left)
this._select(this._previousApp());
else if (keysym == Clutter.Right)
this._select(this._nextApp());
}
return true;
},
_sortWindows : function(win1,win2) {
let t1 = win1.get_user_time();
let t2 = win2.get_user_time();
if (t2 > t1) return 1;
else return -1;
},
_appActivated : function(thumbnailList, n) {
let appIcon = this._appIcons[this._currentApp];
Main.activateWindow(appIcon.cachedWindows[0]);
this.destroy();
},
_finish : function() {
let app = this._appIcons[this._currentApp];
Main.activateWindow(app.cachedWindows[0]);
this.destroy();
},
};
function WindowList(windows) {
this._init(windows);
}
WindowList.prototype = {
__proto__ : AltTab.AppSwitcher.prototype,
_init : function(windows) {
AltTab.AppSwitcher.prototype._init.call(this, []);
let activeWorkspace = global.screen.get_active_workspace();
this._labels = new Array();
this._thumbnailBins = new Array();
this._clones = new Array();
this._windows = windows;
this._arrows= new Array();
this.icons= new Array();
for (let w = 0; w < windows.length; w++) {
let arrow = new St.DrawingArea({ style_class: 'switcher-arrow' });
arrow.connect('repaint', Lang.bind(this, function (area) {
Shell.draw_box_pointer(area, Shell.PointerDirection.DOWN);
}));
this._list.add_actor(arrow);
this._arrows.push(arrow);
arrow.hide();
let win=windows[w];
let tracker = Shell.WindowTracker.get_default();
let apps = tracker.get_running_apps ('');
let ap1 = null;
for (let i = 0; i < apps.length; i++) {
let app_wins = apps[i].get_windows();
for (let j = 0; j < app_wins.length; j++) {
if (app_wins[j] == win) {
ap1 = new AltTab.AppIcon(apps[i]);
let mutterWindow = win.get_compositor_private();
let windowTexture = mutterWindow.get_texture ();
let [width, height] = windowTexture.get_size();
let scale = Math.min(1.0, 128 / width, 128 / height);
let clone = new Clutter.Clone ({ source: windowTexture, reactive: true, width: width * scale, height: height * scale });
ap1.icon = ap1.app.create_icon_texture(128);
ap1._iconBin.set_size(128,128);
ap1._iconBin.child=clone;
ap1.label.text=win.get_title();
}
}
}
ap1.cachedWindows = [win];
this._addIcon(ap1);
}
},
addSeparator: function () {
this._separator=null;
}
};
function main() {
Main.wm.setKeybindingHandler('switch_windows', function() {
let alpopup = new AltTabPopup2();
});
}
-7
View File
@@ -1,7 +0,0 @@
{
"uuid": "alternate-tab@gnome-shell-extensions.gnome.org",
"name": "AlternateTab",
"description": "A replacement for Alt-Tab, allows to cycle between windows and does not group by application",
"original-author": "thomas.bouffon@gmail.com",
"shell-version": [ "2.91.5", "2.91.6" ]
}
-1
View File
@@ -1 +0,0 @@
/* This extensions requires no special styling */
-3
View File
@@ -1,3 +0,0 @@
EXTENSION_ID = example
include ../../extension.mk
-19
View File
@@ -1,19 +0,0 @@
// Sample extension code, makes clicking on the panel show a message
const St = imports.gi.St;
const Mainloop = imports.mainloop;
const Main = imports.ui.main;
function _showHello() {
let text = new St.Label({ style_class: 'helloworld-label', text: "Hello, world!" });
let monitor = global.get_primary_monitor();
global.stage.add_actor(text);
text.set_position(Math.floor (monitor.width / 2 - text.width / 2), Math.floor(monitor.height / 2 - text.height / 2));
Mainloop.timeout_add(3000, function () { text.destroy(); });
}
// Put your extension initialization code here
function main() {
Main.panel.actor.reactive = true;
Main.panel.actor.connect('button-release-event', _showHello);
}
-6
View File
@@ -1,6 +0,0 @@
{
"uuid": "example@gnome-shell-extensions.gnome.org",
"name": "Hello, World!",
"description": "An example extension to show how it works. Shows Hello, world when clicking on the top panel.",
"shell-version": [ "2.91.6" ]
}
-8
View File
@@ -1,8 +0,0 @@
/* Example stylesheet */
.helloworld-label {
font-size: 36px;
font-weight: bold;
color: #ffffff;
background-color: rgba(10,10,10,0.7);
border-radius: 5px;
}
-3
View File
@@ -1,3 +0,0 @@
EXTENSION_ID = windowsNavigator
include ../../extension.mk
-203
View File
@@ -1,203 +0,0 @@
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
const Clutter = imports.gi.Clutter;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const St = imports.gi.St;
const Main = imports.ui.main;
const Workspace = imports.ui.workspace;
const WorkspacesView = imports.ui.workspacesView;
function injectToFunction(parent, name, func) {
let origin = parent[name];
parent[name] = function() {
let ret;
ret = origin.apply(this, arguments);
if (ret === undefined)
ret = func.apply(this, arguments);
return ret;
}
}
function main() {
Workspace.WindowOverlay.prototype.setId = function(id) {
if (this._text.visible && id == null)
this._text.hide();
this._id = id;
if (id != null)
this._text.text = this._id.toString();
}
Workspace.WindowOverlay.prototype.getId = function() {
return this._id;
}
Workspace.WindowOverlay.prototype.showTooltip = function() {
if (this._id === null)
return;
this._text.raise_top();
this._text.show();
this._text.text = this._id.toString();
}
Workspace.WindowOverlay.prototype.hideTooltip = function() {
if (this._text.visible)
this._text.hide();
}
Workspace.Workspace.prototype.showTooltip = function() {
if (this._tip == null)
return;
if (this.parent)
return;
this.actor.add_actor(this._tip);
this._tip.raise_top();
}
Workspace.Workspace.prototype.hideTooltip = function() {
if (this._tip == null)
return;
if (!this._tip.get_parent())
return;
this.actor.remove_actor(this._tip);
}
Workspace.Workspace.prototype.getWindowWithTooltip = function(id) {
for (let i in this._windowOverlays) {
if (this._windowOverlays[i] == null)
continue;
if (this._windowOverlays[i].getId() === id)
return this._windowOverlays[i]._windowClone.metaWindow;
}
return null;
}
Workspace.Workspace.prototype.showWindowsTooltips = function() {
for (let i in this._windowOverlays) {
if (this._windowOverlays[i] != null)
this._windowOverlays[i].showTooltip();
}
}
Workspace.Workspace.prototype.hideWindowsTooltips = function() {
for (let i in this._windowOverlays) {
if (this._windowOverlays[i] != null)
this._windowOverlays[i].hideTooltip();
}
}
WorkspacesView.WorkspacesView.prototype._hideTooltips = function() {
global.stage.set_key_focus(this._prevFocusActor);
this._pickWindow = false;
for (let i = 0; i < this._workspaces.length; i++)
this._workspaces[i].hideWindowsTooltips();
}
WorkspacesView.WorkspacesView.prototype._hideWorkspacesTooltips = function() {
global.stage.set_key_focus(this._prevFocusActor);
this._pickWorkspace = false;
for (let i = 0; i < this._workspaces.length; i++)
this._workspaces[i].hideTooltip();
}
WorkspacesView.WorkspacesView.prototype._onKeyRelease = function(s, o) {
if (this._pickWindow && o.get_key_symbol() == Clutter.Alt_L)
this._hideTooltips();
if (this._pickWorkspace && o.get_key_symbol() == Clutter.Control_L)
this._hideWorkspacesTooltips();
}
WorkspacesView.WorkspacesView.prototype._onKeyPress = function(s, o) {
if (o.get_key_symbol() == Clutter.Alt_L && !this._pickWorkspace) {
this._prevFocusActor = global.stage.get_key_focus();
global.stage.set_key_focus(null);
this._active = global.screen.get_active_workspace_index();
this._pickWindow = true;
this._workspaces[global.screen.get_active_workspace_index()].showWindowsTooltips();
return true;
}
if (o.get_key_symbol() == Clutter.Control_L && !this._pickWindow) {
this._prevFocusActor = global.stage.get_key_focus();
global.stage.set_key_focus(null);
this._pickWorkspace = true;
for (let i = 0; i < this._workspaces.length; i++)
this._workspaces[i].showTooltip();
return true;
}
if (global.stage.get_key_focus() != global.stage)
return false;
if (this._pickWindow) {
if (this._active != global.screen.get_active_workspace_index()) {
this._hideTooltips();
return false;
}
let c = o.get_key_unicode();
if (c > '9'.charCodeAt(0) || c < '0'.charCodeAt(0)) {
this._hideTooltips();
return false;
}
let win = this._workspaces[this._active].getWindowWithTooltip(c - '0'.charCodeAt(0));
this._hideTooltips();
if (win)
Main.activateWindow(win, global.get_current_time());
return true;
}
if (this._pickWorkspace) {
let c = o.get_key_unicode();
if (c > '9'.charCodeAt(0) || c < '0'.charCodeAt(0)) {
this._hideWorkspacesTooltips();
return false;
}
let workspace = this._workspaces[c - '0'.charCodeAt(0) - 1];
if (workspace !== undefined)
workspace.metaWorkspace.activate(global.get_current_time());
this._hideWorkspacesTooltips();
return true;
}
return false;
}
injectToFunction(Workspace.WindowOverlay.prototype, '_init', function(windowClone, parentActor) {
this._id = null;
this._text = new St.Label({ style_class: 'window-tooltip' });
this._text.hide();
parentActor.add_actor(this._text);
});
injectToFunction(Workspace.WindowOverlay.prototype, 'updatePositions', function(cloneX, cloneY, cloneWidth, cloneHeight) {
let textX = cloneX - 2;
let textY = cloneY - 2;
this._text.set_position(Math.floor(textX), Math.floor(textY));
this._text.raise_top();
});
injectToFunction(Workspace.Workspace.prototype, '_init', function(metaWorkspace) {
if (metaWorkspace.index() < 9) {
this._tip = new St.Label({ style_class: 'window-tooltip',
text: (metaWorkspace.index() + 1).toString() });
this.actor.connect('notify::scale-x', Lang.bind(this, function() {
this._tip.set_scale(1 / this.actor.scale_x, 1 / this.actor.scale_x);
}));
} else
this._tip = null;
});
injectToFunction(Workspace.Workspace.prototype, 'positionWindows', function(flags) {
let visibleClones = this._getVisibleClones();
if (this._reservedSlot)
visibleClones.push(this._reservedSlot);
let slots = this._computeAllWindowSlots(visibleClones.length);
visibleClones = this._orderWindowsByMotionAndStartup(visibleClones, slots);
for (let i = 0; i < visibleClones.length; i++) {
let clone = visibleClones[i];
let metaWindow = clone.metaWindow;
let mainIndex = this._lookupIndex(metaWindow);
let overlay = this._windowOverlays[mainIndex];
if (overlay)
overlay.setId(i < 9 ? i + 1 : null);
}
});
injectToFunction(WorkspacesView.WorkspacesView.prototype, '_init', function(width, height, x, y, workspaces) {
this._pickWorkspace = false;
this._pickWindow = false;
this._keyPressEventId = global.stage.connect('key-press-event', Lang.bind(this, this._onKeyPress));
this._keyReleaseEventId = global.stage.connect('key-release-event', Lang.bind(this, this._onKeyRelease));
});
injectToFunction(WorkspacesView.WorkspacesView.prototype, '_onDestroy', function() {
global.stage.disconnect(this._keyPressEventId);
global.stage.disconnect(this._keyReleaseEventId);
});
}
@@ -1,7 +0,0 @@
{
"shell-version": ["2.91.5", "2.91.6"],
"uuid": "windowsNavigator@gnome-shell-extensions.gnome.org",
"original-author": "zaspire@rambler.ru",
"name": "windowNavigator",
"description": "Allow keyboard selection of windows and workspaces in overlay mode"
}
@@ -1,9 +0,0 @@
.window-tooltip {
color: #ff0000;
background: rgba(0,0,0,0.8);
border: 1px solid rgba(128,128,128,0.40);
border-radius: 10px;
font-size: 16px;
padding: 2px 8px;
-shell-caption-spacing: 4px;
}
-3
View File
@@ -1,3 +0,0 @@
EXTENSION_ID = xrandr-indicator
include ../../extension.mk
-135
View File
@@ -1,135 +0,0 @@
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
const DBus = imports.dbus;
const Gdk = imports.gi.Gdk;
const GLib = imports.gi.GLib;
const GnomeDesktop = imports.gi.GnomeDesktop;
const Lang = imports.lang;
const Shell = imports.gi.Shell;
const St = imports.gi.St;
const Main = imports.ui.main;
const PanelMenu = imports.ui.panelMenu;
const PopupMenu = imports.ui.popupMenu;
const Panel = imports.ui.panel;
const Gettext = imports.gettext.domain('gnome-shell');
const _ = Gettext.gettext;
const possibleRotations = [ GnomeDesktop.RRRotation.ROTATION_0,
GnomeDesktop.RRRotation.ROTATION_90,
GnomeDesktop.RRRotation.ROTATION_180,
GnomeDesktop.RRRotation.ROTATION_270
];
let rotations = [ [ GnomeDesktop.RRRotation.ROTATION_0, _("Normal") ],
[ GnomeDesktop.RRRotation.ROTATION_90, _("Left") ],
[ GnomeDesktop.RRRotation.ROTATION_270, _("Right") ],
[ GnomeDesktop.RRRotation.ROTATION_180, _("Upside-down") ]
];
const XRandr2Iface = {
name: 'org.gnome.SettingsDaemon.XRANDR_2',
methods: [
{ name: 'ApplyConfiguration', inSignature: 'xx', outSignature: '' },
]
};
let XRandr2 = DBus.makeProxyClass(XRandr2Iface);
function Indicator() {
this._init.apply(this, arguments);
}
Indicator.prototype = {
__proto__: PanelMenu.SystemStatusButton.prototype,
_init: function() {
PanelMenu.SystemStatusButton.prototype._init.call(this, 'preferences-desktop-display');
this._proxy = new XRandr2(DBus.session, 'org.gnome.SettingsDaemon', '/org/gnome/SettingsDaemon/XRANDR');
try {
this._screen = new GnomeDesktop.RRScreen({ gdk_screen: Gdk.Screen.get_default() });
this._screen.init(null);
} catch(e) {
// an error means there is no XRandR extension
this.actor.hide();
return;
}
this._createMenu();
this._screen.connect('screen-changed', Lang.bind(this, this._randrEvent));
},
_randrEvent: function() {
this.menu.removeAll();
this._createMenu();
},
_createMenu: function() {
let config = GnomeDesktop.RRConfig.new_current(this._screen);
let outputs = config.get_outputs();
for (let i = 0; i < outputs.length; i++) {
if (outputs[i].get_connected())
this._addOutputItem(config, outputs[i]);
}
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
this.menu.addAction(_("Configure display settings..."), function() {
GLib.spawn_command_line_async('gnome-control-center display');
});
},
_addOutputItem: function(config, output) {
let item = new PopupMenu.PopupMenuItem(output.get_display_name());
item.label.add_style_class_name('display-subtitle');
item.actor.reactive = false;
item.actor.can_focus = false;
this.menu.addMenuItem(item);
let allowedRotations = this._getAllowedRotations(config, output);
for (let i = 0; i < rotations.length; i++) {
let [bitmask, name] = rotations[i];
if (bitmask & allowedRotations) {
this.menu.addAction(name, Lang.bind(this, function(event) {
/* ensure config is saved so we get a backup if anything goes wrong */
config.save();
output.set_rotation(bitmask);
try {
config.save();
this._proxy.ApplyConfigurationRemote(global.stage_xwindow, event.get_time());
} catch (e) {
logError ('Could not save monitor configuration: ' + e);
}
}));
}
}
},
_getAllowedRotations: function(config, output) {
let retval = 0;
let current = output.get_rotation();
for (let i = 0; i < possibleRotations.length; i++) {
output.set_rotation(possibleRotations[i]);
if (config.applicable(this._screen)) {
retval |= possibleRotations[i];
}
}
output.set_rotation(current);
if (retval.lenght == 0) {
// what, no rotation?
// what's current then?
retval = current;
}
return retval;
}
}
function main() {
Panel.STANDARD_TRAY_ICON_SHELL_IMPLEMENTATION['display'] = Indicator;
}
-132
View File
@@ -1,132 +0,0 @@
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
const DBus = imports.dbus;
const Gdk = imports.gi.Gdk;
const GLib = imports.gi.GLib;
const GnomeDesktop = imports.gi.GnomeDesktop;
const Lang = imports.lang;
const Shell = imports.gi.Shell;
const St = imports.gi.St;
const Main = imports.ui.main;
const PanelMenu = imports.ui.panelMenu;
const PopupMenu = imports.ui.popupMenu;
const Panel = imports.ui.panel;
const Gettext = imports.gettext.domain('gnome-shell');
const _ = Gettext.gettext;
const possibleRotations = [ GnomeDesktop.RRRotation.ROTATION_0,
GnomeDesktop.RRRotation.ROTATION_90,
GnomeDesktop.RRRotation.ROTATION_180,
GnomeDesktop.RRRotation.ROTATION_270
];
let rotations = [ [ GnomeDesktop.RRRotation.ROTATION_0, _("Normal") ],
[ GnomeDesktop.RRRotation.ROTATION_90, _("Left") ],
[ GnomeDesktop.RRRotation.ROTATION_270, _("Right") ],
[ GnomeDesktop.RRRotation.ROTATION_180, _("Upside-down") ]
];
const XRandr2Iface = {
name: 'org.gnome.SettingsDaemon.XRANDR_2',
methods: [
{ name: 'ApplyConfiguration', inSignature: 'xx', outSignature: '' },
]
};
let XRandr2 = DBus.makeProxyClass(XRandr2Iface);
function Indicator() {
this._init.apply(this, arguments);
}
Indicator.prototype = {
__proto__: PanelMenu.SystemStatusButton.prototype,
_init: function() {
PanelMenu.SystemStatusButton.prototype._init.call(this, 'preferences-desktop-display');
this._proxy = new XRandr2(DBus.session, 'org.gnome.SettingsDaemon', '/org/gnome/SettingsDaemon/XRANDR');
try {
this._screen = new GnomeDesktop.RRScreen({ gdk_screen: Gdk.Screen.get_default() });
this._screen.init(null);
} catch(e) {
// an error means there is no XRandR extension
this.actor.hide();
return;
}
this._createMenu();
this._screen.connect('screen-changed', Lang.bind(this, this._randrEvent));
},
_randrEvent: function() {
this.menu.removeAll();
this._createMenu();
},
_createMenu: function() {
let config = GnomeDesktop.RRConfig.new_current(this._screen);
let outputs = config.get_outputs();
for (let i = 0; i < outputs.length; i++) {
if (outputs[i].get_connected())
this._addOutputItem(config, outputs[i]);
}
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
this.menu.addAction(_("Configure display settings..."), function() {
GLib.spawn_command_line_async('gnome-control-center display');
});
},
_addOutputItem: function(config, output) {
let item = new PopupMenu.PopupMenuItem(output.get_display_name());
item.label.add_style_class_name('display-subtitle');
item.actor.reactive = false;
item.actor.can_focus = false;
this.menu.addMenuItem(item);
let allowedRotations = this._getAllowedRotations(config, output);
for (let i = 0; i < rotations.length; i++) {
let [bitmask, name] = rotations[i];
if (bitmask & allowedRotations) {
this.menu.addAction(name, Lang.bind(this, function(event) {
/* ensure config is saved so we get a backup if anything goes wrong */
config.save();
output.set_rotation(bitmask);
try {
config.save();
this._proxy.ApplyConfigurationRemote(global.stage_xwindow, event.get_time());
} catch (e) {
logError ('Could not save monitor configuration: ' + e);
}
}));
}
}
},
_getAllowedRotations: function(config, output) {
let retval = 0;
let current = output.get_rotation();
for (let i = 0; i < possibleRotations.length; i++) {
output.set_rotation(possibleRotations[i]);
if (config.applicable(this._screen)) {
retval |= possibleRotations[i];
}
}
output.set_rotation(current);
if (retval.lenght == 0) {
// what, no rotation?
// what's current then?
retval = current;
}
return retval;
}
}
Panel.STANDARD_TRAY_ICON_SHELL_IMPLEMENTATION['display'] = Indicator;
@@ -1,6 +0,0 @@
{
"uuid": "xrandr-indicator@gnome-shell-extensions.gnome.org",
"name": "Monitor Status Indicator",
"description": "Add a systems status menu for rotating monitors (overrides what is currently provided by gnome-settings-daemon)",
"shell-version": [ "2.91.5", "2.91.6" ]
}
@@ -1,3 +0,0 @@
.display-subtitle {
font-weight: bold;
}
-18
View File
@@ -1,18 +0,0 @@
<Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:gnome="http://api.gnome.org/doap-extensions#"
xmlns="http://usefulinc.com/ns/doap#">
<name xml:lang="en">GNOME Shell Extensions</name>
<shortdesc xml:lang="en">Modify and extend GNOME Shell functionality and behavior</shortdesc>
<homepage rdf:resource="http://live.gnome.org/GnomeShell/Extenstions" />
<maintainer>
<foaf:Person>
<foaf:name>Giovanni Campagna</foaf:name>
<foaf:mbox rdf:resource="mailto:scampa.giovanni@gmail.com" />
<gnome:userid>gcampagna</gnome:userid>
</foaf:Person>
</maintainer>
</Project>
Binary file not shown.
@@ -0,0 +1 @@
52b1fa7fa539548f7a13d0afd7a8c0bebb433b04
Binary file not shown.
@@ -0,0 +1 @@
f38e99e55082f30046010d6c97dc64c55ca16738
Binary file not shown.
@@ -0,0 +1 @@
2c8f262655641f1b79eb3ff3c91a251108d693b1
Binary file not shown.
@@ -0,0 +1 @@
a736cfe160e881541f76a5ec879fe06c0f2045bc
Binary file not shown.
@@ -0,0 +1 @@
79d3b313cd0c784734134ac269063e0305a2dbbd
@@ -0,0 +1 @@
79d3b313cd0c784734134ac269063e0305a2dbbd
@@ -0,0 +1 @@
2846bbd5062866ee4cc0b318f9e67cc7c0b555e5
Binary file not shown.
@@ -0,0 +1 @@
2846bbd5062866ee4cc0b318f9e67cc7c0b555e5
Binary file not shown.
@@ -0,0 +1 @@
5fd8273285be2b938bd8d31f78840be506ce5e5b
Binary file not shown.
@@ -0,0 +1 @@
c433e2a4bc642b72d66e1a54f48cde2fc8f61ca4
Binary file not shown.
@@ -0,0 +1 @@
2c6df54b936fc47686d502740ed7ce77e5c8e192
Binary file not shown.
@@ -0,0 +1 @@
57535bf2c892eb5f59a6f4f11acf2f3800356463
Binary file not shown.
@@ -0,0 +1 @@
1091ed854aa574caf1dc80ad9547692344504fc8
Binary file not shown.
@@ -0,0 +1 @@
6989090f215ea27db6c9df15758e4099eea4aeb8
Binary file not shown.
@@ -0,0 +1 @@
739e77cafd5f22798a90e5b23c689fef953beab2
Binary file not shown.
@@ -0,0 +1 @@
997b6436abec6c9a5742bd9f506d6802b6403d4d
Binary file not shown.
@@ -0,0 +1 @@
54ad6cdf447444cad3554a39962addb987bf6e11
Binary file not shown.
@@ -0,0 +1 @@
382f0fa4328de111b63ae70fba289efaca9c3daa
Binary file not shown.
@@ -0,0 +1 @@
7d0aecb9c750438571078d27b601cf758746a18a
Binary file not shown.
@@ -0,0 +1 @@
ad6f959ed77a97801718550b59aadc3dc2dbffe9
Binary file not shown.
@@ -0,0 +1 @@
a993b0b9a7bc588da82d5de28c9cd5b57f92fc2f
Binary file not shown.
@@ -0,0 +1 @@
d91859ce33a175ff985f38e6e8bfa506582c5031
Binary file not shown.
@@ -0,0 +1 @@
45d23e098af380a7d5f2cf4497e9ec8d301a4d69
Binary file not shown.
@@ -0,0 +1 @@
e77f1c8e627c2d34b4deb8f8517930a565d210d0
Binary file not shown.
@@ -0,0 +1 @@
f4421b5100124302331aaf97fad7b6f573df5595
Binary file not shown.
@@ -0,0 +1 @@
d23db96341faad1c8355a93b8b2a285e83e02018
Binary file not shown.
@@ -0,0 +1 @@
4cba9cfa5f48c41c3cd07578bf94e72727eeb51a
Binary file not shown.
@@ -0,0 +1 @@
9f208bb0f2bf272f1a05ffb3ad8d55ff5da2aa4d
Binary file not shown.
@@ -0,0 +1 @@
949fdb2e228d9e27f4fb0f6c779d4ce465b86d0a
Binary file not shown.
@@ -0,0 +1 @@
836fea4f82b10777a265a5ffdb9efa89a4405e7a
Binary file not shown.
@@ -0,0 +1 @@
c719e2544954f62938b93a7f5b892b1ac6ba1eb0
Binary file not shown.
@@ -0,0 +1 @@
67421e4761dd82734811949cd1c94ab6d6e46434
Binary file not shown.
@@ -0,0 +1 @@
0f74ec9f735840af4ae875f15859938fcf3c855b
Binary file not shown.
@@ -0,0 +1 @@
48626944b018610fd1184467ceeb7eb7a1b415ca
Binary file not shown.
@@ -0,0 +1 @@
d9f074c09904df32092318a3ac1942d8553c340a
Binary file not shown.
@@ -0,0 +1 @@
9202cfc7968426d1135901d4669ec54e96dd7637
Binary file not shown.
@@ -0,0 +1 @@
80e7e24ff7000ef9e601e20356fe6c4a9677c6ca

Some files were not shown because too many files have changed in this diff Show More