Re: [XFree86] Re: sending ctl-alt-del to the window manager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hanspeter Roth <hampi@xxxxxxxxxxxx> writes:

>> > how can one send the key sequence ctl-alt-del to the window manager?
>> 
>> Configure the window manager to intercept that combination and press
>> the keys.  Which window manager are you using?
>
> I'm using icewm.
> But I want a program to send the key sequence. Is there a program
> capabel doing this?

xtrapin can do it.  From a script you could do it like this:

xtrapin <<EOF
Event: KeyPress        (2):det=109 scr=0 (0,0) root=32768 Msk=0 TS=5621
Event: KeyPress        (2):det=117 scr=0 (0,0) root=32768 Msk=0 TS=209
Event: KeyPress        (2):det=107 scr=0 (0,0) root=32768 Msk=0 TS=260
Event: KeyRelease      (3):det=107 scr=0 (0,0) root=32768 Msk=0 TS=143
Event: KeyRelease      (3):det=117 scr=0 (0,0) root=32768 Msk=0 TS=2892
Event: KeyRelease      (3):det=109 scr=0 (0,0) root=32768 Msk=0 TS=244
EOF

This was cut from the output of "xtrapout -e" while I pressed the keys
in question.

You could also store those lines in file and use "xtrapin -f file".
Read man xtrap for more information.

-- 
Måns Rullgård
mru@xxxxxxxxxxxx
_______________________________________________
XFree86 mailing list
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux