Make it possible for the user to override eg. the close keybinding

Run module.enable after keybind setup.
This commit is contained in:
Tor Hedin Brønner
2018-05-02 10:47:42 +02:00
parent 3b18b3882f
commit e909e17ab6

View File

@@ -207,8 +207,6 @@ function enable() {
}
log(`enabled ${SESSIONID}`);
modules.forEach(m => m.enable && m.enable());
let settings = new Gio.Settings({ schema_id: "org.gnome.desktop.wm.keybindings"});
settings.set_strv("close", ['<super>c'])
@@ -234,6 +232,8 @@ function enable() {
killKeybinding('restore-shortcuts',
new Gio.Settings({ schema_id: "org.gnome.mutter.wayland.keybindings"}));
modules.forEach(m => m.enable && m.enable());
enabled = true;
}