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