{"id":411,"date":"2011-04-24T11:54:08","date_gmt":"2011-04-24T10:54:08","guid":{"rendered":"http:\/\/katastrophos.net\/andre\/blog\/?p=411"},"modified":"2011-04-24T12:45:45","modified_gmt":"2011-04-24T11:45:45","slug":"disable-the-auto-hide-functionality-of-ubuntu-unity-2d","status":"publish","type":"post","link":"https:\/\/katastrophos.net\/andre\/blog\/2011\/04\/24\/disable-the-auto-hide-functionality-of-ubuntu-unity-2d\/","title":{"rendered":"Disable the auto-hide functionality of Ubuntu Unity 2D"},"content":{"rendered":"<p>The current version of Unity 2D that comes with Ubuntu 11.04 Beta 2 does not feature any sort of configuration panel and unfortunately there is no easy way to disable the auto-hide feature of the Unity 2D panel. Here is a short script that will give you an icon on your Unity panel to toggle (enable or disable) the auto-hide functionality:<\/p>\n<p>Copy the following script to<br \/>\n<em><strong>\/usr\/local\/bin\/unity-2d-toggle-autohide.sh<\/strong><\/em> :<\/p>\n<pre name=\"code\" class=\"bash:nocontrols\">\r\n#!\/bin\/sh\r\n\r\nif [ $(gconftool-2 --get \/desktop\/unity-2d\/launcher\/hide_mode) -eq 0 ]; then\r\n        autoHide=1\r\n        useStrut=false\r\nelse\r\n        autoHide=0\r\n        useStrut=true\r\nfi\r\n\r\ngconftool-2 --type=int --set \/desktop\/unity-2d\/launcher\/hide_mode $autoHide\r\ngconftool-2 --type=bool --set \/desktop\/unity-2d\/launcher\/use_strut $useStrut\r\n<\/pre>\n<p>Now create a menu entry for this helper script and save it as<br \/>\n<em><strong>\/usr\/share\/applications\/unity-2d-toggle-autohide.desktop<\/strong><\/em> :<\/p>\n<pre name=\"code\" class=\"bash:nocontrols\">\r\n[Desktop Entry]\r\nName=Toggle Unity 2D Panel Auto-Hide\r\nComment=Enabled or disables Unity 2D's panel auto-hide functionality\r\nIcon=gnome-fs-desktop\r\nExec=unity-2d-toggle-autohide.sh\r\nTerminal=false\r\nType=Application\r\nCategories=Utility\r\n<\/pre>\n<p>Finally from the Terminal start <strong>nautilus \/usr\/share\/applications<\/strong> and add the new entry &#8220;<em><strong>Toggle Unity 2D Panel Auto-Hide<\/strong><\/em>&#8221; to your Unity 2D panel via dragging and dropping.<\/p>\n<p>Clicking on it will toggle auto-hide.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The current version of Unity 2D that comes with Ubuntu 11.04 Beta 2 does not feature any sort of configuration panel and unfortunately there is no easy way to disable the auto-hide feature of the Unity 2D panel. Here is a short script that will give you an icon on your Unity panel to toggle [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[37],"class_list":["post-411","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ubuntu-unity-2d-linux-hack"],"_links":{"self":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts\/411"}],"collection":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/comments?post=411"}],"version-history":[{"count":13,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":453,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts\/411\/revisions\/453"}],"wp:attachment":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/media?parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/categories?post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/tags?post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}