How to Retrieve an Iconized Program from the Tray with a Keyboard shortcut





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







0















I know that many here don't love Electron, but it's here to stay, as many commercial solution providers are using to package the web applications and make them act/feel like desktop apps and have them work cross-platform. I use multiple messaging platforms for work (e.g. Slack, WhatsApp, PulseSMS, etc..). In the case of Slack, their desktop app is Electron-based. I have been using Franz as a means of corraling all of these into a single app that sits in my tray. Franz works well.



Something changed regarding Electron (and the resultant implementations by the messaging providers) whereby the app (whether Slack itself, or Slack via Franz) requires multiple clicks to retrieve from the tray, with no keyboard shortcut available to wake it up and bring it into focus. I suppose that this is not real big deal, but I do find it annoying. There is some discussion in Franz' Git repo of regressing to an earlier version, but it seems that something like wmctrl or similar might be able to do this, but I don't know how.



I am wondering if anyone can advise on a way of reducing the clicks and also assigning a keyboard shortcut that streamlines this:



Right now, I click on the Franz icon (or if Slack outside of Franz, Slack), which reveals "Show Franz." Then click



enter image description here










share|improve this question





























    0















    I know that many here don't love Electron, but it's here to stay, as many commercial solution providers are using to package the web applications and make them act/feel like desktop apps and have them work cross-platform. I use multiple messaging platforms for work (e.g. Slack, WhatsApp, PulseSMS, etc..). In the case of Slack, their desktop app is Electron-based. I have been using Franz as a means of corraling all of these into a single app that sits in my tray. Franz works well.



    Something changed regarding Electron (and the resultant implementations by the messaging providers) whereby the app (whether Slack itself, or Slack via Franz) requires multiple clicks to retrieve from the tray, with no keyboard shortcut available to wake it up and bring it into focus. I suppose that this is not real big deal, but I do find it annoying. There is some discussion in Franz' Git repo of regressing to an earlier version, but it seems that something like wmctrl or similar might be able to do this, but I don't know how.



    I am wondering if anyone can advise on a way of reducing the clicks and also assigning a keyboard shortcut that streamlines this:



    Right now, I click on the Franz icon (or if Slack outside of Franz, Slack), which reveals "Show Franz." Then click



    enter image description here










    share|improve this question

























      0












      0








      0








      I know that many here don't love Electron, but it's here to stay, as many commercial solution providers are using to package the web applications and make them act/feel like desktop apps and have them work cross-platform. I use multiple messaging platforms for work (e.g. Slack, WhatsApp, PulseSMS, etc..). In the case of Slack, their desktop app is Electron-based. I have been using Franz as a means of corraling all of these into a single app that sits in my tray. Franz works well.



      Something changed regarding Electron (and the resultant implementations by the messaging providers) whereby the app (whether Slack itself, or Slack via Franz) requires multiple clicks to retrieve from the tray, with no keyboard shortcut available to wake it up and bring it into focus. I suppose that this is not real big deal, but I do find it annoying. There is some discussion in Franz' Git repo of regressing to an earlier version, but it seems that something like wmctrl or similar might be able to do this, but I don't know how.



      I am wondering if anyone can advise on a way of reducing the clicks and also assigning a keyboard shortcut that streamlines this:



      Right now, I click on the Franz icon (or if Slack outside of Franz, Slack), which reveals "Show Franz." Then click



      enter image description here










      share|improve this question














      I know that many here don't love Electron, but it's here to stay, as many commercial solution providers are using to package the web applications and make them act/feel like desktop apps and have them work cross-platform. I use multiple messaging platforms for work (e.g. Slack, WhatsApp, PulseSMS, etc..). In the case of Slack, their desktop app is Electron-based. I have been using Franz as a means of corraling all of these into a single app that sits in my tray. Franz works well.



      Something changed regarding Electron (and the resultant implementations by the messaging providers) whereby the app (whether Slack itself, or Slack via Franz) requires multiple clicks to retrieve from the tray, with no keyboard shortcut available to wake it up and bring it into focus. I suppose that this is not real big deal, but I do find it annoying. There is some discussion in Franz' Git repo of regressing to an earlier version, but it seems that something like wmctrl or similar might be able to do this, but I don't know how.



      I am wondering if anyone can advise on a way of reducing the clicks and also assigning a keyboard shortcut that streamlines this:



      Right now, I click on the Franz icon (or if Slack outside of Franz, Slack), which reveals "Show Franz." Then click



      enter image description here







      keyboard shortcut-keys system-tray wmctrl electron






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      KendorKendor

      2,85163853




      2,85163853






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Workaround



          If the position of the Icon on Dash is fixed, you can do this with xdotool



          for example:

          I am using Dash-to-Panel extension. I have gnome-tweaks fixed in my Dash at position 4.

          So it can be opened with Super+4 Key Press.



          I can achieve this key pressings automation with xdotool with command xdotool key Super_L+4



          enter image description here



          like this you can make your 1st clik either with mouse location to already known position of your Icon on Dash or with shortcut keys like Super+4



          Ok, I have successfully opened gnome-tweaks now I need to close the window automatically, i need a mouse movement and mouse click.



          so the command I used is xdotool key Super_L+4 mousemove 1112 57 sleep 5 click 1



          enter image description here



          I guess your Icon Position and "Show Franz" Position are fixed.
          first get the mouse positions and then create a shortcut to run xdotool command.



          enter image description here



          Downside: Based on trails, xdotool sleep 1 or may be lower values are required while creating a custom shortcut.






          share|improve this answer
























          • I'm using Cinnamon, but your approach seems like it would work except for the issue that I think I need two clicks to launch 1) Click on tray icon x:2239 y: 1416 2) Select the Show Franz option x:2239 y:1343

            – Kendor
            12 hours ago











          • so did you run from terminal xdotool mousemove 2239 1416 click 1 sleep 1 mousemove 2239 1343 click 1? i think you need to trail and see by adding sleep values.. this sleep value is a downside but better than physical hand movement click and time.

            – PRATAP
            10 hours ago











          • Love it. It worked; however, the issue is going to be that the location of that tray icon seems to fluctuate. Also, if I change resolutions or displays the coordinates will be off.

            – Kendor
            7 hours ago












          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%2f1133063%2fhow-to-retrieve-an-iconized-program-from-the-tray-with-a-keyboard-shortcut%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Workaround



          If the position of the Icon on Dash is fixed, you can do this with xdotool



          for example:

          I am using Dash-to-Panel extension. I have gnome-tweaks fixed in my Dash at position 4.

          So it can be opened with Super+4 Key Press.



          I can achieve this key pressings automation with xdotool with command xdotool key Super_L+4



          enter image description here



          like this you can make your 1st clik either with mouse location to already known position of your Icon on Dash or with shortcut keys like Super+4



          Ok, I have successfully opened gnome-tweaks now I need to close the window automatically, i need a mouse movement and mouse click.



          so the command I used is xdotool key Super_L+4 mousemove 1112 57 sleep 5 click 1



          enter image description here



          I guess your Icon Position and "Show Franz" Position are fixed.
          first get the mouse positions and then create a shortcut to run xdotool command.



          enter image description here



          Downside: Based on trails, xdotool sleep 1 or may be lower values are required while creating a custom shortcut.






          share|improve this answer
























          • I'm using Cinnamon, but your approach seems like it would work except for the issue that I think I need two clicks to launch 1) Click on tray icon x:2239 y: 1416 2) Select the Show Franz option x:2239 y:1343

            – Kendor
            12 hours ago











          • so did you run from terminal xdotool mousemove 2239 1416 click 1 sleep 1 mousemove 2239 1343 click 1? i think you need to trail and see by adding sleep values.. this sleep value is a downside but better than physical hand movement click and time.

            – PRATAP
            10 hours ago











          • Love it. It worked; however, the issue is going to be that the location of that tray icon seems to fluctuate. Also, if I change resolutions or displays the coordinates will be off.

            – Kendor
            7 hours ago
















          0














          Workaround



          If the position of the Icon on Dash is fixed, you can do this with xdotool



          for example:

          I am using Dash-to-Panel extension. I have gnome-tweaks fixed in my Dash at position 4.

          So it can be opened with Super+4 Key Press.



          I can achieve this key pressings automation with xdotool with command xdotool key Super_L+4



          enter image description here



          like this you can make your 1st clik either with mouse location to already known position of your Icon on Dash or with shortcut keys like Super+4



          Ok, I have successfully opened gnome-tweaks now I need to close the window automatically, i need a mouse movement and mouse click.



          so the command I used is xdotool key Super_L+4 mousemove 1112 57 sleep 5 click 1



          enter image description here



          I guess your Icon Position and "Show Franz" Position are fixed.
          first get the mouse positions and then create a shortcut to run xdotool command.



          enter image description here



          Downside: Based on trails, xdotool sleep 1 or may be lower values are required while creating a custom shortcut.






          share|improve this answer
























          • I'm using Cinnamon, but your approach seems like it would work except for the issue that I think I need two clicks to launch 1) Click on tray icon x:2239 y: 1416 2) Select the Show Franz option x:2239 y:1343

            – Kendor
            12 hours ago











          • so did you run from terminal xdotool mousemove 2239 1416 click 1 sleep 1 mousemove 2239 1343 click 1? i think you need to trail and see by adding sleep values.. this sleep value is a downside but better than physical hand movement click and time.

            – PRATAP
            10 hours ago











          • Love it. It worked; however, the issue is going to be that the location of that tray icon seems to fluctuate. Also, if I change resolutions or displays the coordinates will be off.

            – Kendor
            7 hours ago














          0












          0








          0







          Workaround



          If the position of the Icon on Dash is fixed, you can do this with xdotool



          for example:

          I am using Dash-to-Panel extension. I have gnome-tweaks fixed in my Dash at position 4.

          So it can be opened with Super+4 Key Press.



          I can achieve this key pressings automation with xdotool with command xdotool key Super_L+4



          enter image description here



          like this you can make your 1st clik either with mouse location to already known position of your Icon on Dash or with shortcut keys like Super+4



          Ok, I have successfully opened gnome-tweaks now I need to close the window automatically, i need a mouse movement and mouse click.



          so the command I used is xdotool key Super_L+4 mousemove 1112 57 sleep 5 click 1



          enter image description here



          I guess your Icon Position and "Show Franz" Position are fixed.
          first get the mouse positions and then create a shortcut to run xdotool command.



          enter image description here



          Downside: Based on trails, xdotool sleep 1 or may be lower values are required while creating a custom shortcut.






          share|improve this answer













          Workaround



          If the position of the Icon on Dash is fixed, you can do this with xdotool



          for example:

          I am using Dash-to-Panel extension. I have gnome-tweaks fixed in my Dash at position 4.

          So it can be opened with Super+4 Key Press.



          I can achieve this key pressings automation with xdotool with command xdotool key Super_L+4



          enter image description here



          like this you can make your 1st clik either with mouse location to already known position of your Icon on Dash or with shortcut keys like Super+4



          Ok, I have successfully opened gnome-tweaks now I need to close the window automatically, i need a mouse movement and mouse click.



          so the command I used is xdotool key Super_L+4 mousemove 1112 57 sleep 5 click 1



          enter image description here



          I guess your Icon Position and "Show Franz" Position are fixed.
          first get the mouse positions and then create a shortcut to run xdotool command.



          enter image description here



          Downside: Based on trails, xdotool sleep 1 or may be lower values are required while creating a custom shortcut.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          PRATAPPRATAP

          3,4552932




          3,4552932













          • I'm using Cinnamon, but your approach seems like it would work except for the issue that I think I need two clicks to launch 1) Click on tray icon x:2239 y: 1416 2) Select the Show Franz option x:2239 y:1343

            – Kendor
            12 hours ago











          • so did you run from terminal xdotool mousemove 2239 1416 click 1 sleep 1 mousemove 2239 1343 click 1? i think you need to trail and see by adding sleep values.. this sleep value is a downside but better than physical hand movement click and time.

            – PRATAP
            10 hours ago











          • Love it. It worked; however, the issue is going to be that the location of that tray icon seems to fluctuate. Also, if I change resolutions or displays the coordinates will be off.

            – Kendor
            7 hours ago



















          • I'm using Cinnamon, but your approach seems like it would work except for the issue that I think I need two clicks to launch 1) Click on tray icon x:2239 y: 1416 2) Select the Show Franz option x:2239 y:1343

            – Kendor
            12 hours ago











          • so did you run from terminal xdotool mousemove 2239 1416 click 1 sleep 1 mousemove 2239 1343 click 1? i think you need to trail and see by adding sleep values.. this sleep value is a downside but better than physical hand movement click and time.

            – PRATAP
            10 hours ago











          • Love it. It worked; however, the issue is going to be that the location of that tray icon seems to fluctuate. Also, if I change resolutions or displays the coordinates will be off.

            – Kendor
            7 hours ago

















          I'm using Cinnamon, but your approach seems like it would work except for the issue that I think I need two clicks to launch 1) Click on tray icon x:2239 y: 1416 2) Select the Show Franz option x:2239 y:1343

          – Kendor
          12 hours ago





          I'm using Cinnamon, but your approach seems like it would work except for the issue that I think I need two clicks to launch 1) Click on tray icon x:2239 y: 1416 2) Select the Show Franz option x:2239 y:1343

          – Kendor
          12 hours ago













          so did you run from terminal xdotool mousemove 2239 1416 click 1 sleep 1 mousemove 2239 1343 click 1? i think you need to trail and see by adding sleep values.. this sleep value is a downside but better than physical hand movement click and time.

          – PRATAP
          10 hours ago





          so did you run from terminal xdotool mousemove 2239 1416 click 1 sleep 1 mousemove 2239 1343 click 1? i think you need to trail and see by adding sleep values.. this sleep value is a downside but better than physical hand movement click and time.

          – PRATAP
          10 hours ago













          Love it. It worked; however, the issue is going to be that the location of that tray icon seems to fluctuate. Also, if I change resolutions or displays the coordinates will be off.

          – Kendor
          7 hours ago





          Love it. It worked; however, the issue is going to be that the location of that tray icon seems to fluctuate. Also, if I change resolutions or displays the coordinates will be off.

          – Kendor
          7 hours ago


















          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%2f1133063%2fhow-to-retrieve-an-iconized-program-from-the-tray-with-a-keyboard-shortcut%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

          GameSpot

          connect to host localhost port 22: Connection refused

          Getting a Wifi WPA2 wifi connection