summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2019-02-06 16:57:20 +0100
committerBenjamin Berg <bberg@redhat.com>2019-05-27 16:48:25 +0200
commit44f53c64c5a2514d2c022bcb1596a9e46f1df51c (patch)
treedb658014fe1d4711f6bdd7dddf8c81afb13c7961 /data
parent7202d68984984efce0b91058bcb96a332f09692a (diff)
downloadgnome-settings-daemon-44f53c64c5a2514d2c022bcb1596a9e46f1df51c.tar.gz
media-keys: Make internal keybindings to be lists
This will allow us moving all the keybindings into gsettings and also allows users to override keybindings when desired. If a keybinding is for a "hardware" key, then we add a dummy first entry. This allows users to define a further keybinding in g-c-c while keeping the hardware key functional. Note that we are not allowing multiple keybindings for custom keybindings for now. When migrating, any overriden keybinding is inserted into the first slot of the default value. This means that for e.g. the audio keys we are re-adding the hardware button. This could potentially create collisions if the user changed the default binding *and* assigned the hardware button to another purpose. Unfortunately, users will need to correct this manually.
Diffstat (limited to 'data')
-rw-r--r--data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in190
1 files changed, 184 insertions, 6 deletions
diff --git a/data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in b/data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in
index 089b8610..619cdd40 100644
--- a/data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in
+++ b/data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in
@@ -1,11 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
- <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.plugins.media-keys" path="/org/gnome/settings-daemon/plugins/media-keys/">
- <key name="custom-keybindings" type="as">
- <default>[]</default>
- <summary>Custom keybindings</summary>
- <description>List of custom keybindings</description>
- </key>
+ <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.plugins.media-keys.deprecated">
<key name="calculator" type="s">
<default>'XF86Calculator'</default>
<summary>Launch calculator</summary>
@@ -181,6 +176,189 @@
<summary>Magnifier zoom out</summary>
<description>Binding for the magnifier to zoom out</description>
</key>
+ </schema>
+
+ <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.plugins.media-keys" path="/org/gnome/settings-daemon/plugins/media-keys/">
+ <key name="custom-keybindings" type="as">
+ <default>[]</default>
+ <summary>Custom keybindings</summary>
+ <description>List of custom keybindings</description>
+ </key>
+ <key name="calculator" type="as">
+ <default>['', 'XF86Calculator']</default>
+ <summary>Launch calculator</summary>
+ <description>Binding to launch the calculator.</description>
+ </key>
+ <key name="control-center" type="as">
+ <default>['', 'XF86Tools']</default>
+ <summary>Launch settings</summary>
+ <description>Binding to launch GNOME settings.</description>
+ </key>
+ <key name="email" type="as">
+ <default>['', 'XF86Mail']</default>
+ <summary>Launch email client</summary>
+ <description>Binding to launch the email client.</description>
+ </key>
+ <key name="eject" type="as">
+ <default>['', 'XF86Eject']</default>
+ <summary>Eject</summary>
+ <description>Binding to eject an optical disc.</description>
+ </key>
+ <key name="help" type="as">
+ <default>['']</default>
+ <summary>Launch help browser</summary>
+ <description>Binding to launch the help browser.</description>
+ </key>
+ <key name="home" type="as">
+ <default>['', 'XF86Explorer']</default>
+ <summary>Home folder</summary>
+ <description>Binding to open the Home folder.</description>
+ </key>
+ <key name="media" type="as">
+ <default>['', 'XF86AudioMedia']</default>
+ <summary>Launch media player</summary>
+ <description>Binding to launch the media player.</description>
+ </key>
+ <key name="next" type="as">
+ <default>['', 'XF86AudioNext']</default>
+ <summary>Next track</summary>
+ <description>Binding to skip to next track.</description>
+ </key>
+ <key name="pause" type="as">
+ <default>['', 'XF86AudioPause']</default>
+ <summary>Pause playback</summary>
+ <description>Binding to pause playback.</description>
+ </key>
+ <key name="play" type="as">
+ <default>['', 'XF86AudioPlay']</default>
+ <summary>Play (or play/pause)</summary>
+ <description>Binding to start playback (or toggle play/pause).</description>
+ </key>
+ <key name="logout" type="as">
+ <default>['&lt;Control&gt;&lt;Alt&gt;Delete']</default>
+ <summary>Log out</summary>
+ <description>Binding to log out.</description>
+ </key>
+ <key name="previous" type="as">
+ <default>['', 'XF86AudioPrev']</default>
+ <summary>Previous track</summary>
+ <description>Binding to skip to previous track.</description>
+ </key>
+ <key name="screensaver" type="as">
+ <default>['&lt;Super&gt;l']</default>
+ <summary>Lock screen</summary>
+ <description>Binding to lock the screen.</description>
+ </key>
+ <key name="search" type="as">
+ <default>['XF86Search']</default>
+ <summary>Search</summary>
+ <description>Binding to launch the search tool.</description>
+ </key>
+ <key name="stop" type="as">
+ <default>['', 'XF86AudioStop']</default>
+ <summary>Stop playback</summary>
+ <description>Binding to stop playback.</description>
+ </key>
+ <key name="volume-down" type="as">
+ <default>['', 'XF86AudioLowerVolume']</default>
+ <summary>Volume down</summary>
+ <description>Binding to lower the volume.</description>
+ </key>
+ <key name="volume-mute" type="as">
+ <default>['', 'XF86AudioMute']</default>
+ <summary>Volume mute/unmute</summary>
+ <description>Binding to mute/unmute the volume.</description>
+ </key>
+ <key name="volume-up" type="as">
+ <default>['', 'XF86AudioRaiseVolume']</default>
+ <summary>Volume up</summary>
+ <description>Binding to raise the volume.</description>
+ </key>
+ <key name="mic-mute" type="as">
+ <default>['', 'XF86AudioMicMute']</default>
+ <summary>Microphone mute/unmute</summary>
+ <description>Binding to mute/unmute the microphone.</description>
+ </key>
+ <key name="screenshot" type="as">
+ <default>['Print']</default>
+ <summary>Take a screenshot</summary>
+ <description>Binding to take a screenshot.</description>
+ </key>
+ <key name="window-screenshot" type="as">
+ <default>['&lt;Alt&gt;Print']</default>
+ <summary>Take a screenshot of a window</summary>
+ <description>Binding to take a screenshot of a window.</description>
+ </key>
+ <key name="area-screenshot" type="as">
+ <default>['&lt;Shift&gt;Print']</default>
+ <summary>Take a screenshot of an area</summary>
+ <description>Binding to take a screenshot of an area.</description>
+ </key>
+ <key name="screenshot-clip" type="as">
+ <default>['&lt;Ctrl&gt;Print']</default>
+ <summary>Copy a screenshot to clipboard</summary>
+ <description>Binding to copy a screenshot to clipboard.</description>
+ </key>
+ <key name="window-screenshot-clip" type="as">
+ <default>['&lt;Ctrl&gt;&lt;Alt&gt;Print']</default>
+ <summary>Copy a screenshot of a window to clipboard</summary>
+ <description>Binding to copy a screenshot of a window to clipboard.</description>
+ </key>
+ <key name="area-screenshot-clip" type="as">
+ <default>['&lt;Ctrl&gt;&lt;Shift&gt;Print']</default>
+ <summary>Copy a screenshot of an area to clipboard</summary>
+ <description>Binding to copy a screenshot of an area to clipboard.</description>
+ </key>
+ <key name="screencast" type="as">
+ <default>['&lt;Ctrl&gt;&lt;Shift&gt;&lt;Alt&gt;R']</default>
+ <summary>Record a short video of the screen</summary>
+ <description>Binding to record a short video of the screen</description>
+ </key>
+ <key name="www" type="as">
+ <default>['', 'XF86WWW']</default>
+ <summary>Launch web browser</summary>
+ <description>Binding to launch the web browser.</description>
+ </key>
+ <key name="magnifier" type="as">
+ <default>['&lt;Alt&gt;&lt;Super&gt;8']</default>
+ <summary>Toggle magnifier</summary>
+ <description>Binding to show the screen magnifier</description>
+ </key>
+ <key name="screenreader" type="as">
+ <default>['&lt;Alt&gt;&lt;Super&gt;s']</default>
+ <summary>Toggle screen reader</summary>
+ <description>Binding to start the screen reader</description>
+ </key>
+ <key name="on-screen-keyboard" type="as">
+ <default>['']</default>
+ <summary>Toggle on-screen keyboard</summary>
+ <description>Binding to show the on-screen keyboard</description>
+ </key>
+ <key name="increase-text-size" type="as">
+ <default>['']</default>
+ <summary>Increase text size</summary>
+ <description>Binding to increase the text size</description>
+ </key>
+ <key name="decrease-text-size" type="as">
+ <default>['']</default>
+ <summary>Decrease text size</summary>
+ <description>Binding to decrease the text size</description>
+ </key>
+ <key name="toggle-contrast" type="as">
+ <default>['']</default>
+ <summary>Toggle contrast</summary>
+ <description>Binding to toggle the interface contrast</description>
+ </key>
+ <key name="magnifier-zoom-in" type="as">
+ <default>['&lt;Alt&gt;&lt;Super&gt;equal']</default>
+ <summary>Magnifier zoom in</summary>
+ <description>Binding for the magnifier to zoom in</description>
+ </key>
+ <key name="magnifier-zoom-out" type="as">
+ <default>['&lt;Alt&gt;&lt;Super&gt;minus']</default>
+ <summary>Magnifier zoom out</summary>
+ <description>Binding for the magnifier to zoom out</description>
+ </key>
<key name="max-screencast-length" type="u">
<default>30</default>
<summary>Maximum length of screen recordings</summary>