You are not logged in.
I use awesome as my WM, and I make some xmodmap tweak and put them in .Xmodmap file, and add this line in my .xinitrc
/usr/bin/xmodmap $HOME/.Xmodmap
but every time the system startup, my config have not been loaded. how should I load my xmodmap config ?
Last edited by nouh (2012-10-09 05:22:26)
Offline
Welcome to Arch.
Is it possible that the $HOME environment variable is not set correctly? What happens if you specify the path directly:
/usr/bin/xmodmap /home/nouh/.Xmodmap
(replace "nouh" with your username if it is not "nouh" of course)
What happens if you run this command after the system is running? Does it return any errors?
Last edited by 2ManyDogs (2012-10-09 02:14:51)
How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.
Offline
thanks for your immediate reply , and I am quite happy to be here. but your suggestion doesn't solve it , and $HOME variable is set properly.
Offline
What happens if you run this command from a terminal after awesome starts?
Would you please post your .Xmodmap file?
Last edited by 2ManyDogs (2012-10-09 02:27:42)
How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.
Offline
there is no error when I run this
/usr/bin/xmodmap /home/zach/.Xmodmap
and my config will work properly, the problem is it doesn't be loaded on system startup...
my Xmodmap config is:
remove Lock = Caps_Lock
remove Control = Control_L
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
Last edited by nouh (2012-10-09 02:45:13)
Offline
Do you use a display manager to start awesome, or do you "startx" directly from the console? Would you please post your .xinitrc file?
Last edited by 2ManyDogs (2012-10-09 02:48:59)
How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.
Offline
I use slim as the display manager. and start it in /etc/inittab . my xinitrc is as follows:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
killall fcitx
fcitx &
xsetroot -cursor_name left_ptr
xrdb -merge ~/.Xresources
/usr/bin/xmodmap /home/zach/.Xmodmap
exec awesome
Offline
Is it possible that it is trying to run your xmodmap too early (it hasn't set up keyboard yet)?
Edit: So maybe appending sleep 5 with a & prepended? Or even starting it with awesome's startup script.
Last edited by WonderWoofy (2012-10-09 03:22:01)
Offline
maybe that is the problem , I put it in the awesome's rc.lua, and it work properly. thx
Offline
Excellent. Please mark your post as solved by editing the first post and appending [Solved].
Offline
I use slim as the display manager. and start it in /etc/inittab . my xinitrc is as follows:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fiexport XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitxkillall fcitx
fcitx &
xsetroot -cursor_name left_ptr
xrdb -merge ~/.Xresources
/usr/bin/xmodmap /home/zach/.Xmodmap
exec awesome
Offline
Hi, could you post what you added to your rc.lua? It seems there are thousands of ways to run something from there and I'd be interested in a quick, clean and easy solution which does not run xmodmap again when awesome is restarted. Thanks!
Offline