Keyboard shortcuts don't work on Ubuntu 18.04 with Unity











up vote
1
down vote

favorite












I have installed Ubuntu 18.04 with Unity using the mini ISO. So I don't have GNOME installed with Unity. My problem is that keyboard shortcuts (e.g., launching Terminal or switching between keyboard layouts) don't work. Searching online, some have suggested to add sleep 2 before launching compiz in /usr/lib/systemd/user/unity7.service. This worked once but after I rebooted it didn't work anymore. Others have suggested to toggle Commands in CompizConfig Settings Manager. This works but I have to redo it every time I log out. Is there any permanent solution to this? This is really irritating.



Update:
Apparently, this is a bug according to this link.










share|improve this question




























    up vote
    1
    down vote

    favorite












    I have installed Ubuntu 18.04 with Unity using the mini ISO. So I don't have GNOME installed with Unity. My problem is that keyboard shortcuts (e.g., launching Terminal or switching between keyboard layouts) don't work. Searching online, some have suggested to add sleep 2 before launching compiz in /usr/lib/systemd/user/unity7.service. This worked once but after I rebooted it didn't work anymore. Others have suggested to toggle Commands in CompizConfig Settings Manager. This works but I have to redo it every time I log out. Is there any permanent solution to this? This is really irritating.



    Update:
    Apparently, this is a bug according to this link.










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have installed Ubuntu 18.04 with Unity using the mini ISO. So I don't have GNOME installed with Unity. My problem is that keyboard shortcuts (e.g., launching Terminal or switching between keyboard layouts) don't work. Searching online, some have suggested to add sleep 2 before launching compiz in /usr/lib/systemd/user/unity7.service. This worked once but after I rebooted it didn't work anymore. Others have suggested to toggle Commands in CompizConfig Settings Manager. This works but I have to redo it every time I log out. Is there any permanent solution to this? This is really irritating.



      Update:
      Apparently, this is a bug according to this link.










      share|improve this question















      I have installed Ubuntu 18.04 with Unity using the mini ISO. So I don't have GNOME installed with Unity. My problem is that keyboard shortcuts (e.g., launching Terminal or switching between keyboard layouts) don't work. Searching online, some have suggested to add sleep 2 before launching compiz in /usr/lib/systemd/user/unity7.service. This worked once but after I rebooted it didn't work anymore. Others have suggested to toggle Commands in CompizConfig Settings Manager. This works but I have to redo it every time I log out. Is there any permanent solution to this? This is really irritating.



      Update:
      Apparently, this is a bug according to this link.







      unity keyboard shortcut-keys compiz keyboard-layout






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 12 at 17:37

























      asked Oct 5 at 17:29









      smz

      214




      214






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Edit / tldr:



          This ppa fixes this bug:



          sudo add-apt-repository ppa:unity7maintainers/unity7-desktop
          sudo apt-get update
          reboot




          The following script toggles the commands plugin automatically:



          #!/bin/bash
          export DISPLAY=:0
          activeplugins=$(dconf read /org/compiz/profiles/unity/plugins/core/active-plugins)
          found=$(echo "$activeplugins" | grep commands)
          echo "$found"
          if [ -z "$found" ] ; then
          activeplugins=$(echo "$activeplugins" | sed -r "s/animation', /animation', 'commands', /")
          else
          activeplugins=$(echo "$activeplugins" | sed -r "s/'commands', //" | sed -r "s/, 'commands'//")
          fi
          echo "$activeplugins"
          dconf write /org/compiz/profiles/unity/plugins/core/active-plugins "$activeplugins"


          You can add this script to your startup applications to execute it automatically at login. However if you lock your screen then unlock it, your custom keyboard shortcuts won't work again.



          To fix this you must listen for lock/unlock events as described here and add this script into the unlock section of that script, eg after echo "Screen unlocked"



          Also note that the order of the active plugins is important: I inserted the 'commands' plugin after 'animation' which was enabled for me. If 'animation' is not enabled for you, then it must be inserted after the first active plugin when 'commands' is in its usual position.






          share|improve this answer























          • I've switched back to 16.04, so I cannot check and see if adding the ppa works. But thanks anyways! Hopefully, it'll help others with the same problem.
            – smz
            5 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',
          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%2f1081241%2fkeyboard-shortcuts-dont-work-on-ubuntu-18-04-with-unity%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
          1
          down vote













          Edit / tldr:



          This ppa fixes this bug:



          sudo add-apt-repository ppa:unity7maintainers/unity7-desktop
          sudo apt-get update
          reboot




          The following script toggles the commands plugin automatically:



          #!/bin/bash
          export DISPLAY=:0
          activeplugins=$(dconf read /org/compiz/profiles/unity/plugins/core/active-plugins)
          found=$(echo "$activeplugins" | grep commands)
          echo "$found"
          if [ -z "$found" ] ; then
          activeplugins=$(echo "$activeplugins" | sed -r "s/animation', /animation', 'commands', /")
          else
          activeplugins=$(echo "$activeplugins" | sed -r "s/'commands', //" | sed -r "s/, 'commands'//")
          fi
          echo "$activeplugins"
          dconf write /org/compiz/profiles/unity/plugins/core/active-plugins "$activeplugins"


          You can add this script to your startup applications to execute it automatically at login. However if you lock your screen then unlock it, your custom keyboard shortcuts won't work again.



          To fix this you must listen for lock/unlock events as described here and add this script into the unlock section of that script, eg after echo "Screen unlocked"



          Also note that the order of the active plugins is important: I inserted the 'commands' plugin after 'animation' which was enabled for me. If 'animation' is not enabled for you, then it must be inserted after the first active plugin when 'commands' is in its usual position.






          share|improve this answer























          • I've switched back to 16.04, so I cannot check and see if adding the ppa works. But thanks anyways! Hopefully, it'll help others with the same problem.
            – smz
            5 hours ago

















          up vote
          1
          down vote













          Edit / tldr:



          This ppa fixes this bug:



          sudo add-apt-repository ppa:unity7maintainers/unity7-desktop
          sudo apt-get update
          reboot




          The following script toggles the commands plugin automatically:



          #!/bin/bash
          export DISPLAY=:0
          activeplugins=$(dconf read /org/compiz/profiles/unity/plugins/core/active-plugins)
          found=$(echo "$activeplugins" | grep commands)
          echo "$found"
          if [ -z "$found" ] ; then
          activeplugins=$(echo "$activeplugins" | sed -r "s/animation', /animation', 'commands', /")
          else
          activeplugins=$(echo "$activeplugins" | sed -r "s/'commands', //" | sed -r "s/, 'commands'//")
          fi
          echo "$activeplugins"
          dconf write /org/compiz/profiles/unity/plugins/core/active-plugins "$activeplugins"


          You can add this script to your startup applications to execute it automatically at login. However if you lock your screen then unlock it, your custom keyboard shortcuts won't work again.



          To fix this you must listen for lock/unlock events as described here and add this script into the unlock section of that script, eg after echo "Screen unlocked"



          Also note that the order of the active plugins is important: I inserted the 'commands' plugin after 'animation' which was enabled for me. If 'animation' is not enabled for you, then it must be inserted after the first active plugin when 'commands' is in its usual position.






          share|improve this answer























          • I've switched back to 16.04, so I cannot check and see if adding the ppa works. But thanks anyways! Hopefully, it'll help others with the same problem.
            – smz
            5 hours ago















          up vote
          1
          down vote










          up vote
          1
          down vote









          Edit / tldr:



          This ppa fixes this bug:



          sudo add-apt-repository ppa:unity7maintainers/unity7-desktop
          sudo apt-get update
          reboot




          The following script toggles the commands plugin automatically:



          #!/bin/bash
          export DISPLAY=:0
          activeplugins=$(dconf read /org/compiz/profiles/unity/plugins/core/active-plugins)
          found=$(echo "$activeplugins" | grep commands)
          echo "$found"
          if [ -z "$found" ] ; then
          activeplugins=$(echo "$activeplugins" | sed -r "s/animation', /animation', 'commands', /")
          else
          activeplugins=$(echo "$activeplugins" | sed -r "s/'commands', //" | sed -r "s/, 'commands'//")
          fi
          echo "$activeplugins"
          dconf write /org/compiz/profiles/unity/plugins/core/active-plugins "$activeplugins"


          You can add this script to your startup applications to execute it automatically at login. However if you lock your screen then unlock it, your custom keyboard shortcuts won't work again.



          To fix this you must listen for lock/unlock events as described here and add this script into the unlock section of that script, eg after echo "Screen unlocked"



          Also note that the order of the active plugins is important: I inserted the 'commands' plugin after 'animation' which was enabled for me. If 'animation' is not enabled for you, then it must be inserted after the first active plugin when 'commands' is in its usual position.






          share|improve this answer














          Edit / tldr:



          This ppa fixes this bug:



          sudo add-apt-repository ppa:unity7maintainers/unity7-desktop
          sudo apt-get update
          reboot




          The following script toggles the commands plugin automatically:



          #!/bin/bash
          export DISPLAY=:0
          activeplugins=$(dconf read /org/compiz/profiles/unity/plugins/core/active-plugins)
          found=$(echo "$activeplugins" | grep commands)
          echo "$found"
          if [ -z "$found" ] ; then
          activeplugins=$(echo "$activeplugins" | sed -r "s/animation', /animation', 'commands', /")
          else
          activeplugins=$(echo "$activeplugins" | sed -r "s/'commands', //" | sed -r "s/, 'commands'//")
          fi
          echo "$activeplugins"
          dconf write /org/compiz/profiles/unity/plugins/core/active-plugins "$activeplugins"


          You can add this script to your startup applications to execute it automatically at login. However if you lock your screen then unlock it, your custom keyboard shortcuts won't work again.



          To fix this you must listen for lock/unlock events as described here and add this script into the unlock section of that script, eg after echo "Screen unlocked"



          Also note that the order of the active plugins is important: I inserted the 'commands' plugin after 'animation' which was enabled for me. If 'animation' is not enabled for you, then it must be inserted after the first active plugin when 'commands' is in its usual position.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 15 at 10:07

























          answered Oct 9 at 7:22









          1mi

          1014




          1014












          • I've switched back to 16.04, so I cannot check and see if adding the ppa works. But thanks anyways! Hopefully, it'll help others with the same problem.
            – smz
            5 hours ago




















          • I've switched back to 16.04, so I cannot check and see if adding the ppa works. But thanks anyways! Hopefully, it'll help others with the same problem.
            – smz
            5 hours ago


















          I've switched back to 16.04, so I cannot check and see if adding the ppa works. But thanks anyways! Hopefully, it'll help others with the same problem.
          – smz
          5 hours ago






          I've switched back to 16.04, so I cannot check and see if adding the ppa works. But thanks anyways! Hopefully, it'll help others with the same problem.
          – smz
          5 hours ago




















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1081241%2fkeyboard-shortcuts-dont-work-on-ubuntu-18-04-with-unity%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