pax_global_header 0000666 0000000 0000000 00000000064 13104300242 0014477 g ustar 00root root 0000000 0000000 52 comment=d6c48fd8dc801bb324d676bf3072bb90c77c1470
gnome-shell-impatience-version-0.4.5/ 0000775 0000000 0000000 00000000000 13104300242 0017516 5 ustar 00root root 0000000 0000000 gnome-shell-impatience-version-0.4.5/LICENCE 0000664 0000000 0000000 00000001211 13104300242 0020476 0 ustar 00root root 0000000 0000000 Copyright (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/Makefile 0000664 0000000 0000000 00000000417 13104300242 0021160 0 ustar 00root root 0000000 0000000 all: 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.md 0000664 0000000 0000000 00000000170 13104300242 0020773 0 ustar 00root root 0000000 0000000
Speed up builtin gnome-shell animations.
gnome-shell-impatience-version-0.4.5/VERSION 0000664 0000000 0000000 00000000005 13104300242 0020561 0 ustar 00root root 0000000 0000000 0.4.5 gnome-shell-impatience-version-0.4.5/all.gup 0000664 0000000 0000000 00000000032 13104300242 0020776 0 ustar 00root root 0000000 0000000 #!bash -eu
gup -u compile
gnome-shell-impatience-version-0.4.5/compile.gup 0000664 0000000 0000000 00000000032 13104300242 0021656 0 ustar 00root root 0000000 0000000 #!bash -eu
gup -u schemas
gnome-shell-impatience-version-0.4.5/gnome-shell-impatience.dist 0000664 0000000 0000000 00000000017 13104300242 0024727 0 ustar 00root root 0000000 0000000 impatience
xdg
gnome-shell-impatience-version-0.4.5/gnome-shell-impatience.xml 0000664 0000000 0000000 00000006065 13104300242 0024575 0 ustar 00root root 0000000 0000000
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.template 0000664 0000000 0000000 00000002045 13104300242 0026401 0 ustar 00root root 0000000 0000000
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/ 0000775 0000000 0000000 00000000000 13104300242 0021634 5 ustar 00root root 0000000 0000000 gnome-shell-impatience-version-0.4.5/impatience/extension.js 0000664 0000000 0000000 00000002626 13104300242 0024214 0 ustar 00root root 0000000 0000000 const 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.json 0000664 0000000 0000000 00000000506 13104300242 0024310 0 ustar 00root root 0000000 0000000 {
"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.js 0000664 0000000 0000000 00000002145 13104300242 0023313 0 ustar 00root root 0000000 0000000 const 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/ 0000775 0000000 0000000 00000000000 13104300242 0023257 5 ustar 00root root 0000000 0000000 gnome-shell-impatience-version-0.4.5/impatience/schemas/gschemas.compiled 0000664 0000000 0000000 00000000520 13104300242 0026564 0 ustar 00root root 0000000 0000000 GVariant X ( ÿ—æ X 1 H Œ è ÿÿÿÿL L L P org.gnome.shell.extensions.net.gfxmonk.impatience ( ‚o~ è v ø À}~ÿÿÿÿ v F ÿÿÿÿF L H L speed-factor è? (d).path /org/gnome/shell/extensions/net/gfxmonk/impatience/ s org.gnome.shell.extensions.net.gfxmonk.impatience.gschema.xml 0000664 0000000 0000000 00000000507 13104300242 0037103 0 ustar 00root root 0000000 0000000 gnome-shell-impatience-version-0.4.5/impatience/schemas
0.75
speed factor
gnome-shell-impatience-version-0.4.5/impatience/settings.js 0000664 0000000 0000000 00000002316 13104300242 0024034 0 ustar 00root root 0000000 0000000 const 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.gup 0000664 0000000 0000000 00000000105 13104300242 0021652 0 ustar 00root root 0000000 0000000 #!bash -eu
gup --always
cd impatience/schemas
glib-compile-schemas .
gnome-shell-impatience-version-0.4.5/xdg/ 0000775 0000000 0000000 00000000000 13104300242 0020300 5 ustar 00root root 0000000 0000000 gnome-shell-impatience-version-0.4.5/xdg/data/ 0000775 0000000 0000000 00000000000 13104300242 0021211 5 ustar 00root root 0000000 0000000 gnome-shell-impatience-version-0.4.5/xdg/data/glib-2.0/ 0000775 0000000 0000000 00000000000 13104300242 0022423 5 ustar 00root root 0000000 0000000 gnome-shell-impatience-version-0.4.5/xdg/data/glib-2.0/schemas 0000777 0000000 0000000 00000000000 13104300242 0030311 2../../../impatience/schemas ustar 00root root 0000000 0000000 gnome-shell-impatience-version-0.4.5/xdg/data/gnome-shell/ 0000775 0000000 0000000 00000000000 13104300242 0023423 5 ustar 00root root 0000000 0000000 gnome-shell-impatience-version-0.4.5/xdg/data/gnome-shell/extensions/ 0000775 0000000 0000000 00000000000 13104300242 0025622 5 ustar 00root root 0000000 0000000 gnome-shell-impatience-version-0.4.5/xdg/data/gnome-shell/extensions/impatience@gfxmonk.net 0000777 0000000 0000000 00000000000 13104300242 0035252 2../../../../impatience ustar 00root root 0000000 0000000