LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-27-2010, 08:24 PM   #1
CyyberspaceCowboy
LQ Newbie
 
Registered: Aug 2009
Posts: 19

Rep: Reputation: 0
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?
 
Old 01-27-2010, 09:15 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
go to your X session, open a terminal, and type "echo $DISPLAY" and there's your answer.

IIRC something like ":0" will suffice.
 
Old 01-27-2010, 09:39 PM   #3
CyyberspaceCowboy
LQ Newbie
 
Registered: Aug 2009
Posts: 19

Original Poster
Rep: Reputation: 0
echo $DISPLAY returns a blank line
 
Old 01-27-2010, 09:58 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xmodmap: at which script should i add the command? nass Linux - Hardware 3 05-13-2006 04:52 AM
where to put xmodmap -e "pointer ...." in Suse 9.3 broxtor Linux - Hardware 2 09-05-2005 11:15 AM
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 04:35 PM
command xmodmap not found during boot MatthiasOtto Linux - Software 4 02-17-2005 06:09 AM
bash: xmodmap: command not found Jalalabee Linux - Newbie 4 08-16-2003 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration