1 2 3 4
#!/bin/sh cur=$(light -G) val=$(rofi -dmenu -mesg "brightness: $cur" -p "" -l 0 -width 12) [ -n "$val" ] && light -S "$val"