SETMETAMODE(1)
๐ SETMETAMODE(1) ๐
okay so bestie, we're in the General Commands Manual section today and this little icon is called setmetamode โ she's the one who decides how your keyboard's Meta key behaves. yep. that Meta key. the mysterious one. we're gonna define her whole vibe. โจ
๐ธ NAME ๐ธ
setmetamode โ define the keyboard meta key handling ๐
โจ SYNOPSIS โจ
setmetamode [ options ] [ argument ]
๐ฆ DESCRIPTION ๐ฆ
okay so here's the tea. if you run setmetamode with no argument, she just tells you the current Meta key mode. no changes, no drama, just receipts. ๐
but if you DO give her an argument? she sets the Meta key mode to whatever you indicated. and then โ because she's a considerate queen โ she reports the setting before and after the change. so you always know what you did. periodt. ๐
now, the important deets: the Meta key mode is specific for each VT, and she uses the VT that corresponds to stdin. so like, every virtual terminal has her own opinion about the Meta key. main character energy, honestly. ๐
one might use setmetamode in /etc/rc to define the initial state of the Meta key mode, like this:
INITTY=/dev/tty[1-8]
for tty in $INITTY; do
setmetamode escprefix < $tty
done
look at her go. setting up all eight ttys before you even wake up. obsessed. ๐
๐ ARGUMENTS ๐
esc,prefix,escprefixโ the Meta key sends an Escape prefix. classic. iconic. sending that little escape ahead of everything like a hype woman. ๐ซmeta,bit,metabitโ the Meta key sets the high order bit of the character. highkey just flipping that top bit. no cap. ๐ฅ
๐ OPTIONS ๐
-C,--console=DEVโ the console device to be used. tell her which console you're talking about, bestie. ๐ฅ๏ธ-V,--versionโ print version number. she'll tell you how fresh she is. โญ-h,--helpโ print this usage message. the "help me pls" option. ๐
๐ซถ AUTHORS ๐ซถ
Andries Brouwer <aeb@cwi.nl> โ the legend herself. thank you for your service. ๐
๐ SEE ALSO ๐
loadkeys(1), kbdinfo(1) โ go read these too, they're giving the same energy. ๐ง
๐ lowkey reminder: the Meta mode is per-VT, so if you set it and it doesn't "stick" somewhere else, that's not a bug, that's just her being specific. iykyk.
and that's the whole page!! written by the kbd girlies, dated 30 Jan 1994 (yes she's vintage, vintage is iconic ๐), and honestly? she ate. bye bestie!! ๐โจ๐
๐ฆ where this page comes from
- alpine 3.22: kbd-doc 2.7.1-r1 ยท GPL-2.0-or-later
- alpine 3.23: kbd-doc 2.8.0-r0 ยท GPL-2.0-or-later
- alpine 3.24: kbd-doc 2.8.0-r0 ยท GPL-2.0-or-later
- arch rolling: kbd 2.10.0-1 ยท GPL-2.0-or-later
- fedora 43: kbd 2.8.0-3.fc43 ยท GPL-2.0-or-later
- fedora 43: kbd 2.8.0-4.fc43 ยท GPL-2.0-or-later
- fedora 44: kbd 2.9.0-3.fc44 ยท GPL-2.0-or-later
- fedora 44: kbd 2.9.0-4.fc44 ยท GPL-2.0-or-later
- nixos 26.05: kbd 2.9.0
- nixos 26.05: kbd-vlock 2.9.0
- nixpkgs unstable: kbd 2.9.0
- nixpkgs unstable: kbd-vlock 2.9.0
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms