You are not logged in.
Pages: 1
Hello,
I'm trying to execute this script when X starts:
xmodmap -e " keycode 118 = Delete"which works, when is executed manually from console. I tried to run it automaticaly after login and starting X by putting it into .zprofile, /etc/profile, /etc/profile.d/***, .xinit or to my awesome wm config (all other scripts here are executed normally - eg pulseaudio --start). But this command is never executed. I tried even variant with adding this to .Xmodmap and then add xmodmap .Xmodmap to .xinit, but without success.
Thanks
Offline
Have you tried any other file listed on http://zsh.sourceforge.net/Intro/intro_3.html?
Offline
I don't think it will work, because xmodmap needs X to run. But I login in console (using zsh). I must run it in .xinit or something like that.
Offline
If you place it in xinitrc; are you sure that you have placed it before the awesome execute? The window manager command must be last in the config
Offline
Just use .xinitrc then.
Offline
Here is how my .xinitrc looks like:
#! /bin/bash
xmodmap -e " keycode 118 = Delete"
exec awesomeWhen I manually type this command, everything works. But it doesn't work after reboot (and .xinitrc is surely executed, because awesome starts ok).
Offline
Here is how my .xinitrc looks like:
#! /bin/bash xmodmap -e " keycode 118 = Delete" exec awesomeWhen I manually type this command, everything works. But it doesn't work after reboot (and .xinitrc is surely executed, because awesome starts ok).
xmodmap seems to be time sensible. Anyhow, on my WM startup file I have:
(sleep 10; xmodmap ~/.Xmodmap; sleep 5; xmodmap ~/.Xmodmap) &I come to this by trial and error.
Has said I have it on my WM startup file, but having it on .xinitrc is also OK.
Mektub
Follow me on twitter: https://twitter.com/johnbina
Offline
Ok, I found where the problem is. I start my laptop without BT keyboard, then it is executed and it works on laptop keyboard. But it doesn't affect the BT keyboard. I will have to write some script which will execute this after connection this device.
Offline
Pages: 1