Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a way to quickly toggle the autohide of the taskbar in Cinnamon (running on a netbook).

Would it be possible to do it either directly using a shortcut, or maybe scripting and then keybinding it?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

Copy and paste following script in gedit:

#!/bin/bash
state=$(gsettings get org.cinnamon panel-autohide)
if [ $state = "true" ]; then
    gsettings set org.cinnamon panel-autohide false
    gsettings set org.cinnamon panel2-autohide false
else
    gsettings set org.cinnamon panel-autohide true
    gsettings set org.cinnamon panel2-autohide true
fi

... and save as panel-autohide.sh in your home directory.

Then open System Settings -> Keyboard -> Keyboard shortcuts -> Custom shortcuts.

Click on Add custom shortcut. Fill the Name section with Toggle Panel Autohide. In Command section, browse and select panel-autohide.sh.

Under "Keyboard bindings" double click on unassigned, and press keyboard shortcut for this command. I use Ctrl + F12 as keyboard shortcut.

share|improve this answer
    
exactly was I was looking for :) –  AdrieanKhisbe Jan 18 at 10:15
    
actually this doesn't work in the latest cinnamon, so I suggest to use 'Intelligently hide panel' option. –  comepradz Jun 5 at 19:48

you can look at this page https://github.com/linuxmint/Cinnamon/issues/1754 see the comments given by askun

Just in case you weren't aware, you can toggle the system tray completely off in Cinnamon Settings > Applets. This doesn't offer the more finite control over individual applications like you are requesting, though, just "all on" or "all off" as far as I can tell...

enter image description here

share|improve this answer
1  
please dont make your answer only based on a link. do your best writing the key points and only then use the link as reference. if the link ever gets broken, so does your whole answer. –  Lorenzo Von Matterhorn Apr 7 '13 at 15:06

I use Cinnamon 2.0 and it has this feature by default.

System Settings -> Panel (for some reason I have 2 version of System settings in my App launcher. I used the first one to get the Advanced Mode)

System Settings

Check Auto-hide panel

enter image description here

Hope it helps !

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.