Home » Questions » Computers [ Ask a new question ]

xmodmap: unable to open display ''

xmodmap: unable to open display ''

I have the following line in my .bashrc

Asked by: Guest | Views: 77
Total answers/comments: 1
Guest [Entry]

"You could change your .bashrc to only do run xmodmap if there is a display available:

if [ -n ""${DISPLAY+x}"" ]; then
xmodmap -e ""keycode 116 = slash""
fi"