Keyboard remapping command in auto startup in a line of shell script failed
by BudiKusasi from LinuxQuestions.org on (#55K6G)
As tried to set keyboard remapping in auto startup in a line of shell command inside one shell script file, I found it so extremely weird, the first line preceding it is working, but it is, the second line, failing,
Code:$ cat /etc/profile.d/autostart.sh
#!/usr/bin/bash
setxkbmap -option numpad:microsoft
xkbcomp -I$HOME/.xkb ~/.xkb/mod_kbd $DISPLAYWhy is setxkbmap working correctly while xkbcomp not, as both are checked on login in first place?
Any useful sincere help is indeed gratified.. Thanks !


Code:$ cat /etc/profile.d/autostart.sh
#!/usr/bin/bash
setxkbmap -option numpad:microsoft
xkbcomp -I$HOME/.xkb ~/.xkb/mod_kbd $DISPLAYWhy is setxkbmap working correctly while xkbcomp not, as both are checked on login in first place?
Any useful sincere help is indeed gratified.. Thanks !