summaryrefslogtreecommitdiff
path: root/plugins/media-keys/acme.h
diff options
context:
space:
mode:
authorZhang Xianwei <[email protected]>2018-11-27 14:17:58 +0800
committerraveit65 <[email protected]>2018-12-03 11:40:50 +0100
commitb2f3af26e460b0cdf5adac22f43bfca11b5832db (patch)
tree5a46624102eca82036c6a78e47d5398878f1cae4 /plugins/media-keys/acme.h
parent0fdb1cd1c3b2e2e2ce042414a493c27e4a51f9c5 (diff)
downloadmate-settings-daemon-b2f3af26e460b0cdf5adac22f43bfca11b5832db.tar.bz2
mate-settings-daemon-b2f3af26e460b0cdf5adac22f43bfca11b5832db.tar.xz
media-keys: Make sound changes quiet with Alt
<Alt>+volume control keys will change the sound, without playing a notification sound, which can be useful when things need to be quiet. This uses the settings stored in GSettings for those audio keys. Signed-off-by: Zhang Xianwei <[email protected]>
Diffstat (limited to 'plugins/media-keys/acme.h')
-rw-r--r--plugins/media-keys/acme.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/media-keys/acme.h b/plugins/media-keys/acme.h
index 8ab55fe..8d6aba2 100644
--- a/plugins/media-keys/acme.h
+++ b/plugins/media-keys/acme.h
@@ -32,6 +32,9 @@ enum {
MUTE_KEY,
VOLUME_DOWN_KEY,
VOLUME_UP_KEY,
+ MUTE_QUIET_KEY,
+ VOLUME_DOWN_QUIET_KEY,
+ VOLUME_UP_QUIET_KEY,
POWER_KEY,
EJECT_KEY,
HOME_KEY,
@@ -74,6 +77,9 @@ static struct {
{ MUTE_KEY, "volume-mute", NULL, NULL },
{ VOLUME_DOWN_KEY, "volume-down", NULL, NULL },
{ VOLUME_UP_KEY, "volume-up", NULL, NULL },
+ { MUTE_QUIET_KEY, "volume-mute-quiet", NULL, NULL },
+ { VOLUME_DOWN_QUIET_KEY, "volume-down-quiet", NULL, NULL },
+ { VOLUME_UP_QUIET_KEY, "volume-up-quiet", NULL, NULL },
{ POWER_KEY, "power", NULL, NULL },
{ EJECT_KEY, "eject", NULL, NULL },
{ HOME_KEY, "home", NULL, NULL },