I am trying to find a way to run a command upon any movement of a mouse.
The 1st statement shows the mouse co-ordinates. So it can detect mouse movement.
xinput test 9
First list input devices:
$ xinput list
If possible, I would like to use it in a bash script. (2 Replies)
Hi,
I am newbie in unix scripting, I have written a bash script of SFTP that transfer some files from one folder to another within a server , I have two folders test and temp in the directory /home/p5060/sxk124 , the temp folder(/home/p5060/sxk124/temp)contain the files which I through my... (5 Replies)
Hey, for the purpose of a research project I need to know if a specific type of parallel processing is being utilized by any user-run programs. Is there a way to detect whether a program either returns a value to another program at the end of execution, or just utilizes any form of parallel... (4 Replies)
Hello,
I have a problem with multiscreen configuration. My solaris 8 is configured to work with two monitors. Physically they cannot be interchanged. My question is how to configure openwin in order to have mouse pointer to move right to left from screen to screen because now it is preconfigured... (4 Replies)
Hi, I'm using rxvt in Cygwin and I'm wondering how to change my mouse bindings from the middle button for pasting to the right button. The main reason why I want to do this is because my laptop doesn't have a middle mouse button. Thanks for any help! (2 Replies)
Hello all,
I'm hoping to get a little insight from some of the wily veterans amongst you.
I've written a script to check for new outgoing files to our vendors located on our ssl server. It seems to be working ok, but the final question here, will be one of logic, and/or a better way to... (4 Replies)
tk_focusNext(n) Tk Built-In Commands tk_focusNext(n)
__________________________________________________________________________________________________________________________________________________NAME
tk_focusNext, tk_focusPrev, tk_focusFollowsMouse - Utility procedures for managing the input focus.
SYNOPSIS
tk_focusNext window
tk_focusPrev window
tk_focusFollowsMouse
_________________________________________________________________DESCRIPTION
tk_focusNext is a utility procedure used for keyboard traversal. It returns the "next" window after window in focus order. The focus order
is determined by the stacking order of windows and the structure of the window hierarchy. Among siblings, the focus order is the same as
the stacking order, with the lowest window being first. If a window has children, the window is visited first, followed by its children
(recursively), followed by its next sibling. Top-level windows other than window are skipped, so that tk_focusNext never returns a window
in a different top-level from window.
After computing the next window, tk_focusNext examines the window's -takefocus option to see whether it should be skipped. If so,
tk_focusNext continues on to the next window in the focus order, until it eventually finds a window that will accept the focus or returns
back to window.
tk_focusPrev is similar to tk_focusNext except that it returns the window just before window in the focus order.
tk_focusFollowsMouse changes the focus model for the application to an implicit one where the window under the mouse gets the focus. After
this procedure is called, whenever the mouse enters a window Tk will automatically give it the input focus. The focus command may be used
to move the focus to a window other than the one under the mouse, but as soon as the mouse moves into a new window the focus will jump to
that window. Note: at present there is no built-in support for returning the application to an explicit focus model; to do this you will
have to write a script that deletes the bindings created by tk_focusFollowsMouse.
KEYWORDS
focus, keyboard traversal, top-level
Tk 4.0 tk_focusNext(n)