You are not logged in.

#1 2021-07-29 04:11:25

serat
Member
Registered: 2020-01-19
Posts: 31

[solved] map <super> + <up arrow> to <page up>

Hi,
Since my laptop keyboard does not have HOME, END, PAGE_UP, PAGE_DOWN keys, I was hoping to map super key (<WIN>) + arrow combinations to these.

As I understand it, xkb is the way to do it. I did (try to) read the wiki (https://wiki.archlinux.org/title/X_keyboard_extension). But I couldn't figure out how to do this.

In case it is relevant, I am using openbox/lxqt. Any help will be much appreciated.

Thank you.

Last edited by serat (2021-07-30 05:04:02)

Offline

#2 2021-07-29 06:48:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,366

Re: [solved] map <super> + <up arrow> to <page up>

my laptop keyboard does not have HOME, END, PAGE_UP, PAGE_DOWN

Sure? What model?
They're often behind some Fn key to save space, but not having any seems unlikely.

The easiest way to get there is a shortcut daemon like xbindkeys or sxhkd
Edit: or in your case https://wiki.archlinux.org/title/Openbox#Keybinds

Otherwise you could add those to the arrow keys 3rd layer, but that will require a custom xkb keyboard layout (though you can inherit your standard one and augment it) and also to turn super into the 3rd level shift (typically altgr) what you probably don't want to do.

Last edited by seth (2021-07-29 06:50:53)

Offline

#3 2021-07-30 03:25:04

serat
Member
Registered: 2020-01-19
Posts: 31

Re: [solved] map <super> + <up arrow> to <page up>

I checked the keybinds in openbox. As I understand it, you can bind key combinations to specific actions (http://openbox.org/wiki/Help:Actions).

But I do not want an "action." I want to make <super> + <up arrow> key act like a <page up> key (which my laptop does not have). And similarly, for <super> + <down arrow>

Am I misunderstanding something in the openbox keybinds?

Offline

#4 2021-07-30 04:05:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,500
Website

Re: [solved] map <super> + <up arrow> to <page up>

Yes and no.  Openbox's keybinds (or any other key binding system) is only half the solution.  You then need another tool / program to simulate the page-up / page-down key presses.  I'm most familiar with xdotool, but I've heard it's going out of style now ... here are some other alternatives.  Each one has their own syntax which can be found in their documentation, but any of these could be used from an openbox action in a keybind in order to simulate the page up/down keys.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2021-07-30 05:03:30

serat
Member
Registered: 2020-01-19
Posts: 31

Re: [solved] map <super> + <up arrow> to <page up>

Thank you! This makes sense.

Offline

Board footer

Powered by FluxBB