What do I put in for -display argument of xmodmap command
I'm trying to load a custom keymap using the xmodmap command. It's on a hacked ZipIt 2 and a custom keymap is necessary for the alt key (punctuation and numbers) combos to work in x.
I try [ xmodmap /etc/keymap.map ] and I get back xmodmap: unable to open display ' ' I need to put a string in for -display, i.e. xmodmap -display somestring /etc/keymap.map I need someone to tell me how to find what value to put in. I'm looking a xorg.conf and I see Section "Screen" Identifier "Screen0" Device "Card0" SubSection "Display" Modes "240x320" EndSubSection EndSection I tried Screen0 and Screen and "Screen0" (should I have quotes around the argument?) I still get "unable to open display". Does anyone have experience with xmodmap? |
go to your X session, open a terminal, and type "echo $DISPLAY" and there's your answer.
IIRC something like ":0" will suffice. |
echo $DISPLAY returns a blank line
|
The default (first screen) is definitely :0.0
And the second screen would be :1.0 Now, when multiple (monitors??) is involved, *something* is referred to as :0.1 or :1.1 where the second digit refers to the second monitor on screen x. Don't quote me on this part; what I wrote first should suffice (:0.0) If you enter a login terminal, and/or source /etc/profile then $DISPLAY should get set somewhere. Sasha |
All times are GMT -5. The time now is 04:08 PM. |