1 2 3 4
#!/bin/sh cur=$(light -G) val=$(dmenu -p "brightness ($cur):" < /dev/null) [ -n "$val" ] && light -S "$val"