11-26-2012
Xev can't detect Caps_lock
Hi:
I am trying to remap Caps_lock to something else but just encountered an unexpected issue: the xwindows can't even detect Caps_lock. I tried with xev, there was no events shown when Caps_lock key was toggled.
the key itself still works though, meaning it does toggle the uppercase/lowercase mode (except when being used in xev).
is xev suppoped to detect Caps_lock (or Num_lock)? if it is, what could cause it to ignore them?
BTW, there is no ".xmodmap" in my home directory yet. Also, I am using Vnc if it matters.
Thanks.
10 More Discussions You Might Find Interesting
1. Programming
Hello,
i compiled the program xev under HPUX 10.20 and there are a lot of errors like this. Can anybody help me to fix this errors?
make xev
cc -O xev.c -o xev
/usr/ccs/bin/ld: Unsatisfied symbols:
XFree (code)
XKeysymToString (code)
XSelectInput (code)
XOpenDisplay... (1 Reply)
Discussion started by: lan
1 Replies
2. Shell Programming and Scripting
Dear Sir,
Now I use oracle database on AIX server and found some user use iligal program such as development tool logon to my database.
I want to detect the process of illegal program and kill it.
Could you please suggest me to make detect process.
Thank you very much
Pkanonwe. (2 Replies)
Discussion started by: pkanonwe
2 Replies
3. Shell Programming and Scripting
i have this script that launches multiple xterm sessionon a CDE. i would like to test the xterm so that when i execute the script using an ordinary terminal it will detect that it will unable to launch the xterm and execute other script instead.
i tried using trap and exit status. maybe i am... (2 Replies)
Discussion started by: inquirer
2 Replies
4. Shell Programming and Scripting
Hi all,
I need to write a script to write data into cd.
Am using cdrecord command.
i need to implement the following
if ( CD-RW) ( ?? How to find this )
cdrecord blank option
else
cdrecord with out blank option
Now can you please help me to form this statement... (2 Replies)
Discussion started by: jisha
2 Replies
5. UNIX for Advanced & Expert Users
Hi,
I would like to programmatically find if given OS is SLES 10 / RHEL 3/.RHEL 4/RHEL5 etc ..
For this do we have any library call/sys call? Or should we use any sys. structure which would give me detailed info. Share me if you have any pointers.
Thanks in advance
- Krishna (1 Reply)
Discussion started by: krishnamurthig
1 Replies
6. Shell Programming and Scripting
Hi all
Just curious , is it possible to detect changes in a file and sent to email .
For ex: demo.conf
I would like to receive an email everytime a particular file(demo.conf) changes and the content added/removed and who did the change (userid). Is it possible.
Thanks
CK (4 Replies)
Discussion started by: coolkid
4 Replies
7. Shell Programming and Scripting
Hello friends,
I want to write a shell script in bash shell .
Working for the script is to detect any key pressed and disply on screen as
"you have pressed: "
For example if user pressed F5 then a messaged has to be displayed as
"you have pressed F5.
Thank you. (4 Replies)
Discussion started by: pradeepreddy
4 Replies
8. Red Hat
Hi,
Is there command to detect the newly added LUN is linux box. I tried with below commands, but that doesn't work out.
fdisk -l,
fdisk -l | grep Disk
pvscan (5 Replies)
Discussion started by: gsiva
5 Replies
9. Shell Programming and Scripting
Dear All,
My server is running crontabs of 4 different users.
I want to develop a script that whenever a particular change occurs in a crontab , it is detected and the particular change is noted into a file.
Kindly let me know of suggestions on how it can be achieved.
My algo would be:
... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies
10. Shell Programming and Scripting
whats the equivalent of detect OS in perl with an if then ?
platform='uname'
if ]; then
alias ls='ls --color=auto'
elif ]; then
alias ls='ls -G'
fi
In perl I see
perl -Mstrict -MEnglish -E 'say $OSNAME'
or
print "$^O"
Please use CODE tags as required by... (1 Reply)
Discussion started by: nixguynj
1 Replies
XEV(1) General Commands Manual XEV(1)
NAME
xev - print contents of X events
SYNOPSIS
xev [-display displayname] [-geometry geom] [-bw pixels] [-bs {NotUseful,WhenMapped,Always}] [-id windowid] [-s] [-name string] [-rv]
DESCRIPTION
Xev creates a window and then asks the X server to send it events whenever anything happens to the window (such as it being moved, resized,
typed in, clicked in, etc.). You can also attach it to an existing window. It is useful for seeing what causes events to occur and to
display the information that they contain; it is essentially a debugging and development tool, and should not be needed in normal usage.
OPTIONS
-display display
This option specifies the X server to contact.
-geometry geom
This option specifies the size and/or location of the window, if a window is to be created.
-bw pixels
This option specifies the border width for the window.
-bs {NotUseful,WhenMapped,Always}
This option specifies what kind of backing store to give the window. The default is NotUseful. Backing store refers to the the
pixels saved off-screen when the X server maintains the contents of a window; NotUseful means that the xev process will redraw its
contents itself, as necessary.
-id windowid
This option specifies that the window with the given id should be monitored, instead of creating a new window.
-s This option specifies that save-unders should be enabled on the window. Save unders are similar to backing store, but they refer
rather to the saving of pixels off-screen when the current window obscures other windows. Save unders are only advisory, and are
normally set for popup dialogs and other transient windows.
-name string
This option specifies the name to assign to the created window.
-rv This option specifies that the window should be in reverse video.
SEE ALSO
X(7), xwininfo(1), xdpyinfo(1), Xlib Programmers Manual, X Protocol Specification
See X(7) for a full statement of rights and permissions.
AUTHOR
Jim Fulton, MIT X Consortium
X Version 11 xev 1.0.4 XEV(1)