Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Kitty Hooch

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 325 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

irxevent



SYNOPSIS

       irxevent [config file]


DESCRIPTION

       Irxevent  is  a program that I wrote to send button clicks
       and key presses to X  applications  triggered  by  a  LIRC
       driven  remote  control.  You  can  control  your favorite
       CD/MP3 player or your TV tuner  program  or  any  other  X
       application  that  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.

       -h --help
              display usage summary

       -V --version
              display version


FILES

       Irxevent works with the same config  file  as  irexec  and
       irpty  (~/.lircrc).  For a complete sample .lircrc look at
       examples/lircrc.

       Part of your .lircrc could look like this:

          begin
                  prog = irxevent
                  button = VIDEO_UP
                  config = Key SHIFT-KP_Add CurrentWindow
          end
          begin
                  prog = irxevent
                  button = VIDEO_DOWN
                  config = Key SHIFT-KP_Subtract CurrentWindow
          end
          begin
                  prog = irxevent
                  button = STOP
                  config = Key ctrl-c CurrentWindow
          end
          begin
                  prog = irxevent
                  button = 0
                  config = Key f xawtv
                  config = Key f xawtv
          end
          begin
                  prog = irxevent
                  button = POWER
                  config = Key q xawtv
          end
          end

       Simply said config = lines may look like this:

          config = Key [shift-][ctrl-][alt-]<key> <windowname> | WindowID id
               | CurrentWindow | RootWindow
          config = Button <button> <x> <y> <windowname> | CurrentWindow
          config = xy_Key <x> <y> [shift-][ctrl-][alt-]<key> <windowname>
               | WindowID id | CurrentWindow | RootWindow

       some more examples:

          config = Key Up xawtv
          config = Key Down xawtv
          config = Button 1 50 110 xclickme
          config = Key q xawtv
          config = Key ctrl-c mpg123
          config = Key shift-Page_Up rxvt

       In BNF this looks like:

          LINE    = "config =" <KEY|BUTTON|XYKEY> <TARGET>
          XYKEY   = "xy_Key" <x_position> <y_position> <MOD>Keyname
          KEY     = "Key" <MOD>Keyname
          MOD     = ["shift-"]["numlock-"]["ctrl-"]["alt-"]["meta-"]
                    ["numlock-"]["mod3-"]["mod4-"]["scrlock-"]
          BUTTON  = "Button" <1..5> <x_position> <y_position>
          TARGET  = Windowname | "WindowID" id | "CurrentWindow" | "RootWindow"

          Keyname:
            is the key symbol that is declared in X windows. E.g.
            "Up" refers to the cursor arrow pointing up. "KP_Add"
            is the plus sign on the key pad. Just take a look  at
            irxevent.keys (in the documentation directory) if you
            are not sure about a symbol's name.
          Windowname:
            can be the first characters of the window  name  dis­
            played by the window manager or the name that is dis­
            played below the icon. Some  programs  use  the  name
            displayed by the window manager to show a lot of sta­
            tus information but don't change the icon name  (like
            xawtv).  Others append information to the window name
            ("GQmpeg - kill_windooz.mp3"). If neither window name
            nor  icon name match the given Windowname information
            from XClassHint(3x) will be checked.
          CurrentWindow:
            refers to the active window as returned by XGetInput­
            Focus(3x).  Most  times  this is the window with your
            mouse pointer in it.
          RootWindow:
            refers to the root window  as  returned  by  RootWin­
            dow(3x). You may need this to send events to the win­

       on your keypad).

       There  are  programs  that  do not accept any synthetic X-
       events by default because they can  cause  security  prob­
       lems.  Currently  xterm  and  xemacs  are  known to ignore
       events simulated by irxevent.

       You can however  make  xterm  accept  external  events  by
       enabling  "Allow  SendEvents"  in the "Main Options" (hold
       down the Ctrl button  and  press  the  left  mouse  button
       inside  the xterm window). You can as well place this line
       into your .Xresources file to change this permanently:

          XTerm.vt100.allowSendEvents: true

       Yet another possibility is to start xterm like this:

          xterm -xrm "XTerm.vt100.allowSendEvents: true"

       xemacs will accept events if you set a built-in  variable.
       The following was taken from the online help:

          `x-allow-sendevents' is a built-in boolean variable.

          Value: t

          Documentation:

          *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 and enter the following expression):

                (setq x-allow-sendevents t)

          Placing this line into your .xemacs-options file should
          have the same result.

       If you have problems sending  events  please  drop  me  an
       email.


AUTHOR

       Written by Heinrich Langos <heinrich@mad.scientist.com>.


SEE ALSO

       The  documentation  for  lirc is maintained as html pages.
       They are located under html/ in the  documentation  direc­
       tory.
  
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can choose larger fonts by selecting a different themes.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds