dotfiles.nix/scripts/kbl.fish

5 lines
187 B
Fish

function kbl -a level
test -z "$level"; and set -l level (cat /sys/class/leds/tpacpi\:\:kbd_backlight/brightness)
echo $level > /sys/class/leds/tpacpi\:\:kbd_backlight/brightness
end