Siduction Forum

Siduction Forum => Software - Support => Topic started by: viniosity on 2014/06/02, 05:16:43

Title: (solved) is it possible to simulate right click with left click + control?
Post by: viniosity on 2014/06/02, 05:16:43
I'm coming from a mac where I could simulate a right click by either holding two fingers on the mousepad and clicking OR holding down command and clicking.


On my XPS13 I'm finding that most times I try to right click I still left click instead. So rather than fight it, I'd like to just hit control and left click to bring up the right click action. Is such a thing possible? I know that you can generate a right click using xdotool click 3 but how to bind that to control + left click?
Title: Re: is it possible to simulate right click with left click + control?
Post by: Gabriel_M on 2014/06/07, 02:48:21
The software which makes this possible is called mouseemu, search for "mouseemu" and install it.

        su
       
        apt-get install mouseemu
Mouseemu's default configuration file is stored in /etc/default/mouseemu.

su
nano /etc/default/mouseemu
The file will open in nano.

This is the line which will make the correct right-click substitute:
#RIGHT_CLICK="-right 29 272″      # Left Ctrl + click
Uncomment both line by removing the # at the start of the line and save the file. Now, open the terminal, and restart the mouseemu service:
su
/etc/init.d/mouseemu restart
Ctrl-click should start working immediately.
Title: Re: is it possible to simulate right click with left click + control?
Post by: viniosity on 2014/06/07, 03:41:19
Weird, I tried that and it didn't seem to do anything. I had high hopes though. Is it possible there's a keybinding conflict with XFCE or something?
Title: Re: is it possible to simulate right click with left click + control?
Post by: viniosity on 2014/07/28, 03:38:49
I'm just noting that I managed to solve this:




sudo apt-get install xdotool
sudo apt-get install xbindkeys



Next, create a .xbindkeysrc with this in it:



"xdotool click 3"
  alt + b:1 + Release



You can exchange alt for a different modifier such as Control if you like. Props to this article (http://superuser.com/questions/217615/how-to-right-click-using-the-keyboard-from-ubuntu-on-a-mac) which helped me figure it out.