You are not logged in.

#1 2018-03-10 01:51:17

justdanyul
Member
Registered: 2011-09-29
Posts: 137

xmodmap and usb-switch

Hi everybody,

I got a bit of a pickle. Basically, I'm running a custom .Xmodmap which is rejigging my keyboard a bit, and I share the keyboard between two machines by the use of a USB switch. Now, after switching away from the arch workstation, and back to it again, the .Xmodmap is lost.

So, in summery, unplugging the keyboard, and plugging it back in, makes me loose my .xmodmap config. As a terribly hacky workaround, I've added an exec_always line to my i3 config to reload the xmodmap config, and I then restart i3 every time I switch back to Arch. But, its quite ugly. 

Is there any elegant way of handling this? Via a Udev rule or such?

All the best,
Daniel

Offline

#2 2018-03-10 10:59:24

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: xmodmap and usb-switch

Make a modified layout and use that instead of using xmodmap.

Sidenote: just what are your changes?

Last edited by Mr.Elendig (2018-03-10 10:59:57)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2018-03-25 16:49:11

justdanyul
Member
Registered: 2011-09-29
Posts: 137

Re: xmodmap and usb-switch

Hi, sorry for the incredibly long reply time on this.  Thanks for the suggestion, this will be a first for me, so I'll do a bit of reading before getting cracking with that.

Side-reply: The changes are pretty simple, I'm basically just switching command and control, its a mac keyboard and I use MacOS at work, I'm getting used to using command for shortcuts :-)

Offline

Board footer

Powered by FluxBB