Author Topic: Right-click  (Read 1116 times)

szopin

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Right-click
« on: February 14, 2020, 08:54:30 am »
Found this from gemini subforum, even though mapping to silver button doesn't work but you can use any normal key combo, just assign one of the key combos in /usr/share/X11/xkb/planet_vndr/cosmo value Pointer_Button3 and then run 'xkbset m' (can also assign to left click as Pointer_Button1 which helps for SDL apps somewhat, in battle for wesnoth buttons in main menu can be clicked this way, though unit movement is still broken, maybe key release is not issued?)
Just be careful editing this file, as you could possibly make yourself unable to enter root password/login etc, best to edit some layout you're not using and switch to it and back if something went wrong, as that needs no key presses

Ben10

  • Newbie
  • *
  • Posts: 10
    • View Profile
Right-click
« Reply #1 on: February 17, 2020, 08:20:58 am »
I found this Gemini solution very useful on Cosmo too.

https://www.oesf.org/forum/index.php?topic=35185.0

Since, there is no "40-libinput.conf" file in "xorg.conf.d" folder on Cosmo, I made it myself (in nano), rebooted and it works. Left click, right click, 2 fingers scroll... everything works fine...
« Last Edit: November 11, 2020, 08:46:08 am by Varti »

szopin

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Right-click
« Reply #2 on: February 17, 2020, 08:57:07 am »
Quote from: Ben10
I found this Gemini solution very useful on Cosmo too.

https://www.oesf.org/forum/index.php?topic=35185.0

Since, there is no "40-libinput.conf" file in "xorg.conf.d" folder on Cosmo, I made it myself (in nano), rebooted and it works. Left click, right click, 2 fingers scroll... everything works fine...
Awesome stuff, this also works properly in SDL apps. We should probably get a thread of Linux tips&tricks started to catalog all such life improving tweaks, thanks!
« Last Edit: November 11, 2020, 08:46:21 am by Varti »

kaim

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Right-click
« Reply #3 on: August 26, 2020, 08:25:07 am »
Just wanted to stress that the method works even with compiled mtrack version.
The only thing youhave to do is read all the rerrors and install a banch of pkgs and then cteate a 50-libinput.conf as the old one provided by debian package will be removed by the new version.

So in order to compile please run

  sudo apt install xserver-xorg-dev libmtdev-dev xutils-dev gcc pkg-config fakeroot build-essential debhelper