Article 55K6G Keyboard remapping command in auto startup in a line of shell script failed

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 !latest?d=yIl2AUoC8zA latest?i=pOgRnHy3aRk:bqotpo2GhO8:F7zBnMy latest?i=pOgRnHy3aRk:bqotpo2GhO8:V_sGLiP latest?d=qj6IDK7rITs latest?i=pOgRnHy3aRk:bqotpo2GhO8:gIN9vFwpOgRnHy3aRk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments