Ubuntu – Unity – 14.04 – Set Launcher Icon Size – via command line

command lineiconslauncherscriptsunity

I've got a few computers, all coming to the end of their life.

The first couple have gone and I find myself again having to re-install ubuntu on it's resurrected remains and then laboriously reconfigure everything.

So I'm writing a couple of scripts to reconfigure the thing back to how I like it… and install all the core programs I need to work.

Ideally i'd do Sudo ./install.sh walk away, make some tea and avoid the headache.

So far I've got:

# Turn on workspaces
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ hsize 2

# Turn on hide launcher
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 1

Could anyone advise how I'd auto set launcher icon size to a number (probably 36 in this case) and similarly what the command would be for the auto hide launcher sensitivity.

Best Answer

I was able to do this using dconf e.g. to set the launcher icon size to 64 pixels

Code:

dconf write /org/compiz/profiles/unity/plugins/unityshell/icon-size 64

To reset it to the default value, you can use

Code:

dconf reset /org/compiz/profiles/unity/plugins/unityshell/icon-size

The dconf command line utility is not installed by default - you need to install the dconf-tools package. Usually there is an equivalent command via gsettings however in this case it appears the required schema definition does not exist.

Source : http://ubuntuforums.org/showthread.php?t=2195187