1 2 3 4
#!/bin/sh cur=$(light -G) val=$(b-prompt '' "brightness ($cur):") [ -n "$val" ] && light -S "$val"