pax_global_header00006660000000000000000000000064131043002420014477gustar00rootroot0000000000000052 comment=d6c48fd8dc801bb324d676bf3072bb90c77c1470 gnome-shell-impatience-version-0.4.5/000077500000000000000000000000001310430024200175165ustar00rootroot00000000000000gnome-shell-impatience-version-0.4.5/LICENCE000066400000000000000000000012111310430024200204760ustar00rootroot00000000000000Copyright (C) 2012 Tim Cuthbertson This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . gnome-shell-impatience-version-0.4.5/Makefile000066400000000000000000000004171310430024200211600ustar00rootroot00000000000000all: schemas zip 0: phony mkzero-gfxmonk -p impatience -p xdg gnome-shell-impatience.xml schemas: phony cd impatience/schemas && glib-compile-schemas . zip: phony rm impatience@gfxmonk.net.zip cd impatience && zip -r ../impatience@gfxmonk.net.zip * .PHONY: phony gnome-shell-impatience-version-0.4.5/README.md000066400000000000000000000001701310430024200207730ustar00rootroot00000000000000 Speed up builtin gnome-shell animations. gnome-shell-impatience-version-0.4.5/VERSION000066400000000000000000000000051310430024200205610ustar00rootroot000000000000000.4.5gnome-shell-impatience-version-0.4.5/all.gup000066400000000000000000000000321310430024200207760ustar00rootroot00000000000000#!bash -eu gup -u compile gnome-shell-impatience-version-0.4.5/compile.gup000066400000000000000000000000321310430024200216560ustar00rootroot00000000000000#!bash -eu gup -u schemas gnome-shell-impatience-version-0.4.5/gnome-shell-impatience.dist000066400000000000000000000000171310430024200247270ustar00rootroot00000000000000impatience xdg gnome-shell-impatience-version-0.4.5/gnome-shell-impatience.xml000066400000000000000000000060651310430024200245750ustar00rootroot00000000000000 gnome-shell-impatience speed up gnome-shell animations Speed up builtin gnome-shell animations. http://gfxmonk.net/dist/0install/gnome-shell.xml --plugin-command run http://gfxmonk.net/dist/0install/gnome-shell.xml --plugin-command run gnome-shell-impatience-version-0.4.5/gnome-shell-impatience.xml.template000066400000000000000000000020451310430024200264010ustar00rootroot00000000000000 gnome-shell-impatience speed up gnome-shell animations Speed up builtin gnome-shell animations. http://gfxmonk.net/dist/0install/gnome-shell.xml --plugin-command run gnome-shell-impatience-version-0.4.5/impatience/000077500000000000000000000000001310430024200216345ustar00rootroot00000000000000gnome-shell-impatience-version-0.4.5/impatience/extension.js000066400000000000000000000026261310430024200242140ustar00rootroot00000000000000const St = imports.gi.St; const Gio = imports.gi.Gio; const Lang = imports.lang; const DEFAULT_SPEED = 0.75; const ExtensionUtils = imports.misc.extensionUtils; const Extension = ExtensionUtils.getCurrentExtension(); const Settings = Extension.imports.settings; function LOG(m){ global.log("[impatience] " + m); log("[impatience] " + m); }; function Ext() { this._init.apply(this, arguments); }; var noop = function() {}; Ext.prototype = {}; Ext.prototype._init = function() { this.enabled = false; this.original_speed = St.get_slow_down_factor(); this.modified_speed = DEFAULT_SPEED; this.unbind = noop; }; Ext.prototype.enable = function() { this.enabled = true; var pref = (new Settings.Prefs()).SPEED; LOG("enabled"); var binding = pref.changed(Lang.bind(this, function() { this.set_speed(pref.get()); })); this.unbind = function() { pref.disconnect(binding); this.unbind = noop; }; this.set_speed(pref.get()); }; Ext.prototype.disable = function() { this.enabled = false; this.unbind(); St.set_slow_down_factor(this.original_speed); }; Ext.prototype.set_speed = function(new_speed) { if(!this.enabled) { LOG("NOT setting new speed, since the extension is disabled."); return; } if(new_speed !== undefined) { this.modified_speed = new_speed; } LOG("setting new speed: " + this.modified_speed); St.set_slow_down_factor(this.modified_speed); }; function init() { return new Ext(); }; gnome-shell-impatience-version-0.4.5/impatience/metadata.json000066400000000000000000000005061310430024200243100ustar00rootroot00000000000000{ "uuid": "impatience@gfxmonk.net", "name": "Impatience", "description": "Speed up the gnome-shell animation speed", "url": "http://gfxmonk.net/dist/0install/gnome-shell-impatience.xml", "shell-version": [ "3.4", "3.6", "3.8", "3.10", "3.12", "3.14", "3.16", "3.18", "3.20", "3.22", "3.24" ] } gnome-shell-impatience-version-0.4.5/impatience/prefs.js000066400000000000000000000021451310430024200233130ustar00rootroot00000000000000const Gtk = imports.gi.Gtk; let Extension = imports.misc.extensionUtils.getCurrentExtension(); let Settings = Extension.imports.settings; function init() { } function buildPrefsWidget() { let config = new Settings.Prefs(); let frame = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, border_width: 10 }); (function() { let hbox = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL, spacing: 20 }); let label = new Gtk.Label({ label: "Speed scaling\n(1 = normal, 0.5 = twice as fast)", use_markup: true, }); let adjustment = new Gtk.Adjustment({ lower: 0, upper: 2, step_increment: 0.05 }); let scale = new Gtk.HScale({ digits:2, adjustment: adjustment, value_pos: Gtk.PositionType.RIGHT }); hbox.add(label); hbox.pack_end(scale, true, true, 0); frame.add(hbox); var pref = config.SPEED; scale.set_value(pref.get()); scale.connect('value-changed', function(sw) { var oldval = pref.get(); var newval = sw.get_value(); if (newval != pref.get()) { pref.set(newval); } }); })(); frame.show_all(); return frame; } gnome-shell-impatience-version-0.4.5/impatience/schemas/000077500000000000000000000000001310430024200232575ustar00rootroot00000000000000gnome-shell-impatience-version-0.4.5/impatience/schemas/gschemas.compiled000066400000000000000000000005201310430024200265640ustar00rootroot00000000000000GVariantX(ÿ—æX1HŒèÿÿÿÿLLLPorg.gnome.shell.extensions.net.gfxmonk.impatience(‚o~è vøÀ}~ ÿÿÿÿvFÿÿÿÿFLHLspeed-factorè?(d).path/org/gnome/shell/extensions/net/gfxmonk/impatience/sorg.gnome.shell.extensions.net.gfxmonk.impatience.gschema.xml000066400000000000000000000005071310430024200371030ustar00rootroot00000000000000gnome-shell-impatience-version-0.4.5/impatience/schemas 0.75 speed factor gnome-shell-impatience-version-0.4.5/impatience/settings.js000066400000000000000000000023161310430024200240340ustar00rootroot00000000000000const Gio = imports.gi.Gio; const ExtensionUtils = imports.misc.extensionUtils; const Extension = ExtensionUtils.getCurrentExtension(); const SCHEMA_PATH = 'org.gnome.shell.extensions.net.gfxmonk.impatience'; function get_local_gsettings(schema_path) { const GioSSS = Gio.SettingsSchemaSource; let schemaDir = Extension.dir.get_child('schemas'); let schemaSource = GioSSS.get_default(); if (schemaDir.query_exists(null)) { schemaSource = GioSSS.new_from_directory( schemaDir.get_path(), schemaSource, false); } let schemaObj = schemaSource.lookup(schema_path, true); if (!schemaObj) { throw new Error( 'Schema ' + schema_path + ' could not be found for extension ' + Extension.metadata.uuid ); } return new Gio.Settings({ settings_schema: schemaObj }); }; function Prefs() { var self = this; var settings = this.settings = get_local_gsettings(SCHEMA_PATH); this.SPEED = { key: 'speed-factor', get: function() { return settings.get_double(this.key); }, set: function(v) { settings.set_double(this.key, v); }, changed: function(cb) { return settings.connect('changed::' + this.key, cb); }, disconnect: function() { return settings.disconnect.apply(settings, arguments); }, }; }; gnome-shell-impatience-version-0.4.5/schemas.gup000066400000000000000000000001051310430024200216520ustar00rootroot00000000000000#!bash -eu gup --always cd impatience/schemas glib-compile-schemas . gnome-shell-impatience-version-0.4.5/xdg/000077500000000000000000000000001310430024200203005ustar00rootroot00000000000000gnome-shell-impatience-version-0.4.5/xdg/data/000077500000000000000000000000001310430024200212115ustar00rootroot00000000000000gnome-shell-impatience-version-0.4.5/xdg/data/glib-2.0/000077500000000000000000000000001310430024200224235ustar00rootroot00000000000000gnome-shell-impatience-version-0.4.5/xdg/data/glib-2.0/schemas000077700000000000000000000000001310430024200303112../../../impatience/schemasustar00rootroot00000000000000gnome-shell-impatience-version-0.4.5/xdg/data/gnome-shell/000077500000000000000000000000001310430024200234235ustar00rootroot00000000000000gnome-shell-impatience-version-0.4.5/xdg/data/gnome-shell/extensions/000077500000000000000000000000001310430024200256225ustar00rootroot00000000000000gnome-shell-impatience-version-0.4.5/xdg/data/gnome-shell/extensions/impatience@gfxmonk.net000077700000000000000000000000001310430024200352522../../../../impatienceustar00rootroot00000000000000