You are not logged in.
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
~/.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.
Offline
Hi, thank you for the reply.
Sorry, yes it was a typo. I log in using GDM.
Offline
Have you configured GDM to read .xinitrc? https://wiki.archlinux.org/index.php/Di … tostarting
Offline
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
Is it being read? Are you logging into Gnome? A WM? What?
Offline
Sorry for not providing everything, still a bit new around here.
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
So, Gnome has its own autostart files. Read the wiki page. It probably also has its own utility for keymapping as well.
Offline
Offline
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