1

I use mouse and keyboard sharing between a number of computers. The mouse can't put pressure against the side to bring up the menu. The keyboard shortcut at times interferes with other computers. So what if there is a commandline option to bring up the launcher I can program a usable interface to use the launcher?

Thanks in advance for any help.


If someone knows of a way to have a script emulate a keyboard shortcut that should work, I could call the Super Key shortcut from the script.

edwinksl
  • 24,109
L. D. James
  • 25,444

2 Answers2

3

I know this isn't the answer you asked for but it will resolve the problem. Go to Settings, Appearance, Behaviour and turn off auto-hide the launcher as shown below. Problem solved.

If you need more real estate for your desktop turn on Enable workspaces as well (as you see checked below) you can switch between them with Ctrl and the arrow keys. On my system this resulted in increasing my workspace by a factor of 12 without the need to purchase additional screens.

You can also launch applications by bringing up the application lens via SuperA (the Super key is between the left Ctrl and left Alt keys on my keyboard. It may be the same on yours.

If you want to simulate keypresses you could try xdotool which you can install via sudo apt-get install xdotool

auto-hide-off

Sources: Experience

http://xmodulo.com/simulate-key-press-mouse-movement-linux.html

Elder Geek
  • 36,752
2

Pressing Super key alone, should bring up the Dash with the launcher. But here's a script that toggles the unity launcher visibility on/off, which can be used to bring up and keep launcher there on demand.

#!/usr/bin/env bash

status=$( gsettings get org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode )

new_status=0

if [ $status -eq 1 ]
then
    new_status=0
else
    new_status=1
fi

gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode $new_status

Simply bind that script as shortcut, and each time that shortcut is activated, the script will either hide or unhide the launcher. Instructions for binding a script to shortcut can be found here: https://askubuntu.com/a/331632/295286