How do I auto-hide the Ubuntu Dock using gsettings on Ubuntu 17.10 and later?





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







2















In Ubuntu 17.04 with Unity I could auto-hide the launcher using this command:



dconf write "/org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode" 1


But this does not work in Ubuntu 17.10 with GNOME 3. Now the "launcher" has become the "dock" also.



Note: I can do it from the Settings menu: Settings->Dock and click the toggle button for "Auto-hide the Dock" to "On", this is fine, but I am interesting in a scripting solution using e.g., gsettings, such that this feature can be turned on automatically when I install a new Ubuntu machine.










share|improve this question































    2















    In Ubuntu 17.04 with Unity I could auto-hide the launcher using this command:



    dconf write "/org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode" 1


    But this does not work in Ubuntu 17.10 with GNOME 3. Now the "launcher" has become the "dock" also.



    Note: I can do it from the Settings menu: Settings->Dock and click the toggle button for "Auto-hide the Dock" to "On", this is fine, but I am interesting in a scripting solution using e.g., gsettings, such that this feature can be turned on automatically when I install a new Ubuntu machine.










    share|improve this question



























      2












      2








      2


      1






      In Ubuntu 17.04 with Unity I could auto-hide the launcher using this command:



      dconf write "/org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode" 1


      But this does not work in Ubuntu 17.10 with GNOME 3. Now the "launcher" has become the "dock" also.



      Note: I can do it from the Settings menu: Settings->Dock and click the toggle button for "Auto-hide the Dock" to "On", this is fine, but I am interesting in a scripting solution using e.g., gsettings, such that this feature can be turned on automatically when I install a new Ubuntu machine.










      share|improve this question
















      In Ubuntu 17.04 with Unity I could auto-hide the launcher using this command:



      dconf write "/org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode" 1


      But this does not work in Ubuntu 17.10 with GNOME 3. Now the "launcher" has become the "dock" also.



      Note: I can do it from the Settings menu: Settings->Dock and click the toggle button for "Auto-hide the Dock" to "On", this is fine, but I am interesting in a scripting solution using e.g., gsettings, such that this feature can be turned on automatically when I install a new Ubuntu machine.







      gnome-shell ubuntu-dock dock gsettings autohide






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 21 at 18:46









      pomsky

      33.2k11104135




      33.2k11104135










      asked Feb 12 '18 at 14:01









      Håkon HæglandHåkon Hægland

      1,45142048




      1,45142048






















          1 Answer
          1






          active

          oldest

          votes


















          5














          Open Terminal and run



          gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed false


          Then run



          gsettings set org.gnome.shell.extensions.dash-to-dock autohide true


          Also you can toggle "intellihide" (dock dodges windows) on/off by



          gsettings set org.gnome.shell.extensions.dash-to-dock intellihide true/false


          and set the intellihide mode by



          gsettings set org.gnome.shell.extensions.dash-to-dock intellihide-mode 'OPTION'


          To get the available intellihide-mode options run



          gsettings range org.gnome.shell.extensions.dash-to-dock intellihide-mode





          share|improve this answer


























          • Thanks for the suggestion, but it seems it does not work. If I first switch auto-hide off from the System settings, then run gsettings set org.gnome.shell.extensions.dash-to-dock autohide true the dock does not hide.

            – Håkon Hægland
            Feb 12 '18 at 14:40











          • Ok, I turned off "intellihide": gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false. Then I restarted my machine, and then checked that the settings for "autohide" was still there: gsettings get org.gnome.shell.extensions.dash-to-dock autohide --> true. But the launcher still does not auto-hide. (Using, the system settings menu still enables me to make it auto-hide, though)

            – Håkon Hægland
            Feb 12 '18 at 15:07













          • I am also using Xorg session

            – Håkon Hægland
            Feb 12 '18 at 15:12






          • 1





            @HåkonHægland I would not recommend editing system files, but as other methods are not working for you, as a last resort you may try overriding glib schemas. Run (as root) echo autohide=true >> /usr/share/glib-2.0/schemas/10_ubuntu-dock.gschema.override and then recompile it by glib-compile-schemas /usr/share/glib-2.0/schemas/.

            – pomsky
            Feb 12 '18 at 16:02






          • 1





            @HåkonHægland Sorry, I missed one command, now added as the first command. Could you please check now?

            – pomsky
            May 3 '18 at 1:55














          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%2f1005470%2fhow-do-i-auto-hide-the-ubuntu-dock-using-gsettings-on-ubuntu-17-10-and-later%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









          5














          Open Terminal and run



          gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed false


          Then run



          gsettings set org.gnome.shell.extensions.dash-to-dock autohide true


          Also you can toggle "intellihide" (dock dodges windows) on/off by



          gsettings set org.gnome.shell.extensions.dash-to-dock intellihide true/false


          and set the intellihide mode by



          gsettings set org.gnome.shell.extensions.dash-to-dock intellihide-mode 'OPTION'


          To get the available intellihide-mode options run



          gsettings range org.gnome.shell.extensions.dash-to-dock intellihide-mode





          share|improve this answer


























          • Thanks for the suggestion, but it seems it does not work. If I first switch auto-hide off from the System settings, then run gsettings set org.gnome.shell.extensions.dash-to-dock autohide true the dock does not hide.

            – Håkon Hægland
            Feb 12 '18 at 14:40











          • Ok, I turned off "intellihide": gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false. Then I restarted my machine, and then checked that the settings for "autohide" was still there: gsettings get org.gnome.shell.extensions.dash-to-dock autohide --> true. But the launcher still does not auto-hide. (Using, the system settings menu still enables me to make it auto-hide, though)

            – Håkon Hægland
            Feb 12 '18 at 15:07













          • I am also using Xorg session

            – Håkon Hægland
            Feb 12 '18 at 15:12






          • 1





            @HåkonHægland I would not recommend editing system files, but as other methods are not working for you, as a last resort you may try overriding glib schemas. Run (as root) echo autohide=true >> /usr/share/glib-2.0/schemas/10_ubuntu-dock.gschema.override and then recompile it by glib-compile-schemas /usr/share/glib-2.0/schemas/.

            – pomsky
            Feb 12 '18 at 16:02






          • 1





            @HåkonHægland Sorry, I missed one command, now added as the first command. Could you please check now?

            – pomsky
            May 3 '18 at 1:55


















          5














          Open Terminal and run



          gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed false


          Then run



          gsettings set org.gnome.shell.extensions.dash-to-dock autohide true


          Also you can toggle "intellihide" (dock dodges windows) on/off by



          gsettings set org.gnome.shell.extensions.dash-to-dock intellihide true/false


          and set the intellihide mode by



          gsettings set org.gnome.shell.extensions.dash-to-dock intellihide-mode 'OPTION'


          To get the available intellihide-mode options run



          gsettings range org.gnome.shell.extensions.dash-to-dock intellihide-mode





          share|improve this answer


























          • Thanks for the suggestion, but it seems it does not work. If I first switch auto-hide off from the System settings, then run gsettings set org.gnome.shell.extensions.dash-to-dock autohide true the dock does not hide.

            – Håkon Hægland
            Feb 12 '18 at 14:40











          • Ok, I turned off "intellihide": gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false. Then I restarted my machine, and then checked that the settings for "autohide" was still there: gsettings get org.gnome.shell.extensions.dash-to-dock autohide --> true. But the launcher still does not auto-hide. (Using, the system settings menu still enables me to make it auto-hide, though)

            – Håkon Hægland
            Feb 12 '18 at 15:07













          • I am also using Xorg session

            – Håkon Hægland
            Feb 12 '18 at 15:12






          • 1





            @HåkonHægland I would not recommend editing system files, but as other methods are not working for you, as a last resort you may try overriding glib schemas. Run (as root) echo autohide=true >> /usr/share/glib-2.0/schemas/10_ubuntu-dock.gschema.override and then recompile it by glib-compile-schemas /usr/share/glib-2.0/schemas/.

            – pomsky
            Feb 12 '18 at 16:02






          • 1





            @HåkonHægland Sorry, I missed one command, now added as the first command. Could you please check now?

            – pomsky
            May 3 '18 at 1:55
















          5












          5








          5







          Open Terminal and run



          gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed false


          Then run



          gsettings set org.gnome.shell.extensions.dash-to-dock autohide true


          Also you can toggle "intellihide" (dock dodges windows) on/off by



          gsettings set org.gnome.shell.extensions.dash-to-dock intellihide true/false


          and set the intellihide mode by



          gsettings set org.gnome.shell.extensions.dash-to-dock intellihide-mode 'OPTION'


          To get the available intellihide-mode options run



          gsettings range org.gnome.shell.extensions.dash-to-dock intellihide-mode





          share|improve this answer















          Open Terminal and run



          gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed false


          Then run



          gsettings set org.gnome.shell.extensions.dash-to-dock autohide true


          Also you can toggle "intellihide" (dock dodges windows) on/off by



          gsettings set org.gnome.shell.extensions.dash-to-dock intellihide true/false


          and set the intellihide mode by



          gsettings set org.gnome.shell.extensions.dash-to-dock intellihide-mode 'OPTION'


          To get the available intellihide-mode options run



          gsettings range org.gnome.shell.extensions.dash-to-dock intellihide-mode






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 3 '18 at 1:54

























          answered Feb 12 '18 at 14:13









          pomskypomsky

          33.2k11104135




          33.2k11104135













          • Thanks for the suggestion, but it seems it does not work. If I first switch auto-hide off from the System settings, then run gsettings set org.gnome.shell.extensions.dash-to-dock autohide true the dock does not hide.

            – Håkon Hægland
            Feb 12 '18 at 14:40











          • Ok, I turned off "intellihide": gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false. Then I restarted my machine, and then checked that the settings for "autohide" was still there: gsettings get org.gnome.shell.extensions.dash-to-dock autohide --> true. But the launcher still does not auto-hide. (Using, the system settings menu still enables me to make it auto-hide, though)

            – Håkon Hægland
            Feb 12 '18 at 15:07













          • I am also using Xorg session

            – Håkon Hægland
            Feb 12 '18 at 15:12






          • 1





            @HåkonHægland I would not recommend editing system files, but as other methods are not working for you, as a last resort you may try overriding glib schemas. Run (as root) echo autohide=true >> /usr/share/glib-2.0/schemas/10_ubuntu-dock.gschema.override and then recompile it by glib-compile-schemas /usr/share/glib-2.0/schemas/.

            – pomsky
            Feb 12 '18 at 16:02






          • 1





            @HåkonHægland Sorry, I missed one command, now added as the first command. Could you please check now?

            – pomsky
            May 3 '18 at 1:55





















          • Thanks for the suggestion, but it seems it does not work. If I first switch auto-hide off from the System settings, then run gsettings set org.gnome.shell.extensions.dash-to-dock autohide true the dock does not hide.

            – Håkon Hægland
            Feb 12 '18 at 14:40











          • Ok, I turned off "intellihide": gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false. Then I restarted my machine, and then checked that the settings for "autohide" was still there: gsettings get org.gnome.shell.extensions.dash-to-dock autohide --> true. But the launcher still does not auto-hide. (Using, the system settings menu still enables me to make it auto-hide, though)

            – Håkon Hægland
            Feb 12 '18 at 15:07













          • I am also using Xorg session

            – Håkon Hægland
            Feb 12 '18 at 15:12






          • 1





            @HåkonHægland I would not recommend editing system files, but as other methods are not working for you, as a last resort you may try overriding glib schemas. Run (as root) echo autohide=true >> /usr/share/glib-2.0/schemas/10_ubuntu-dock.gschema.override and then recompile it by glib-compile-schemas /usr/share/glib-2.0/schemas/.

            – pomsky
            Feb 12 '18 at 16:02






          • 1





            @HåkonHægland Sorry, I missed one command, now added as the first command. Could you please check now?

            – pomsky
            May 3 '18 at 1:55



















          Thanks for the suggestion, but it seems it does not work. If I first switch auto-hide off from the System settings, then run gsettings set org.gnome.shell.extensions.dash-to-dock autohide true the dock does not hide.

          – Håkon Hægland
          Feb 12 '18 at 14:40





          Thanks for the suggestion, but it seems it does not work. If I first switch auto-hide off from the System settings, then run gsettings set org.gnome.shell.extensions.dash-to-dock autohide true the dock does not hide.

          – Håkon Hægland
          Feb 12 '18 at 14:40













          Ok, I turned off "intellihide": gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false. Then I restarted my machine, and then checked that the settings for "autohide" was still there: gsettings get org.gnome.shell.extensions.dash-to-dock autohide --> true. But the launcher still does not auto-hide. (Using, the system settings menu still enables me to make it auto-hide, though)

          – Håkon Hægland
          Feb 12 '18 at 15:07







          Ok, I turned off "intellihide": gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false. Then I restarted my machine, and then checked that the settings for "autohide" was still there: gsettings get org.gnome.shell.extensions.dash-to-dock autohide --> true. But the launcher still does not auto-hide. (Using, the system settings menu still enables me to make it auto-hide, though)

          – Håkon Hægland
          Feb 12 '18 at 15:07















          I am also using Xorg session

          – Håkon Hægland
          Feb 12 '18 at 15:12





          I am also using Xorg session

          – Håkon Hægland
          Feb 12 '18 at 15:12




          1




          1





          @HåkonHægland I would not recommend editing system files, but as other methods are not working for you, as a last resort you may try overriding glib schemas. Run (as root) echo autohide=true >> /usr/share/glib-2.0/schemas/10_ubuntu-dock.gschema.override and then recompile it by glib-compile-schemas /usr/share/glib-2.0/schemas/.

          – pomsky
          Feb 12 '18 at 16:02





          @HåkonHægland I would not recommend editing system files, but as other methods are not working for you, as a last resort you may try overriding glib schemas. Run (as root) echo autohide=true >> /usr/share/glib-2.0/schemas/10_ubuntu-dock.gschema.override and then recompile it by glib-compile-schemas /usr/share/glib-2.0/schemas/.

          – pomsky
          Feb 12 '18 at 16:02




          1




          1





          @HåkonHægland Sorry, I missed one command, now added as the first command. Could you please check now?

          – pomsky
          May 3 '18 at 1:55







          @HåkonHægland Sorry, I missed one command, now added as the first command. Could you please check now?

          – pomsky
          May 3 '18 at 1:55




















          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%2f1005470%2fhow-do-i-auto-hide-the-ubuntu-dock-using-gsettings-on-ubuntu-17-10-and-later%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

          數位音樂下載

          格利澤436b

          When can things happen in Etherscan, such as the picture below?