You are not logged in.

#1 2017-07-29 21:54:45

ndttt
Member
Registered: 2017-03-19
Posts: 38

xmodmap not autostarting

Hi there, I'm following the arch wiki for xmodmap changing the menu button to super on my thinkpad and everything is working. Testing with the command below works perfectly, keys changed.

xmodmap ~/.Xmodmap

Problem arises when I try to autostart it.

Following the wiki, I've added

[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap

to my ~/.initrc file, but it unfortunately doesn't work. I've tried directly mapping to it...

[[ -f /home/nn/.Xmodmap ]] && /usr/bin/xmodmap /home/nn/.Xmodmap

but that doesn't work either... not really sure where else to turn to and I'm sure it's a stupid question for you guys here. Future thanks

Offline

#2 2017-07-29 22:18:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: xmodmap not autostarting

~/.initrc is not read, .xinitrc is. If that is just a typo, then we need more information about how you log in and start X.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-07-29 23:40:03

ndttt
Member
Registered: 2017-03-19
Posts: 38

Re: xmodmap not autostarting

Hi, thank you for the reply.

Sorry, yes it was a typo. I log in using GDM.

Offline

#4 2017-07-29 23:49:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: xmodmap not autostarting

Have you configured GDM to read .xinitrc? https://wiki.archlinux.org/index.php/Di … tostarting


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-07-30 00:32:22

ndttt
Member
Registered: 2017-03-19
Posts: 38

Re: xmodmap not autostarting

Oh man, I didn't even know GDM didn't read .xinitrc. Searching some more, I guess systemd replaced all that.

Reading the link you gave me, I tried to make a ~/.xprofile file then add in

xmodmap ~/.Xmodmap

but that doesn't seem to work either... |:

Offline

#6 2017-07-30 00:37:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: xmodmap not autostarting

Is it being read? Are you logging into Gnome? A WM? What?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2017-07-30 00:57:28

ndttt
Member
Registered: 2017-03-19
Posts: 38

Re: xmodmap not autostarting

Sorry for not providing everything, still a bit new around here. sad

I don't think it's being read, but is there a way to confirm? (Other than the fact that xmodmap isn't running)

Yes, I'm logging into Gnome from GDM.

Offline

#8 2017-07-30 01:35:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: xmodmap not autostarting

So, Gnome has its own autostart files. Read the wiki page. It probably also has its own utility for keymapping as well.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2017-07-30 08:11:17

NoSuck
Member
Registered: 2015-03-04
Posts: 157
Website

Re: xmodmap not autostarting

Hooray for not following standards.

Offline

#10 2017-07-30 10:54:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,665

Re: xmodmap not autostarting

And GNOME will also default to Wayland, have you verified that you are starting the Gnome on Xorg session (it will likely only source xprofile (if it still does) when you launch GNOME on Xorg)? But yes GNOME/GDM changed that, I don't know why you think systemd has anything to do with that

Last edited by V1del (2017-07-30 10:55:32)

Offline

Board footer

Powered by FluxBB