This commit is contained in:
Le_Foucheur committed 2024-09-15 22:10:50 +02:00
1 parent bd49911eca
commit e3de01bde8
3742 files changed
+64316

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/backlight/apple-panel-bl/subsystem/apple-panel-bl/max_brightness)
if [ -n "$1" ]
then
augment=$1
else
augment=10
fi
next=$(expr $(cat /sys/class/backlight/apple-panel-bl/subsystem/apple-panel-bl/brightness) + $max '*' "$augment" '/' 100)
if [ -z "$next" ]
then
exit 1
fi
if [ $next -gt $max ]
then
next=$max
fi
echo $next > /sys/class/backlight/apple-panel-bl/subsystem/apple-panel-bl/brightness
echo $(expr $next "*" 100 "/" $max)
@@ -0,0 +1 @@
{"version":1,"resource":"file:///home/jvj/script/augment_lum.sh","entries":[{"id":"3Mho.sh","timestamp":1724450326606}]}