From b2f3af26e460b0cdf5adac22f43bfca11b5832db Mon Sep 17 00:00:00 2001 From: Zhang Xianwei Date: Tue, 27 Nov 2018 14:17:58 +0800 Subject: media-keys: Make sound changes quiet with 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 --- plugins/media-keys/acme.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/media-keys/acme.h') 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 }, -- cgit v1.2.1