mirror of
https://github.com/elementary/gala.git
synced 2024-12-25 10:13:04 +03:00
added toggle-recording-action
This commit is contained in:
parent
8f9d154973
commit
1a29a1a5f0
@ -31,6 +31,11 @@
|
||||
<summary>Panel main menu action</summary>
|
||||
<description>Sets the command to run when the panel-main-menu keybinding is pressed</description>
|
||||
</key>
|
||||
<key type="s" name="toggle-recording-action">
|
||||
<default>''</default>
|
||||
<summary></summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="s" name="theme">
|
||||
<default>'elementary'</default>
|
||||
<summary></summary>
|
||||
|
@ -73,6 +73,13 @@ namespace Gala
|
||||
Settings.get_default().panel_main_menu_action);
|
||||
} catch (Error e) { warning (e.message); }
|
||||
});
|
||||
|
||||
KeyBinding.set_custom_handler ("toggle-recording", () => {
|
||||
try {
|
||||
Process.spawn_command_line_async (
|
||||
Settings.get_default().toggle_recording_action);
|
||||
} catch (Error e) { warning (e.message); }
|
||||
});
|
||||
|
||||
KeyBinding.set_custom_handler ("switch-windows", winswitcher.handle_switch_windows);
|
||||
KeyBinding.set_custom_handler ("switch-windows-backward", winswitcher.handle_switch_windows);
|
||||
|
@ -25,6 +25,7 @@ namespace Gala
|
||||
public bool enable_animations { get; set; }
|
||||
public string panel_main_menu_action { get; set; }
|
||||
public string theme { get; set; }
|
||||
public string toggle_recording_action { get; set; }
|
||||
public bool use_gnome_defaults { get; set; }
|
||||
public bool enable_manager_corner { get; set; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user