⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 irxevent.1

📁 很少见的linux下的红外口的工具
💻 1
字号:
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.24..TH IRXEVENT "1" "October 2002" "irxevent 0.6.6" FSF.SH NAMEirxevent - infrared X-event sender.SH SYNOPSIS.B irxevent[\fIconfig file\fR].SH DESCRIPTIONIrxevent is a program that I wrote to send button clicks and key presses to Xapplications triggered by a LIRC driven remote control. You can control yourfavorite CD/MP3 player or your TV tuner program or any other X applicationthat responds to keyboard or mouse input. If you like to you can send emacs^X^S from your armchair.Irxevent is a complement to irexec and irpty..TP\fB\-h\fR \fB\-\-help\fRdisplay usage summary.TP\fB\-V\fR \fB\-\-version\fRdisplay version.SH FILESIrxevent works with the same config file as irexec and irpty (~/.lircrc). Fora complete sample .lircrc look at examples/lircrc..B Part of your .lircrc could look like this:.nf.RS 3begin        prog = irxevent        button = VIDEO_UP            config = Key SHIFT-KP_Add CurrentWindowendbegin        prog = irxevent        button = VIDEO_DOWN        config = Key SHIFT-KP_Subtract CurrentWindowendbegin        prog = irxevent        button = STOP        config = Key ctrl-c CurrentWindowendbegin        prog = irxevent        button = 0        config = Key f xawtv        config = Key f xawtvendbegin        prog = irxevent        button = POWER        config = Key q xawtvendbegin        prog = irxevent        button = CH_DOWN        config = Button 1 329 92 kscdendbegin        prog = irxevent        button = UP        config = Button 1 110 80 GQmpegendbegin        prog = irxevent        button = DOWN        config = Button 1 130 80 GQmpegend.RE.fi.B Simply said \fIconfig\fB =  lines may look like this:.nf.RS 3config = Key [shift-][ctrl-][alt-]<key> <windowname> | WindowID id 	| CurrentWindow | RootWindowconfig = Button <button> <x> <y> <windowname> | CurrentWindowconfig = xy_Key <x> <y> [shift-][ctrl-][alt-]<key> <windowname> 	| WindowID id | CurrentWindow | RootWindow.RE.fi.B some more examples:.nf.RS 3config = Key Up xawtvconfig = Key Down xawtvconfig = Button 1 50 110 xclickmeconfig = Key q xawtvconfig = Key ctrl-c mpg123config = Key shift-Page_Up rxvt.RE.fi.B In BNF this looks like:.RS 3.nfLINE    = "config =" <KEY|BUTTON|XYKEY> <TARGET>XYKEY   = "xy_Key" <x_position> <y_position> <MOD>KeynameKEY     = "Key" <MOD>KeynameMOD     = ["shift-"]["numlock-"]["ctrl-"]["alt-"]["meta-"]          ["numlock-"]["mod3-"]["mod4-"]["scrlock-"]BUTTON  = "Button" <1..5> <x_position> <y_position>TARGET  = Windowname | "WindowID" id | "CurrentWindow" | "RootWindow".fi.I Keyname:.RS 2is the key symbol that is declared in X windows. E.g. "Up" refers to thecursor arrow pointing up. "KP_Add" is the plus sign on the key pad. Just takea look at irxevent.keys (in the documentation directory) if you are not sureabout a symbol's name..RE.I Windowname:.RS 2can be the first characters of the window name displayed by the window manageror the name that is displayed below the icon. Some programs use the namedisplayed by the window manager to show a lot of status information but don'tchange the icon name (like xawtv). Others append information to the windowname ("GQmpeg - kill_windooz.mp3"). If neither window name nor icon name matchthe given Windowname information from XClassHint(3x) will be checked..RE.I CurrentWindow:.RS 2refers to the active window as returned by XGetInputFocus(3x). Most times thisis the window with your mouse pointer in it..RE.I RootWindow:.RS 2refers to the \fIroot\fR window as returned by RootWindow(3x). You may needthis to send events to the window manager..RE.I WindowID id:.RS 2refers to the window with window identifier \fIid\fR. \fIid\fR should be adecimal number. It is useful when irxevent can't find the desired window byother means..RE.RE.SH TROUBLESHOOTINGIf you have problems finding the coordinates for a button click you can tryxev -id <window_id>. The window_id can be found using xwininfo. If xev andxwininfo are not part of your distribution you can find them at a FTP serverusing the search engine at: http:\/\/ftpsearch.ntnu.no/ . xev also reports thenames of key symbols like "Control_L" (your left control key) or "KP_Subtract"(the 'minus' key on your keypad).There are programs that do not accept any synthetic X-events by defaultbecause they can cause security problems. Currently xterm and xemacs are knownto ignore events simulated by irxevent.You can however make xterm accept external events by enabling "AllowSendEvents" in the "Main Options" (hold down the Ctrl button and press theleft mouse button inside the xterm window). You can as well place this lineinto your .Xresources file to change this permanently:.RS 3XTerm.vt100.allowSendEvents: true.REYet another possibility is to start xterm like this:.RS 3xterm -xrm "XTerm.vt100.allowSendEvents: true".RExemacs will accept events if you set a built-in variable. The following wastaken from the online help:.RS 3`x-allow-sendevents' is a built-in boolean variable.Value: tDocumentation:*Non-nil means to allow synthetic events.  Nil means they are ignored.Beware: allowing emacs to process SendEvents opens a big security hole.In order to allow events you have to evaluate this lisp code (press Meta-x andenter the following expression):	 (setq x-allow-sendevents t)Placing this line into your .xemacs-options file should have the same result..REIf you have problems sending events please drop me an email..SH AUTHORWritten by Heinrich Langos <heinrich@mad.scientist.com>..SH "SEE ALSO"The documentation for.B lircis maintained as html pages. They are located under html/ in thedocumentation directory.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -