2026-03-15 20:20:28 +01:00
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
|
|
|
|
|
set brightness (brightnessctl --class=backlight get)
|
|
|
|
|
set max_brightness (brightnessctl --class=backlight max)
|
|
|
|
|
|
|
|
|
|
set brightness (math --scale 0 --scale-mode round "($brightness / $max_brightness) * 100")
|
|
|
|
|
|
2026-03-16 17:59:06 +01:00
|
|
|
notify-send -c 'status' -h int:value:$brightness "Brightness" "$brightness%"
|