You are not logged in.

#26 2024-03-31 09:50:07

lo7777799
Member
Registered: 2023-07-25
Posts: 37

Re: mouse buttons config under Xorg and evdev

ich nutze aber auch oft lxqt und plasmaKDE

Offline

#27 2024-03-31 09:51:39

seth
Member
Registered: 2012-09-03
Posts: 53,584

Re: mouse buttons config under Xorg and evdev

So you didn't click any of those links?
In particular the last one that explains what LXDM sources when it starts a session?

Offline

#28 2024-03-31 09:54:46

lo7777799
Member
Registered: 2023-07-25
Posts: 37

Re: mouse buttons config under Xorg and evdev

ok, i have /etc/profile

where exactly in that text of that file should i insert which text to autostart xbindkeys? smile

Offline

#29 2024-03-31 09:56:17

seth
Member
Registered: 2012-09-03
Posts: 53,584

Re: mouse buttons config under Xorg and evdev

ok, i have /etc/profile

And you're not going to put it in there.
The rather obvious candidate would have been ~/.xprofile

Last edited by seth (2024-03-31 09:56:31)

Offline

#30 2024-03-31 09:58:58

lo7777799
Member
Registered: 2023-07-25
Posts: 37

Re: mouse buttons config under Xorg and evdev

where here?
cat /etc/profile

# /etc/profile

# Append "$1" to $PATH when not already in.
# This function API is accessible to scripts in /etc/profile.d
append_path () {
    case ":$PATH:" in
        *:"$1":*)
            ;;
        *)
            PATH="${PATH:+$PATH:}$1"
    esac
}

# Append our default paths
append_path '/usr/local/sbin'
append_path '/usr/local/bin'
append_path '/usr/bin'

# Force PATH to be environment
export PATH

# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
	for profile in /etc/profile.d/*.sh; do
		test -r "$profile" && . "$profile"
	done
	unset profile
fi

# Unload our profile API functions
unset -f append_path

# Source global bash config, when interactive but not posix or sh mode
if test "$BASH" &&\
   test "$PS1" &&\
   test -z "$POSIXLY_CORRECT" &&\
   test "${0#-}" != sh &&\
   test -r /etc/bash.bashrc
then
	. /etc/bash.bashrc
fi

# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP

# Man is much better than us at figuring this out
unset MANPATH

Last edited by lo7777799 (2024-03-31 10:00:38)

Offline

#31 2024-03-31 10:08:20

lo7777799
Member
Registered: 2023-07-25
Posts: 37

Re: mouse buttons config under Xorg and evdev

i dont have ~/.xprofile

Offline

#32 2024-03-31 10:14:43

seth
Member
Registered: 2012-09-03
Posts: 53,584

Re: mouse buttons config under Xorg and evdev

lo7777799 wrote:

i dont have ~/.xprofile

Add it?
How old are you?
Edit: and what distro are you running? Ubuntu?

Last edited by seth (2024-03-31 10:15:11)

Offline

#33 2024-03-31 10:15:49

lo7777799
Member
Registered: 2023-07-25
Posts: 37

Re: mouse buttons config under Xorg and evdev

ok i do it.

later i restart my pc and say you, if it starts.

thanks very much smile

Offline

#34 2024-03-31 10:18:28

lo7777799
Member
Registered: 2023-07-25
Posts: 37

Re: mouse buttons config under Xorg and evdev

#!/bin/bash
xbindkeys

is that good. thats all in my text file. .xprofile

Last edited by lo7777799 (2024-03-31 10:20:07)

Offline

#35 2024-03-31 10:20:19

seth
Member
Registered: 2012-09-03
Posts: 53,584

Re: mouse buttons config under Xorg and evdev

The first line isn't a proper shebang and you don't need a shebang in that file anyway.
xbindkeys forks by default, otherwise you'd better do that.

Offline

#36 2024-03-31 11:01:24

lo7777799
Member
Registered: 2023-07-25
Posts: 37

Re: mouse buttons config under Xorg and evdev

what should i do, if i want to do that all under evdev?

maus configuration evdev

$ xev -event button | grep button
    state 0x0, button 9, same_screen YES
    state 0x0, button 9, same_screen YES
    state 0x0, button 8, same_screen YES
    state 0x0, button 8, same_screen YES
    state 0x0, button 8, same_screen YES
    state 0x0, button 8, same_screen YES
    state 0x0, button 8, same_screen YES
    state 0x0, button 8, same_screen YES

9 is front thumb key and should be left ctrl. 8 is back thumb key and should be left shift.

grep -E "Name|Handlers" /proc/bus/input/devices | grep -E -B1 'Handlers.*mouse'
N: Name="Logitech G203 Prodigy Gaming Mouse"
H: Handlers=event2 mouse0


N: Name="Logitech G203 Prodigy Gaming Mouse"
H: Handlers=event2 mouse0

then in xorg.conf ...

Section "InputDevice"
    Identifier     "Evdev Mouse"
    Driver         "evdev"
    Option         "Name" "Logitech G203 Prodigy Gaming Mouse"
    Option         "evBits" "+1-2"
    Option         "keyBits" "~272-287"
    Option      "relBits" "~0-2 ~6 ~8"
    Option         "Pass"     "3"
    Option         "CorePointer"
EndSection 



then change 1 line in server layout in xorg.conf ...

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen 0     "Monitor0" 0 0
    InputDevice     "Keyboard0" "CoreKeyboard"
    InputDevice     "Evdev Mouse" "CorePointer"
EndSection

but what is missing for my 2 thumb keys to use it as left shift and left ctrl?

i find it well, if i know the evdev alternative.

maybe anyone can help me complete this.

Last edited by lo7777799 (2024-03-31 12:28:13)

Offline

#37 2024-03-31 13:24:00

seth
Member
Registered: 2012-09-03
Posts: 53,584

Re: mouse buttons config under Xorg and evdev

I linked you examples on ow to do tis twice before and I also told you before that the quoted segment is irrelevant to your case.

Offline

#38 2024-03-31 15:04:36

lo7777799
Member
Registered: 2023-07-25
Posts: 37

Re: mouse buttons config under Xorg and evdev

ok, xkeybinds works after restart , thanks very much seth smile

Offline

#39 2024-03-31 15:06:28

lo7777799
Member
Registered: 2023-07-25
Posts: 37

Re: mouse buttons config under Xorg and evdev

https://unix.stackexchange.com/question … -udev-hwdb

shows to

https://vxnick.com/blog/2014/10/binding … -on-linux/

you linked an empty link to  me, seth.

oh wait, there are informations for me, that can help.

thx seth smile

Last edited by lo7777799 (2024-03-31 15:10:19)

Offline

Board footer

Powered by FluxBB