You are not logged in.

#1 2021-02-01 18:53:39

Colonel Panic
Member
Registered: 2018-11-13
Posts: 283

[Solved]Key bindings using Home, End, Page Up and Page Down

Hi everybody. I'm trying to extend the range of the rc.xml file  in Openbox by attaching key bindings to the Page_Up, Page_Down, Home and End keys but so far I haven't been able to find out which letter combinations I would use to indicate these keys in the file.

Can anyone tell me where I would find this information please?

Thanks in advance,

CP .

Last edited by Colonel Panic (2021-02-10 20:33:43)

Offline

#2 2021-02-01 20:48:25

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,321
Website

Re: [Solved]Key bindings using Home, End, Page Up and Page Down

You can probably figure out hex code or name for key with something like 'xev' and then use the hex syntax or name found
http://openbox.org/wiki/Help:Bindings

Example, this looks like for page-up and page-down

KeyRelease event, serial 48, synthetic NO, window 0x2200001,
    root 0x14c, subw 0x0, time 184241, (123,108), root:(1397,872),
    state 0x0, keycode 112 (keysym 0xff55, Prior), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 48, synthetic NO, window 0x2200001,
    root 0x14c, subw 0x0, time 187228, (123,108), root:(1397,872),
    state 0x0, keycode 117 (keysym 0xff56, Next), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 

Last edited by brontosaurusrex (2021-02-01 21:04:41)

Offline

#3 2021-02-02 02:23:35

damo
....moderator....
Registered: 2015-08-20
Posts: 6,622

Re: [Solved]Key bindings using Home, End, Page Up and Page Down

Yes, use xev:  "Home", "End", "Prior",  "Next"


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#4 2021-02-02 19:13:00

Colonel Panic
Member
Registered: 2018-11-13
Posts: 283

Re: [Solved]Key bindings using Home, End, Page Up and Page Down

Thanks both! I'll try your suggestions soon (I'm currently in Slackware and XFce, but I can get back to Openbox in another distro).

Last edited by Colonel Panic (2021-02-02 19:14:25)

Offline

#5 2021-02-04 06:26:52

ohnonot
...again
Registered: 2015-09-29
Posts: 5,487

Re: [Solved]Key bindings using Home, End, Page Up and Page Down

damo wrote:

Yes, use xev:  "Home", "End", "Prior",  "Next"

And you shouldn't use these by themselves, because most apps already use them.

Also "Alt-Home" is a popular shortcut in apps.

You probably want to combine these with the Super/Windows key:
<keybind key="W-Home">...
Since I'm running out of windows key shortcuts I sometimes use Ctrl-Alt as well:
<keybind key="C-A-Home">...

You get the picture.


Give to COVAX! Here or here. (explanation)

Offline

#6 2021-02-10 20:32:54

Colonel Panic
Member
Registered: 2018-11-13
Posts: 283

Re: [Solved]Key bindings using Home, End, Page Up and Page Down

Thanks, yes I do. Unfortunately I've had 'flu this last week and things Openbox have had to take a back seat. I'll mark the thread "Solved" anyway because I think it is now.

Thanks again to everyone who's helped.

Last edited by Colonel Panic (2021-02-10 20:34:16)

Offline

Board footer

Powered by FluxBB