Is it possible to force the Unity launcher to hide? Or to toggle hide/unhide with a keyboard shortcut? [closed]

Solution 1:

If the launcher is set to auto-hide, with Super + e (mostly Windows + e) you can make the launcher show again. Havent found a way to hide the launcher through a shortcut though.

Solution 2:

I use unity2d and i made this script to toogle the launcher :

#!/bin/sh
var=$(gsettings get com.canonical.Unity2d.Launcher hide-mode)
if [ "$var" = 0 ]
then
    exec gsettings set com.canonical.Unity2d.Launcher hide-mode 2
else
    exec gsettings set com.canonical.Unity2d.Launcher hide-mode 0
fi

after you can set a shortcut who launch this script