LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2016, 02:56 PM   #1
Cág
LQ Newbie
 
Registered: Oct 2016
Posts: 18

Rep: Reputation: 0
xmodmap file is not loaded by .xinitrc


Hi,

I have been loading xmodmap file with xmodmap .Xmodmap in my .xinitrc for some time now to fix brightness keys. Now I found out that it is no longer loaded (brightness keys don't work), unless executed manually. Has someone had it?

I've surfed the web only to find out some relatively old bug reports from Ubuntu and Fedora solved by those weird GNOME settings. What's interesting, xmodmap -e "pointer = 3 2 1" - right mouse button becomes primary - works from the same .xinitrc.

Setting those keys with xmodmap -e ... doesn't work too.

My system is Alpine with dwm.
 
Old 12-02-2016, 08:55 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,634

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Quote:
Originally Posted by Cág View Post
Hi,

I have been loading xmodmap file with xmodmap .Xmodmap in my .xinitrc for some time now to fix brightness keys. Now I found out that it is no longer loaded (brightness keys don't work), unless executed manually. Has someone had it?

I've surfed the web only to find out some relatively old bug reports from Ubuntu and Fedora solved by those weird GNOME settings. What's interesting, xmodmap -e "pointer = 3 2 1" - right mouse button becomes primary - works from the same .xinitrc.

Setting those keys with xmodmap -e ... doesn't work too.

My system is Alpine with dwm.
DWM -- try adding the keyboad shortcuts in your file then make clean - reload dwm


https://bbs.archlinux.org/viewtopic.php?id=204791

Last edited by BW-userx; 12-02-2016 at 09:02 PM.
 
Old 12-03-2016, 03:40 AM   #3
Cág
LQ Newbie
 
Registered: Oct 2016
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by BW-userx View Post
DWM -- try adding the keyboad shortcuts in your file then make clean - reload dwm


https://bbs.archlinux.org/viewtopic.php?id=204791
Done that already in the previous thread. These keys are working when manually running xmodmap .Xmodmap with X11 loaded, the line simply stopped being loaded from .xinitrc for some reason.
 
Old 12-03-2016, 06:20 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,422
Blog Entries: 9

Rep: Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668
show us the output from the failed attempts, with -verbose switch.
show us the exact line in ~/.xinitrc, or better the whole file.
 
Old 12-03-2016, 07:30 AM   #5
Cág
LQ Newbie
 
Registered: Oct 2016
Posts: 18

Original Poster
Rep: Reputation: 0
I found the problem. I recently played with keyboard layouts and added the line with setxkbmap -layout... after xmodmap .Xmodmap like this:
Code:
xmodmap .Xmodmap
setxkbmap -layout...
thus turning the custom mapping off. So I put xmodmap .Xmodmap after setxkbmap... like this
Code:
setxkbmap -layout...
xmodmap .Xmodmap
and it worked. Thanks for the suggestions.

Last edited by Cág; 12-03-2016 at 07:53 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware-14.0/x86_64: .~/Xmodmap no longer runs within ~/.xinitrc rshepard Slackware 4 04-10-2013 01:11 PM
how to use xmodmap in ~/.xinitrc page_seven Linux - Desktop 3 10-27-2010 06:19 AM
Where is the Xmodmap file linuxlainen Linux - Newbie 2 03-15-2008 03:36 PM
xmodmap not working in .xinitrc kmeehl Slackware 1 12-03-2004 06:14 PM
xinitrc won't execute xmodmap! carboncopy Slackware 1 03-17-2004 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration