xinitrc

Archived topics about LMDE 1 and LMDE 2
Locked
majest

xinitrc

Post by majest »

I can't seem to get my keybindings working on a fresh install of LMDE UP9.

My .xinitrc file is as follows:

Code: Select all

if [ -s ~/.Xmodmap ]; then
    xmodmap ~/.Xmodmap
fi
and my .Xmodmap is thus:

Code: Select all

keycode 62 = Mode_switch
keycode 105 = Mode_switch
keycode 116 = Down NoSymbol Next
keycode 111 = Up NoSymbol Prior
keycode 113 = Left NoSymbol Home
keycode 114 = Right NoSymbol End
The purpose of these changes is to make right-shift + up/down arrow keys behave as page up/down.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
majest

xinitrc

Post by majest »

I can't seem to get my keybindings working on a fresh install of LMDE UP9 MATE. My .xinitrc file is as follows:

Code: Select all

if [ -s ~/.Xmodmap ]; then
    xmodmap ~/.Xmodmap
fi
and .Xmodmap is thus:

Code: Select all

keycode 62 = Mode_switch
keycode 105 = Mode_switch
keycode 116 = Down NoSymbol Next
keycode 111 = Up NoSymbol Prior
keycode 113 = Left NoSymbol Home
keycode 114 = Right NoSymbol End
It used to work on my old LM Maya install. THanks for any help!
majest

Re: xinitrc

Post by majest »

I have been searching on the internet and apparantly this is quite a common problem.

There does not appear to be a solution - I have tried putting a custom startup command: sleep 10 && xmodmap /home/myself/.Xmodmap but this doesn't work. The only thing that works is manually typing xmodmap ~/.Xmodmap from a bash shell once I have logged in. It is quite annoying, it seems this should be eminently fixable! Please help :cry:
kurotsugi

Re: xinitrc

Post by kurotsugi »

I don't know whether if xinitrc is still working or not :3
AFAIK it's now replaced with /etc/rc.local
majest

Re: xinitrc

Post by majest »

kurotsugi wrote:I don't know whether if xinitrc is still working or not :3
AFAIK it's now replaced with /etc/rc.local
I can confirm that editing rc.local does not work. Any other ideas? I'm really desperate ;)
majest

Re: xinitrc

Post by majest »

Please help me people - my life is falling apart over this... :(
majest

Re: xinitrc

Post by majest »

The solution is found. It's shocking, get ready.

Create a new item in Preferences -> Startup Applications with the following command:

/bin/bash -c "sleep 10; /usr/bin/xmodmap /home/username/.Xmodmap"

I don't know why it needs to sleep or why absolute paths are needed. It just works (c).
majest

Re: xinitrc

Post by majest »

Another necessary hack for the startup applications: /bin/bash -c "sleep 10; xset s 0 0 s noblank dpms 0 0 0 -dpms"

This stops XFCE from blanking the screen every 10 minutes.
Locked

Return to “LMDE Archive”