#!/usr/bin/env fish brightnessctl set $argv[1] set curr (math -s0 -mround (brightnessctl get) / (brightnessctl max) "*" 100) notify-send -t 1000 -a 'brightness' -h int:value:$curr " $curr"