You are not logged in.

#1 2010-04-10 05:45:21

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

[solved] URXVT - disable keyboard input?

I am trying to create a urxvt window on my desktop that runs a script on startup.
I have already set the position and no borders options. I would like to set it so that
it can not be closed by keyboard input? Prefer to do it with commandline options,
not in my Xdefaults. Can anyone help?
I have looked at man page and googled it, with no luck.

Also, while I am at it.
how do I display eth0 traffic in a bash script? Hopefully using existing core
utils?

abandoned this project

Last edited by orphius1970 (2010-04-10 07:33:48)


AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

#2 2010-04-10 06:56:36

hbekel
Member
Registered: 2008-10-04
Posts: 311

Re: [solved] URXVT - disable keyboard input?

That depends on what you mean by "keyboard input". Something like Alt-F4 is a window manager/de thing.

Urxvt will terminate when the program it runs terminates (unless you tell it to -hold). If you want to prevent the user from typing "exit", overwrite exit with a bash function. If you want to prevent "Ctrl-c" or "Ctrl-d", look at man stty (intr and eof)

Offline

#3 2010-04-10 07:05:30

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

Re: [solved] URXVT - disable keyboard input?

sorry I wasn't more specific. I know that urxvt can be told to remap keys from command line when opening it.
Just like you can tell it no scrollbar with the +sb option. I am opening the particular urxvt window with:
"urxvt -name sysmon +sb +bc -cr black -e ssm"
I would like to add keysym (keymap) options to that, so I can override Ctrl-C, Alt-F4, etc..

DISREGARD! dumped this project

Last edited by orphius1970 (2010-04-10 07:33:10)


AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

Board footer

Powered by FluxBB