I want to keep launcher active only in main workspace. E.g. I like to keep Citrix window in full display mode without launcher (in workspace II).
Ubuntu – How to show Unity launcher in only one workspace
launcherunityviewportsworkspaces
launcherunityviewportsworkspaces
I want to keep launcher active only in main workspace. E.g. I like to keep Citrix window in full display mode without launcher (in workspace II).
Best Answer
Like many things, it does not exist as far as I know, BUT, it can be done with a little creativity and the right tools.
How it can be done
Assuming you are on 14.04 (with python3), you can use a script to run in the background, that keeps track of your current viewport and sets the launcher to autohide or not, depending on that current viewport.
What you need to do first is install
wmctrl
:We need
wmctrl
to get information about the total size of all viewports and to be able to read information about the current section we are in.Once that is done, copy the script below into an empty file and safe it as
autohide_launcher.py
(keep the name like that) and make it executable(!).In the line
hide_launcher
, decide for wich viewports you want to autohide the launcher (set "True"), and use the correct number of entries, corresponding with your number of viewports. The list reads per viewport row, from left to right.You can start the script by the command:
Toggle autohide-per-viewport on/of
However, it is more convenient to use the script below to have one command to toggle the script on/of.
Copy the script below into an empty file and save it as
start_stop.py
, in one and the same folder as theautohide_launcher.py
script. Make it executable as well(!). Now you can toggle the autohide function with the commandThe start/stop script:
Alternative ways to start or stop the script
There are several other ways to toggle the script in a convenient way:
Add the script to your startup apoplications
If you permanently want to run the script in the background:
Add the command:
Give it a name to your liking
Set a keyboard shortcut to toggle the script
Create a new shortcut of your choice, with the command:
Now you can toggle autohide-per-viewport with the key combination.
posted on gist.gisthub