Create custom keyboard shortcut to send Super+2 The 2019 Stack Overflow Developer Survey...

Mortgage adviser recommends a longer term than necessary combined with overpayments

Sub-subscripts in strings cause different spacings than subscripts

Is there a writing software that you can sort scenes like slides in PowerPoint?

Accepted by European university, rejected by all American ones I applied to? Possible reasons?

How to read αἱμύλιος or when to aspirate

Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?

Circular reasoning in L'Hopital's rule

Can the DM override racial traits?

Working through the single responsibility principle (SRP) in Python when calls are expensive

Using dividends to reduce short term capital gains?

Was credit for the black hole image misappropriated?

"... to apply for a visa" or "... and applied for a visa"?

Homework question about an engine pulling a train

Deal with toxic manager when you can't quit

What aspect of planet Earth must be changed to prevent the industrial revolution?

Solving overdetermined system by QR decomposition

Can the Right Ascension and Argument of Perigee of a spacecraft's orbit keep varying by themselves with time?

Why can't wing-mounted spoilers be used to steepen approaches?

How to handle characters who are more educated than the author?

What's the point in a preamp?

Nested ellipses in tikzpicture: Chomsky hierarchy

Can I visit the Trinity College (Cambridge) library and see some of their rare books

Does Parliament need to approve the new Brexit delay to 31 October 2019?

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?



Create custom keyboard shortcut to send Super+2



The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraHow can I change what keys on my keyboard do? (How can I create custom keyboard commands/shortcuts?)Create a keyboard shortcut to move windows to a specific screen edgeUnable to set custom keyboard shortcutsPlay, Pause, Next, Stop on keyboard - how to set which app use it?Keyboard Shortcuts to switch directly to applicationsSuper key shortcuts “unresponsive” when configured via Custom ShortcutsIndicator Applet keyboard shortcutxubuntu 14.04 change “minimize all windows” (show desktop)Custom Keyboard Layout to use H J K L as ARROWS not working properlyAfter Upgrade from 11.10 to 14.04, Laptop Keyboard Keys Not WorkingDanish keyboard not working correctly





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







9















I'm trying to set my numpad to be a media control centre. I want to have the 0 key pull up Clementine and bring it to the foreground. Right now I have it set to launch Clementine, but it just dances in the launcher and doesn't come to the foreground. So, I have Clementine pinned to the second slot on the launcher, and I want to set up a custom key shortcut via the Keyboard Settings. The question is, how do I send Super+2 as a command?



Second, I want the plus and minus keys to send Alt+Left and Alt+Right (for browser navigation).



Third, and less important, I want the period key to open Clementine's EQ, and 7 and 9 to send Fast Forward and Rewind.










