I would like to have two keyboard shortcuts associated to the same action. Is it possible to use a list of shortcuts for that?

I get a single value/shortcut if I execute:

$ gsettings get org.gnome.settings-daemon.plugins.media-keys volume-down

but, could that be a list? (a pair of shortcuts). I have tried, without success:

$ gsettings set org.gnome.settings-daemon.plugins.media-keys volume-down \
      "['shortcut_0', 'shortcut_1']"

Executing that command does not throw an error, however, none of the elements in the list end-up working.

Note that I am trying to avoid creating a new "custom shortcut", in which I could specify a command which does the thing that I want (i.e.: lower the volume down), but with a different shortcut. I would like to keep all shortcuts associated to the "official" gsettings.

Using: GNOME 3.20. Although I wouldn't mind an answer if it works in a more recent GNOME version.

  • 1
    No, if you use dconf to alter that key value you'll see it's of type string (not an array of strings) which means that particular key accepts only a single value. – don_crissti Dec 2 '16 at 1:37
  • @don_crissti Sad to hear that... :-( Thanks. Consider adding your answer here. Hope one they they will change that! – Peque Dec 2 '16 at 1:42
  • I don't think they will ever change that since the vast majority of people out there only need one shortcut. Also, keep in mind that custom shortcuts that you add via settings interface are also added to the dconf database (hence gsettings ...) – don_crissti Dec 2 '16 at 1:47
  • @don_crissti how do you see the type of dconf key? – anatoly techtonik Dec 25 '18 at 6:36
  • 1
    @anatolytechtonik - that's a separate question now, if no one else answers it in 48 hours I'll do it. – don_crissti Dec 25 '18 at 16:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.