3 ms·
Your second point really depends on the window manager/taskbar you want to use (they don't have to be the same program). Your first and last points can be triv
by chmod775 5y ago
Your second point really depends on the window manager/taskbar you want to use (they don't have to be the same program).
Your first and last points can be trivially achieved by mapping those keys via xmodmap - for instance:
! keycodes of your right and left alt keys
keycode 108 = Mode_switch
keycode 64 = Mode_switch
! remap the i key to emit Up when pressing Alt+i
keysym i = i I Up Up
You can use the 'xev' utility to quickly find out the keycodes of keys on your system (just hover the window, press your button, and read the keycode). But all that is only necessary if your desktop environment doesn't ship with key mapping functionality already.
If you're on wayland instead of Xorg, then you'll have to use xkb to set this up.
There's also a bunch of AutoHotkey-like tools, but they're probably not necessary for something as simple as you're describing. The first that come to mind are AutoKey, SikuliX and IronAHK (a cross-platform rewrite of AutoHotkey, but I think it's discontinued).
Most desktop environments ship with functionality to (at least) run a command when you press a certain key. Others, like AwesomeWM, are way more powerful.
- dharmaturtle 5y agoThanks for this! I have some stuff to google now. Great to hear that what I want is "simple" - I think it's pretty basic too :) My AHK stuff is a bit more complicated - my scripts total about 5000 LOC, but a lot of that is inflated cause it also doubles as a window manager. It does a bunch of other minor stuff, e.g. Alt-IJKL also combos with Shift for selection and Ctrl for word skipping, but I'm sure xmodmap and other tools you mentioned can handle that.
- chmod775 5y agoThat sounds like AwesomeWM might be a good fit for you. A lot of the 'window manager' is essentially Lua, which doubles as the configuration language. If, upon pressing the F12 key, you want your windows to perform a choreographed dance before organizing themselves into neat rows ordered by name, it is the window manager for you. Since all the interesting parts are written in Lua, you can easily modify it to look and behave like anything reasonable - and most unreasonable things - you can come up with. Alt-IJKL, when remapped at a low level like that, should behave exactly like arrow keys and combo with Ctrl/Shift like you would expect. You don't have to do anything extra.