Sponsored Content
Operating Systems Linux Ubuntu Detect and run command upon mouse movement Post 303032767 by drew77 on Saturday 23rd of March 2019 02:45:55 PM
Old 03-23-2019
Detect and run command upon mouse movement

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.

Code:
xinput test 9

First list input devices:

Code:
$ xinput list

If possible, I would like to use it in a bash script.
 

9 More Discussions You Might Find Interesting

1. AIX

mouse/keyb. movement detection

Hi All ! I hope you can help about this.Anyone know if AIX can monitor (process) keystrokes or mouse moves even when the application is not the active window ? Thank You. (0 Replies)
Discussion started by: monomaniac
0 Replies

2. UNIX for Dummies Questions & Answers

find command to detect installations

Hi I'm wondering how I can find all the files which were installed on certain date? For example: I'm looking for alle the files which were installed on the 11.09.06 on the system. Does somebody know how to do this? Thanks Reto (2 Replies)
Discussion started by: goldenglobe
2 Replies

3. UNIX and Linux Applications

How to automatically detect command failure

I have a shell script. In this script I executes various command and my requirement is such that if any command fails I've to terminate the shell script. To achieve this objective I'm checking the value of $? after each command and if its value is greater thaen I 'exit' the script. Is there... (2 Replies)
Discussion started by: ashok2008
2 Replies

4. Solaris

Multi Screen Mouse Movement Settings

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)
Discussion started by: corpen
4 Replies

5. Red Hat

How to detect kind of command for root only?

Dear all, Please help me clarify why i cannot run command in /sbin directory (ex: /sbin/fdisk -l )! I've checked permission on files which belong /sbin directory with execute permission. However, i still cannot run with normal user. Sorry for my English. thanks all, (5 Replies)
Discussion started by: all4cfa
5 Replies

6. Shell Programming and Scripting

Script for telnet and run one command kill it and run another command using while loop

( sleep 3 echo ${LOGIN} sleep 2 echo ${PSWD} sleep 2 while read line do echo "$line" PID=$? sleep 2 kill -9 $PID done < temp sleep 5 echo "exit" ) | telnet ${HOST} while is executing only command and exits. (5 Replies)
Discussion started by: sooda
5 Replies

7. Shell Programming and Scripting

Using grep command to detect presence of script run

i have this line of code on a korn shell script to detect the presence of script run: ISRUNNING=`ps -eaf -o args | grep -i sfs_load_file.ksh | grep -v grep | wc -l` sometimes this returns either 1, 2, or 3. when it returns 2 or 3 that tells us that there are more than 1 script of... (8 Replies)
Discussion started by: wtolentino
8 Replies

8. Shell Programming and Scripting

Run command if no mouse or keyboard input

I would like a script that would run pm-suspend if there has been no keyboard or mouse input for a specified time. ------ Post updated at 11:17 AM ------ Never mind. I found a setting in power management that does what I need. (0 Replies)
Discussion started by: drew77
0 Replies

9. UNIX for Beginners Questions & Answers

How to detect which process is run by what?

Hello, I am running under ubuntu 14.04 Very long time ago, I set a script (ban.sh) to block ip addresses abusing my system which was not active. I have not touched the server over six months or more. Today, after restart the system, ban.sh started running all of a sudden and keep submitting... (4 Replies)
Discussion started by: baris35
4 Replies
gnome-mouse-properties(1)					   User Commands					 gnome-mouse-properties(1)

NAME
gnome-mouse-properties - set your mouse preferences SYNOPSIS
gnome-mouse-properties [gnome-std-options] DESCRIPTION
The Mouse preference tool allows you to configure your mouse for right-hand use or left-hand use. You can also specify the speed and sensi- tivity of mouse movement. OPTIONS
The following options are supported: gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5). EXAMPLES
Example 1: Launching the Mouse preference tool example% gnome-mouse-properties EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/gnome-mouse-proExecutable for Mouse preferences tool ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+------------------------------+ |Availability |SUNWgnome-desktop-preferences | +-----------------------------+------------------------------+ |Interface stability |External | +-----------------------------+------------------------------+ SEE ALSO
Preference Tools Manual Latest version of the GNOME Desktop User Guide for your platform. gnome-control-center(1), gnome-std-options(5) NOTES
Written by Glynn Foster, Sun Microsystems Inc., 2003. SunOS 5.10 2 Oct 2003 gnome-mouse-properties(1)
All times are GMT -4. The time now is 03:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy