Where am I?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Where am I?
Prev   Next
# 1  
Old 02-09-2009
Where am I?

Hi!

Is there any command to tell me where did I click? I know it's a litle confuse but it's like this.
if I execute this script by clicking with the right button of my mouse, it gaves me the dir or file where I clicked


#!/bin/sh
zenity --info --title="Echo:" --text "`echo "?????"`"

this would be useful to use in a program that I've in mind

thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
LIRCMD(8)						  System Administration Utilities						 LIRCMD(8)

NAME
lircmd - LIRC mouse daemon translates infrared signals into mouse events SYNOPSIS
lircmd [options] [config-file] DESCRIPTION
This daemon can simulate a MouseSystems, IntelliMouse or IMPS/2 type mouse. It gets the received buttons from lircd and converts them to mouse events. To make this possible, lircmd needs a config file located in /etc/lircmd.conf. In this file you have to determine which but- ton from which remote causes a mouse move or a mouse button click. You can also specify a special button which activates or deactivates the mouse mode. -h --help display this message -v --version display version -n --nodaemon don't fork to background -u --uinput generate Linux input events OPTIONS
If you provide the --nodaemon option lircmd won't fork to background. On Linux systems the --uinput option will enable automatic generation of Linux input events. lircmd will open /dev/input/uinput and inject the simulated mouse events into the Linux kernel rather than creating the /dev/lircm device. FILES
lircmd will use syslogd to output error messages. It depends on your system configuration where they will show up. DAEMONS
lircd and lircmd are daemons. You should start them in some init script depending on your system. There are some example scripts for dif- ferent distributions in the contrib directory. lircmd has to be started after lircd as it connects to the socket lircd provides. If you start lircd or lircmd from your shell prompt you will usually get back immediately to the prompt. Often people think that the pro- gram has died. But this is not an error. lircd and lircmd are daemons. Daemons always run in background. SEE ALSO
The documentation for lirc is maintained as html pages. They are located under html/ in the documentation directory. lircmd 0.9.0-pre1 October 2010 LIRCMD(8)