share|improve this question































    9















    I'm trying to set my numpad to be a media control centre. I want to have the 0 key pull up Clementine and bring it to the foreground. Right now I have it set to launch Clementine, but it just dances in the launcher and doesn't come to the foreground. So, I have Clementine pinned to the second slot on the launcher, and I want to set up a custom key shortcut via the Keyboard Settings. The question is, how do I send Super+2 as a command?



    Second, I want the plus and minus keys to send Alt+Left and Alt+Right (for browser navigation).



    Third, and less important, I want the period key to open Clementine's EQ, and 7 and 9 to send Fast Forward and Rewind.










    share|improve this question



























      9












      9








      9


      1






      I'm trying to set my numpad to be a media control centre. I want to have the 0 key pull up Clementine and bring it to the foreground. Right now I have it set to launch Clementine, but it just dances in the launcher and doesn't come to the foreground. So, I have Clementine pinned to the second slot on the launcher, and I want to set up a custom key shortcut via the Keyboard Settings. The question is, how do I send Super+2 as a command?



      Second, I want the plus and minus keys to send Alt+Left and Alt+Right (for browser navigation).



      Third, and less important, I want the period key to open Clementine's EQ, and 7 and 9 to send Fast Forward and Rewind.










      share|improve this question
















      I'm trying to set my numpad to be a media control centre. I want to have the 0 key pull up Clementine and bring it to the foreground. Right now I have it set to launch Clementine, but it just dances in the launcher and doesn't come to the foreground. So, I have Clementine pinned to the second slot on the launcher, and I want to set up a custom key shortcut via the Keyboard Settings. The question is, how do I send Super+2 as a command?



      Second, I want the plus and minus keys to send Alt+Left and Alt+Right (for browser navigation).



      Third, and less important, I want the period key to open Clementine's EQ, and 7 and 9 to send Fast Forward and Rewind.







      keyboard shortcut-keys






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 17 '14 at 2:09









      Eliah Kagan

      83.3k22229369




      83.3k22229369










      asked Oct 17 '14 at 0:02









      wjandreawjandrea

      9,56542765




      9,56542765






















          3 Answers
          3






          active

          oldest

          votes


















          6















          How do I send Super+2 as a command




          You could use xdotool for this (sudo apt-get install xdotool to install):



          xdotool key super+2





          Second, I want the plus and minus keys to send Alt+Left and Alt+Right




          This should work:



          xdotool key alt+Right
          xdotool key alt+Left





          7 and 9 to send Fast Forward and Rewind




          You could give these a try:



          xdotool key XF86AudioNext
          xdotool key XF86AudioPrev





          I want the period key to open Clementine's EQ




          This is where things get tricky. Without a dedicated shortcut you would have to program an xdotool macro to access the menu and launch the equalizer, but I am not quite sure if that would work, either.





          In any case, as you can see most of these customizations can be performed using virtual xdotool key presses.



          If you are wondering how to assign these commands to hotkeys of your choice make sure to check out this Q&A:



          How can I change what keys on my keyboard do? (How can I create custom keyboard commands/shortcuts?)






          share|improve this answer


























          • Thanks! This is exactly what I needed. The Super+2 command works great, although some of the time it behaves like just Super. Hmm... In any case, it's something. The browser nav commands work perfectly. I found out Clementine actually has command line controls for nearly everything, so for fast forward and rewind, I use clementine --seek-by 2 and clementine --seek-by -2. Still working on the EQ part of it.

            – wjandrea
            Nov 16 '14 at 1:58





















          3














          Another (I think easier) approach would be to use AutoKey.



          Once the keys are set as hotkeys, you can use custom defined phrases to have them emit almost anything you want.





          AutoKey also supports scriptis written in Python that can do almost anything when they are activated by a trigger phrase or hotkey. You can even tell a script to only work in certain windows so the hotkeys/trigger phrases behave as normal keys elsewhere.






          share|improve this answer

































            1














            Probably you can grab the scancodes of the keys and assign the shortcuts manually. The article below lists some utilities that might help:
            http://tuxdiary.com/2014/03/07/get-scancode-for-keys-on-ubuntu/






            share|improve this answer
























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f538017%2fcreate-custom-keyboard-shortcut-to-send-super2%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              6















              How do I send Super+2 as a command




              You could use xdotool for this (sudo apt-get install xdotool to install):



              xdotool key super+2





              Second, I want the plus and minus keys to send Alt+Left and Alt+Right




              This should work:



              xdotool key alt+Right
              xdotool key alt+Left





              7 and 9 to send Fast Forward and Rewind




              You could give these a try:



              xdotool key XF86AudioNext
              xdotool key XF86AudioPrev





              I want the period key to open Clementine's EQ




              This is where things get tricky. Without a dedicated shortcut you would have to program an xdotool macro to access the menu and launch the equalizer, but I am not quite sure if that would work, either.





              In any case, as you can see most of these customizations can be performed using virtual xdotool key presses.



              If you are wondering how to assign these commands to hotkeys of your choice make sure to check out this Q&A:



              How can I change what keys on my keyboard do? (How can I create custom keyboard commands/shortcuts?)






              share|improve this answer


























              • Thanks! This is exactly what I needed. The Super+2 command works great, although some of the time it behaves like just Super. Hmm... In any case, it's something. The browser nav commands work perfectly. I found out Clementine actually has command line controls for nearly everything, so for fast forward and rewind, I use clementine --seek-by 2 and clementine --seek-by -2. Still working on the EQ part of it.

                – wjandrea
                Nov 16 '14 at 1:58


















              6















              How do I send Super+2 as a command




              You could use xdotool for this (sudo apt-get install xdotool to install):



              xdotool key super+2





              Second, I want the plus and minus keys to send Alt+Left and Alt+Right




              This should work:



              xdotool key alt+Right
              xdotool key alt+Left





              7 and 9 to send Fast Forward and Rewind




              You could give these a try:



              xdotool key XF86AudioNext
              xdotool key XF86AudioPrev





              I want the period key to open Clementine's EQ




              This is where things get tricky. Without a dedicated shortcut you would have to program an xdotool macro to access the menu and launch the equalizer, but I am not quite sure if that would work, either.





              In any case, as you can see most of these customizations can be performed using virtual xdotool key presses.



              If you are wondering how to assign these commands to hotkeys of your choice make sure to check out this Q&A:



              How can I change what keys on my keyboard do? (How can I create custom keyboard commands/shortcuts?)






              share|improve this answer


























              • Thanks! This is exactly what I needed. The Super+2 command works great, although some of the time it behaves like just Super. Hmm... In any case, it's something. The browser nav commands work perfectly. I found out Clementine actually has command line controls for nearly everything, so for fast forward and rewind, I use clementine --seek-by 2 and clementine --seek-by -2. Still working on the EQ part of it.

                – wjandrea
                Nov 16 '14 at 1:58
















              6












              6








              6








              How do I send Super+2 as a command




              You could use xdotool for this (sudo apt-get install xdotool to install):



              xdotool key super+2





              Second, I want the plus and minus keys to send Alt+Left and Alt+Right




              This should work:



              xdotool key alt+Right
              xdotool key alt+Left





              7 and 9 to send Fast Forward and Rewind




              You could give these a try:



              xdotool key XF86AudioNext
              xdotool key XF86AudioPrev





              I want the period key to open Clementine's EQ




              This is where things get tricky. Without a dedicated shortcut you would have to program an xdotool macro to access the menu and launch the equalizer, but I am not quite sure if that would work, either.





              In any case, as you can see most of these customizations can be performed using virtual xdotool key presses.



              If you are wondering how to assign these commands to hotkeys of your choice make sure to check out this Q&A:



              How can I change what keys on my keyboard do? (How can I create custom keyboard commands/shortcuts?)






              share|improve this answer
















              How do I send Super+2 as a command




              You could use xdotool for this (sudo apt-get install xdotool to install):



              xdotool key super+2





              Second, I want the plus and minus keys to send Alt+Left and Alt+Right




              This should work:



              xdotool key alt+Right
              xdotool key alt+Left





              7 and 9 to send Fast Forward and Rewind




              You could give these a try:



              xdotool key XF86AudioNext
              xdotool key XF86AudioPrev





              I want the period key to open Clementine's EQ




              This is where things get tricky. Without a dedicated shortcut you would have to program an xdotool macro to access the menu and launch the equalizer, but I am not quite sure if that would work, either.





              In any case, as you can see most of these customizations can be performed using virtual xdotool key presses.



              If you are wondering how to assign these commands to hotkeys of your choice make sure to check out this Q&A:



              How can I change what keys on my keyboard do? (How can I create custom keyboard commands/shortcuts?)







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Apr 13 '17 at 12:24









              Community

              1




              1










              answered Oct 18 '14 at 19:30









              GlutanimateGlutanimate

              16.4k974132




              16.4k974132













              • Thanks! This is exactly what I needed. The Super+2 command works great, although some of the time it behaves like just Super. Hmm... In any case, it's something. The browser nav commands work perfectly. I found out Clementine actually has command line controls for nearly everything, so for fast forward and rewind, I use clementine --seek-by 2 and clementine --seek-by -2. Still working on the EQ part of it.

                – wjandrea
                Nov 16 '14 at 1:58





















              • Thanks! This is exactly what I needed. The Super+2 command works great, although some of the time it behaves like just Super. Hmm... In any case, it's something. The browser nav commands work perfectly. I found out Clementine actually has command line controls for nearly everything, so for fast forward and rewind, I use clementine --seek-by 2 and clementine --seek-by -2. Still working on the EQ part of it.

                – wjandrea
                Nov 16 '14 at 1:58



















              Thanks! This is exactly what I needed. The Super+2 command works great, although some of the time it behaves like just Super. Hmm... In any case, it's something. The browser nav commands work perfectly. I found out Clementine actually has command line controls for nearly everything, so for fast forward and rewind, I use clementine --seek-by 2 and clementine --seek-by -2. Still working on the EQ part of it.

              – wjandrea
              Nov 16 '14 at 1:58







              Thanks! This is exactly what I needed. The Super+2 command works great, although some of the time it behaves like just Super. Hmm... In any case, it's something. The browser nav commands work perfectly. I found out Clementine actually has command line controls for nearly everything, so for fast forward and rewind, I use clementine --seek-by 2 and clementine --seek-by -2. Still working on the EQ part of it.

              – wjandrea
              Nov 16 '14 at 1:58















              3














              Another (I think easier) approach would be to use AutoKey.



              Once the keys are set as hotkeys, you can use custom defined phrases to have them emit almost anything you want.





              AutoKey also supports scriptis written in Python that can do almost anything when they are activated by a trigger phrase or hotkey. You can even tell a script to only work in certain windows so the hotkeys/trigger phrases behave as normal keys elsewhere.






              share|improve this answer






























                3














                Another (I think easier) approach would be to use AutoKey.



                Once the keys are set as hotkeys, you can use custom defined phrases to have them emit almost anything you want.





                AutoKey also supports scriptis written in Python that can do almost anything when they are activated by a trigger phrase or hotkey. You can even tell a script to only work in certain windows so the hotkeys/trigger phrases behave as normal keys elsewhere.






                share|improve this answer




























                  3












                  3








                  3







                  Another (I think easier) approach would be to use AutoKey.



                  Once the keys are set as hotkeys, you can use custom defined phrases to have them emit almost anything you want.





                  AutoKey also supports scriptis written in Python that can do almost anything when they are activated by a trigger phrase or hotkey. You can even tell a script to only work in certain windows so the hotkeys/trigger phrases behave as normal keys elsewhere.






                  share|improve this answer















                  Another (I think easier) approach would be to use AutoKey.



                  Once the keys are set as hotkeys, you can use custom defined phrases to have them emit almost anything you want.





                  AutoKey also supports scriptis written in Python that can do almost anything when they are activated by a trigger phrase or hotkey. You can even tell a script to only work in certain windows so the hotkeys/trigger phrases behave as normal keys elsewhere.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 31 mins ago

























                  answered Oct 23 '14 at 6:26









                  JoeJoe

                  1,209822




                  1,209822























                      1














                      Probably you can grab the scancodes of the keys and assign the shortcuts manually. The article below lists some utilities that might help:
                      http://tuxdiary.com/2014/03/07/get-scancode-for-keys-on-ubuntu/






                      share|improve this answer




























                        1














                        Probably you can grab the scancodes of the keys and assign the shortcuts manually. The article below lists some utilities that might help:
                        http://tuxdiary.com/2014/03/07/get-scancode-for-keys-on-ubuntu/






                        share|improve this answer


























                          1












                          1








                          1







                          Probably you can grab the scancodes of the keys and assign the shortcuts manually. The article below lists some utilities that might help:
                          http://tuxdiary.com/2014/03/07/get-scancode-for-keys-on-ubuntu/






                          share|improve this answer













                          Probably you can grab the scancodes of the keys and assign the shortcuts manually. The article below lists some utilities that might help:
                          http://tuxdiary.com/2014/03/07/get-scancode-for-keys-on-ubuntu/







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Oct 18 '14 at 16:56









                          ArunArun

                          712




                          712






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f538017%2fcreate-custom-keyboard-shortcut-to-send-super2%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                              Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                              Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...