SETLEDS(1)

๐Ÿ“ฆ
version 2.10.0 ยท 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

โœจ SETLEDS โœจ

okay bestie so this is setleds from the kbd manual, and it's literally the little tool that sets your keyboard leds ๐Ÿ’ก โ€” no cap.


๐ŸŒธ SYNOPSIS ๐ŸŒธ

setleds [-v] [-L] [-D] [-F] [{+|-}num] [{+|-}caps] [{+|-}scroll]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

so basically setleds reports and changes the led flag settings of a VT โ€” that's NumLock, CapsLock and ScrollLock ๐ŸŽ€. Run it with no arguments and it just prints the current settings, like a vibe check for your keyboard. Give it arguments and it sets or clears the flags you named (and leaves all the others exactly how they were, it's very respectful like that ๐Ÿซถ). And if you pass the -v flag, it'll tell you the settings before and after the change. receipts. ๐Ÿ’…

the led flag settings are specific for each VT (and it's the VT that corresponds to stdin that gets used) โœจ

by default (or with option -F), setleds will only change the VT flags (and their setting may be reflected by the keyboard leds).

with option -D, setleds will change both the VT flags and their default settings (so that a subsequent reset will not undo the change). this is lowkey so useful for people who always want to have numlock set ๐Ÿ‘‘

with option -L, setleds will not touch the VT flags, but only change the leds. from this moment on, the leds will no longer reflect the VT flags (but display whatever is put into them) ๐Ÿ˜ญ. the command setleds -L (without further arguments) will restore the situation in which the leds reflect the VT flags ๐ŸŒˆ

one might use setleds in /etc/rc to define the initial and default state of NumLock, e.g. by

INITTY=/dev/tty[1-8]
for tty in $INITTY; do
     setleds -D +num < $tty
done

โœจ OPTIONS โœจ

  • -num +num โ€” clear or set NumLock. (at present, the NumLock setting influences the interpretation of keypad keys. pressing the NumLock key complements the NumLock setting.)
  • -caps +caps โ€” clear or set CapsLock. (at present, the CapsLock setting complements the Shift key when applied to letters. pressing the CapsLock key complements the CapsLock setting.)
  • -scroll +scroll โ€” clear or set ScrollLock. (at present, pressing the ScrollLock key (or ^S/^Q) stops/starts console output.)

๐Ÿ’€ BUGS ๐Ÿ’€

in keyboard application mode the NumLock key does not influence the NumLock flag setting. yes fr, that's just how it is ๐Ÿ™ˆ


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

Andries Brouwer <aeb@cwi.nl>


๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

loadkeys(1)


okay that's the whole page, you ate that ๐Ÿ“ this was the kbd manual, version dated 24 Sep 1994 โ€” slay, periodt ๐Ÿ’œโœจ