output_logging_20240912T002337

This commit is contained in:
Le_Foucheur committed 2026-01-01 14:46:55 +01:00
1 parent cb1a0ca69d
commit 9eb6226619
3763 files changed
+307 -64993

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
#augmente la luminosité de arg%, 10% si non spécifié
#retourne le % de luminosité en fin de commande
max=$(cat /sys/class/leds/kbd_backlight/max_brightness)
if [ -n "$1" ]
then
dim=$1
else
dim=10
fi
next=$(expr $(cat /sys/class/leds/kbd_backlight/brightness) - $max '*' "$dim" '/' 100)
if [ -z "$next" ]
then
exit 1
fi
if [ $next -lt 0 ]
then
next=0
fi
echo $next > /sys/class/leds/kbd_backlight/brightness
echo $(expr $next "*" 100 "/" $max)