Indicator Synapse keyboard shortcut

Solution 1:

This is a known issue Shortcut to activate synapse resets to Control-space every reboot and still pending. If you feel up to it, there is a patch.

Even if the shortcut is correctly saved in $HOME/.config/synapse/config.json, it won't works.

Solution 2:

There is a work around for this, using xdotool. This tool lets you simulate keyboard input and mouse activity, move and resize windows, etc. It does this using X11's XTEST extension and other Xlib functions.

Here, we are going to find the coordinates of the mouse, and emulate a mouse click on the synapse indicator using a command and set a shortcut key for the command.

Step 1: Install xdotool.

sudo apt-get install xdotool

Step 2: Move your mouse over the synapse icon and get mouse location

xdotool getmouselocation

You should get output like this:

x:1105 y:14 screen:0 window:39845936

Step 3: Add keyboard shortcut for indicator

Go to System Settings -> Keyboard -> Shortcuts -> Custom Shortcuts.

Click the + and enter the below command:

xdotool mousemove x y click 1 mousemove restore

Replace x and y with the values you got. Set the shortcut as Ctrl + Space Logout and Login again.

Voilà!