Redefine a regular/laptop keyboard to have caps as level5 modifier with special combinations, e.g.
- vim
- caps + h = arrow left
- caps + j = arrow down
- caps + k = arrow up
#!/usr/bin/env perl | |
# forecast.pl is Copyright (C) 2014, by Dave Jacoby. | |
# It is free software; you can redistribute it and/or modify it under the terms of either: | |
# | |
# a) the GNU General Public License as published by the Free Software Foundation; either external linkversion 1, or (at your option) any later versionexternal link, or | |
# | |
# b) the "Artistic License". |
#!/bin/bash | |
# needs openssl 1.1+ | |
# needs `basez` https://manpages.debian.org/testing/basez/base32hex.1.en.html | |
# (but something else that decodes the base64 and re-encodes the raw key bytes | |
# to base32 is probably fine too) | |
##### generate a key | |
openssl genpkey -algorithm x25519 -out /tmp/k1.prv.pem |