In moving from 16.04 to 18.04, how can this custom shortcut be made to work?











up vote
0
down vote

favorite












On Ubuntu 16.04 LTS, I have a custom shortcut set that features the following command:



bash -c "xvkbd -text $(date "+%Y-%m-%dT%H%MZ" --utc) 2>/dev/null"


On 16.04, this outputs "typed" text like "2018-11-21T1702Z" when I press a key combination like Shift+Ctrl+d which is really useful for my work and I use it about once per minute, to maybe name a file or enter some timestamp in a file, that sort of thing. The point is that I use it so much that I can't easily live without it.



Now when I try to set up the same thing on 18.04, when I press the relevant shortcut keys, while I expect to get output like "2018-1-21T1703Z", I get output that is just "--TZ".



So, it is certainly trying, but getting screwed up in some way. I have confirmed via $XDG_SESSION_TYPE that I am running the X server and I have also confirmed that xvkbd is installed, so I am confused.



Would anyone have any ideas about what is going wrong?










share|improve this question




























    up vote
    0
    down vote

    favorite












    On Ubuntu 16.04 LTS, I have a custom shortcut set that features the following command:



    bash -c "xvkbd -text $(date "+%Y-%m-%dT%H%MZ" --utc) 2>/dev/null"


    On 16.04, this outputs "typed" text like "2018-11-21T1702Z" when I press a key combination like Shift+Ctrl+d which is really useful for my work and I use it about once per minute, to maybe name a file or enter some timestamp in a file, that sort of thing. The point is that I use it so much that I can't easily live without it.



    Now when I try to set up the same thing on 18.04, when I press the relevant shortcut keys, while I expect to get output like "2018-1-21T1703Z", I get output that is just "--TZ".



    So, it is certainly trying, but getting screwed up in some way. I have confirmed via $XDG_SESSION_TYPE that I am running the X server and I have also confirmed that xvkbd is installed, so I am confused.



    Would anyone have any ideas about what is going wrong?










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      On Ubuntu 16.04 LTS, I have a custom shortcut set that features the following command:



      bash -c "xvkbd -text $(date "+%Y-%m-%dT%H%MZ" --utc) 2>/dev/null"


      On 16.04, this outputs "typed" text like "2018-11-21T1702Z" when I press a key combination like Shift+Ctrl+d which is really useful for my work and I use it about once per minute, to maybe name a file or enter some timestamp in a file, that sort of thing. The point is that I use it so much that I can't easily live without it.



      Now when I try to set up the same thing on 18.04, when I press the relevant shortcut keys, while I expect to get output like "2018-1-21T1703Z", I get output that is just "--TZ".



      So, it is certainly trying, but getting screwed up in some way. I have confirmed via $XDG_SESSION_TYPE that I am running the X server and I have also confirmed that xvkbd is installed, so I am confused.



      Would anyone have any ideas about what is going wrong?










      share|improve this question















      On Ubuntu 16.04 LTS, I have a custom shortcut set that features the following command:



      bash -c "xvkbd -text $(date "+%Y-%m-%dT%H%MZ" --utc) 2>/dev/null"


      On 16.04, this outputs "typed" text like "2018-11-21T1702Z" when I press a key combination like Shift+Ctrl+d which is really useful for my work and I use it about once per minute, to maybe name a file or enter some timestamp in a file, that sort of thing. The point is that I use it so much that I can't easily live without it.



      Now when I try to set up the same thing on 18.04, when I press the relevant shortcut keys, while I expect to get output like "2018-1-21T1703Z", I get output that is just "--TZ".



      So, it is certainly trying, but getting screwed up in some way. I have confirmed via $XDG_SESSION_TYPE that I am running the X server and I have also confirmed that xvkbd is installed, so I am confused.



      Would anyone have any ideas about what is going wrong?







      16.04 18.04 shortcut-keys xorg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 23 at 0:54

























      asked Nov 21 at 17:09









      BlandCorporation

      273414




      273414






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          It works, replace the wrong quotes:



          bash -c 'xvkbd -text $(date "+%Y-%m-%dT%H%MZ" --utc)'

          2018-11-21T1930Z





          share|improve this answer





















          • Hey there, thanks for your suggestion. I've tried using the exact code you suggested, but it is not working. Are you sure you have tried using it as a keyboard shortcut? So, specifically this command would be added as a keyboard shortcut that is activated by, say, Shift+Ctrl+d. When I do this I get only the --TZ output. Also, I don't see a reason why the quotes I used should be considered "wrong".
            – BlandCorporation
            Nov 23 at 0:52












          • Look close on question, there are nested double quotes " . No, I haven't try it as shortcut
            – LeonidMew
            Nov 23 at 1:23










          • Yes, I can see the quotation marks you have used. I am not aware of any reason why my version is wrong. Are you? But I think this is not the important issue. The issue is getting the command to work specifically as a keyboard shortcut on Ubuntu 18.04. Would you be willing to try that?
            – BlandCorporation
            Nov 23 at 2:20











          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',
          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%2f1094878%2fin-moving-from-16-04-to-18-04-how-can-this-custom-shortcut-be-made-to-work%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








          up vote
          0
          down vote













          It works, replace the wrong quotes:



          bash -c 'xvkbd -text $(date "+%Y-%m-%dT%H%MZ" --utc)'

          2018-11-21T1930Z





          share|improve this answer





















          • Hey there, thanks for your suggestion. I've tried using the exact code you suggested, but it is not working. Are you sure you have tried using it as a keyboard shortcut? So, specifically this command would be added as a keyboard shortcut that is activated by, say, Shift+Ctrl+d. When I do this I get only the --TZ output. Also, I don't see a reason why the quotes I used should be considered "wrong".
            – BlandCorporation
            Nov 23 at 0:52












          • Look close on question, there are nested double quotes " . No, I haven't try it as shortcut
            – LeonidMew
            Nov 23 at 1:23










          • Yes, I can see the quotation marks you have used. I am not aware of any reason why my version is wrong. Are you? But I think this is not the important issue. The issue is getting the command to work specifically as a keyboard shortcut on Ubuntu 18.04. Would you be willing to try that?
            – BlandCorporation
            Nov 23 at 2:20















          up vote
          0
          down vote













          It works, replace the wrong quotes:



          bash -c 'xvkbd -text $(date "+%Y-%m-%dT%H%MZ" --utc)'

          2018-11-21T1930Z





          share|improve this answer





















          • Hey there, thanks for your suggestion. I've tried using the exact code you suggested, but it is not working. Are you sure you have tried using it as a keyboard shortcut? So, specifically this command would be added as a keyboard shortcut that is activated by, say, Shift+Ctrl+d. When I do this I get only the --TZ output. Also, I don't see a reason why the quotes I used should be considered "wrong".
            – BlandCorporation
            Nov 23 at 0:52












          • Look close on question, there are nested double quotes " . No, I haven't try it as shortcut
            – LeonidMew
            Nov 23 at 1:23










          • Yes, I can see the quotation marks you have used. I am not aware of any reason why my version is wrong. Are you? But I think this is not the important issue. The issue is getting the command to work specifically as a keyboard shortcut on Ubuntu 18.04. Would you be willing to try that?
            – BlandCorporation
            Nov 23 at 2:20













          up vote
          0
          down vote










          up vote
          0
          down vote









          It works, replace the wrong quotes:



          bash -c 'xvkbd -text $(date "+%Y-%m-%dT%H%MZ" --utc)'

          2018-11-21T1930Z





          share|improve this answer












          It works, replace the wrong quotes:



          bash -c 'xvkbd -text $(date "+%Y-%m-%dT%H%MZ" --utc)'

          2018-11-21T1930Z






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 21 at 19:32









          LeonidMew

          385215




          385215












          • Hey there, thanks for your suggestion. I've tried using the exact code you suggested, but it is not working. Are you sure you have tried using it as a keyboard shortcut? So, specifically this command would be added as a keyboard shortcut that is activated by, say, Shift+Ctrl+d. When I do this I get only the --TZ output. Also, I don't see a reason why the quotes I used should be considered "wrong".
            – BlandCorporation
            Nov 23 at 0:52












          • Look close on question, there are nested double quotes " . No, I haven't try it as shortcut
            – LeonidMew
            Nov 23 at 1:23










          • Yes, I can see the quotation marks you have used. I am not aware of any reason why my version is wrong. Are you? But I think this is not the important issue. The issue is getting the command to work specifically as a keyboard shortcut on Ubuntu 18.04. Would you be willing to try that?
            – BlandCorporation
            Nov 23 at 2:20


















          • Hey there, thanks for your suggestion. I've tried using the exact code you suggested, but it is not working. Are you sure you have tried using it as a keyboard shortcut? So, specifically this command would be added as a keyboard shortcut that is activated by, say, Shift+Ctrl+d. When I do this I get only the --TZ output. Also, I don't see a reason why the quotes I used should be considered "wrong".
            – BlandCorporation
            Nov 23 at 0:52












          • Look close on question, there are nested double quotes " . No, I haven't try it as shortcut
            – LeonidMew
            Nov 23 at 1:23










          • Yes, I can see the quotation marks you have used. I am not aware of any reason why my version is wrong. Are you? But I think this is not the important issue. The issue is getting the command to work specifically as a keyboard shortcut on Ubuntu 18.04. Would you be willing to try that?
            – BlandCorporation
            Nov 23 at 2:20
















          Hey there, thanks for your suggestion. I've tried using the exact code you suggested, but it is not working. Are you sure you have tried using it as a keyboard shortcut? So, specifically this command would be added as a keyboard shortcut that is activated by, say, Shift+Ctrl+d. When I do this I get only the --TZ output. Also, I don't see a reason why the quotes I used should be considered "wrong".
          – BlandCorporation
          Nov 23 at 0:52






          Hey there, thanks for your suggestion. I've tried using the exact code you suggested, but it is not working. Are you sure you have tried using it as a keyboard shortcut? So, specifically this command would be added as a keyboard shortcut that is activated by, say, Shift+Ctrl+d. When I do this I get only the --TZ output. Also, I don't see a reason why the quotes I used should be considered "wrong".
          – BlandCorporation
          Nov 23 at 0:52














          Look close on question, there are nested double quotes " . No, I haven't try it as shortcut
          – LeonidMew
          Nov 23 at 1:23




          Look close on question, there are nested double quotes " . No, I haven't try it as shortcut
          – LeonidMew
          Nov 23 at 1:23












          Yes, I can see the quotation marks you have used. I am not aware of any reason why my version is wrong. Are you? But I think this is not the important issue. The issue is getting the command to work specifically as a keyboard shortcut on Ubuntu 18.04. Would you be willing to try that?
          – BlandCorporation
          Nov 23 at 2:20




          Yes, I can see the quotation marks you have used. I am not aware of any reason why my version is wrong. Are you? But I think this is not the important issue. The issue is getting the command to work specifically as a keyboard shortcut on Ubuntu 18.04. Would you be willing to try that?
          – BlandCorporation
          Nov 23 at 2:20


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094878%2fin-moving-from-16-04-to-18-04-how-can-this-custom-shortcut-be-made-to-work%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

          Quarter-circle Tiles

          build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

          Mont Emei