You are not logged in.

#1 2021-06-06 18:02:37

mdiemer
Member
Registered: 2021-02-25
Posts: 44

Switch Primary Button on Mouse?

How do I switch to a left-handed mouse? I tried some searches but can't find anything specific to Bunsen Labs. For example, I could install Gnome Tweaks, but BL doesn't use Gnome. and what may work on Debian may not work here. I'm on Lithium (the operating system, that is).

Offline

#2 2021-06-06 19:08:11

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,659

Re: Switch Primary Button on Mouse?

You can use xinput to change the button mapping - more details in the man page.

You can also do button mapping with xmodmap or creating configuration file for Xorg - example


You must unlearn what you have learned.
    -- yoda

Offline

#3 2021-06-07 17:31:11

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: Switch Primary Button on Mouse?

mdiemer wrote:

How do I switch to a left-handed mouse? I tried some searches but can't find anything specific to Bunsen Labs.

https://forums.bunsenlabs.org/viewtopic … 727#p69727
???

Offline

#4 2021-06-08 10:48:13

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Switch Primary Button on Mouse?

ohnonot wrote:
mdiemer wrote:

How do I switch to a left-handed mouse? I tried some searches but can't find anything specific to Bunsen Labs.

https://forums.bunsenlabs.org/viewtopic … 727#p69727
???

To be specific to BL, you need to use .config/bunsen/autostart for the setting now.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#5 2021-08-05 18:06:42

mdiemer
Member
Registered: 2021-02-25
Posts: 44

Re: Switch Primary Button on Mouse?

I was able to change it with <xmodmap  -e "pointer = 3 2 1">, but that only works for one session.

I just ran  <xinput set-button-map michael's mouse 1 1 1>. That seemed to work, although I won't know for sure until I do a restart.

Thanks for the tips, I'll let you know how it worked out.

Offline

#6 2021-08-06 16:03:02

mdiemer
Member
Registered: 2021-02-25
Posts: 44

Re: Switch Primary Button on Mouse?

damo wrote:
ohnonot wrote:
mdiemer wrote:

How do I switch to a left-handed mouse? I tried some searches but can't find anything specific to Bunsen Labs.

https://forums.bunsenlabs.org/viewtopic … 727#p69727
???

To be specific to BL, you need to use .config/bunsen/autostart for the setting now.

I have tried several things at this point, but none of them make the change permanent. I am thinking of buying a left-handed mouse for use on Bunsen labs Linux. I would spend more time on it if I didn't have to run a terminal command at the start of every session .

One last thing to try. Can you tell me exactly what I should put in the above file - config/bunsen/autostart - ?

Thank you.

Offline

#7 2021-08-07 07:02:27

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Switch Primary Button on Mouse?

Did this command work, as shown in the link?

xmodmap -e "pointer = 3 2 1"

If so, put it in your autostart


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#8 2024-02-22 19:46:51

mdiemer
Member
Registered: 2021-02-25
Posts: 44

Re: Switch Primary Button on Mouse?

(After a long absence) -

Uh Oh, This little bugger has just bitten me on the ass again. I was able to change the button to left-handed by using  <xinput set-button-map 13 3 2 1>.

I am striking out trying to make it permanent. I guess this problem only comes up 10% of the time it normally would, as that is the % of left-handed people in the world. so there isn't that much out there on the subject. and I don't know whether searching for Debian specifically will work, although it will bring up more hits. but not necessarily applicable to BL.

I am unclear just how to add this command to autostart. Perhaps a tutorial tells specifically how to do this? I'm afraid to go messing around too much for fear of breaking something.

Last edited by mdiemer (2024-02-22 20:15:27)

Offline

#9 2024-02-22 21:08:42

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,659

Re: Switch Primary Button on Mouse?

Edit the ~/.config/bunsen/autostart file and add that command:

xinput set-button-map 13 3 2 1

You will have a left-handed mouse any time you log into the BL openbox session.


You must unlearn what you have learned.
    -- yoda

Offline

#10 2024-02-22 21:09:08

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: Switch Primary Button on Mouse?

@mdiemer, It's late or not...
Supposing that more than one person uses your machine
the graphical way of changing mouse settings is Super then typing 'mouse'
and select it as Left/Right-handed

Once you do these 2 steps + logout:

sudo apt install xfce4-settings

insert into ~/.config/bunsen/autostart

xfsettingsd & 

Here was a similar case
https://forums.bunsenlabs.org/viewtopic … 32#p132132


...Welcome to the family...

Offline

#11 2024-02-23 02:45:31

mdiemer
Member
Registered: 2021-02-25
Posts: 44

Re: Switch Primary Button on Mouse?

OK, I finally got it switched, and permanently (actually, just until my right hand is better - I use the right-handed mouse most of the time, even though I am left-handed - my right hand seems more resistant to fatigue).

What worked was Robi's suggestion to install xfce4 settings. I must have messed-up when trying to configure the autostart file. One issue I had was that I was not going to 'config/bunsen/autostart,'but 'config/autostart.' I finally realized my mistake, but I guess I still screwed up anyway. Not my day, I'm having problems typing also.

But it appears fixed, since I restarted and it held. It didn't work the first time, because I was focusing on the wrong line (optical mouse), when I needed to focus on M525. Like I said, not my day...

thanks for all the help!

Offline

#12 2024-02-23 09:04:46

Mx. Alba
Member
Registered: 2024-02-20
Posts: 17

Re: Switch Primary Button on Mouse?

I'm the other way around... I'm righthanded but use a trackball on the left, configured with lefthanded buttons. But when I use a normal mouse, I tend to switch between using it left- and righthanded, but keep its configuration for righthanded for easy swapping around. I'm weird like that. big_smile

Offline

#13 2024-02-23 17:36:10

mdiemer
Member
Registered: 2021-02-25
Posts: 44

Re: Switch Primary Button on Mouse?

Mx. Alba wrote:

I'm the other way around... I'm righthanded but use a trackball on the left, configured with lefthanded buttons. But when I use a normal mouse, I tend to switch between using it left- and righthanded, but keep its configuration for righthanded for easy swapping around. I'm weird like that. big_smile

Not weird, just ambidexterous, which ain't a bad thing to be. It's smart to divide the stress on one's hands, elbows and shoulders between the two sides of the body. In fact, it's weird that most of us are so one-sided. you'd think that the more balanced approached would be favored. One of nature's little mysteries, I guess.

Offline

Board footer

Powered by FluxBB