You are not logged in.
Pages: 1
This works, You can create this path if it doesn't exist.
~/.config/autostart/.desktop
[Desktop Entry]
Encoding=UTF-8
Name=xmodmap
Comment=Disable primary selection
Exec=xmodmap -e "pointer = 1 25 3 4 5 6 7 8 9"
Terminal=true
Type=Application
i'm told that might not work in all DM's.
Is there another option?
I was told we can put something into ~/.xprofile, but the above entry fails for me.
Any ideas?
thx
arch xfce x86_64
Offline
You might be able to disable it permanently via xorg configuration. Have a look at this page for instructions. It's for ubuntu/debian but should also work for Arch.
Note: this disables the middle mouse button click altogether, which is what the command you are using does as well, I think. I've never seen a "25" in the second spot, it's usually 0 to disable.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
would i replace their button mapping with my pointer values?
Like:
Section "InputClass"
Identifier "USB Pointer"
MatchIsPointer "true"
Option "ButtonMapping" "1 25 3 4 5 6 7 8 9"
EndSection
and replace their Identifier with my lsusb ID?
Bus 005 Device 003: ID 045e:0009 Microsoft Corp. IntelliMouse
or maybe lspci?
00:1a.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
thx!
Last edited by johnywhy (2019-08-28 02:26:35)
arch xfce x86_64
Offline
According to that document, yes. I haven't tested this so it will be interesting to see if it works on your system.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Here is another link that suggests another option:
Section "InputClass"
Identifier "evdev mouse"
MatchDevicePath "/dev/input/event*"
Option "Emulate3Buttons" "no"
Driver "evdev"
EndSection
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
sounds like that will disable wheel-scrolling, which i don't want to disable.
I just want to disable the paste action.
Maybe there are other values available for 'Option'?
Yep, but not sure which one.
https://www.x.org/releases/X11R7.6/doc/ … l#heading5
Option "Emulate3Buttons" "boolean" : Enable/disable the emulation of the third (middle) mouse button for mice which only have two physical buttons. The third button is emulated by pressing both buttons simultaneously.
Sounds a bit different than what i'm looking for...
this is interesting. Not sure if this is any xorg, or just arch:
For input devices the X server defaults to the libinput driver (xf86-input-libinput), but xf86-input-evdev and related drivers are available as alternative.
https://wiki.archlinux.org/index.php/Xorg#Input_devices
Do you think one of the above options (not evdev) are for xf86-input-libinput?
Last edited by johnywhy (2019-08-28 02:42:30)
arch xfce x86_64
Offline
Maybe specifying the libinput driver is the way to go. See: https://wiki.archlinux.org/index.php/Libinput
Libinput also has a button mapping option. So maybe a file with the following contents:
Section "InputClass"
Identifier "libinput mouse"
MatchDevicePath "/dev/input/event*"
Option "ButtonMapping" "1 25 3 4 5 6 7 8 9"
Driver "libinput"
EndSection
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
why do you think libinput would be better than evdev?
i want compatibility with older computers, if that matters.
arch xfce x86_64
Offline
Pages: 1
[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 552.25 KiB (Peak: 569.53 KiB) ]