dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

wBrightness (291B)


      1 #!/bin/bash
      2 
      3 (
      4   echo "$(brightnessctl g) (current brightness)"
      5   for b in 500 400 300 200 100 49 29 9 off; do
      6     echo "$b"
      7   done
      8 ) | wmenu -i -l 9 | awk '{print $1}' | while read bri; do
      9   if [ "$bri" = "off" ]; then
     10     brightnessctl s 0
     11   else
     12     brightnessctl s "$bri"
     13   fi
     14 done
     15 
     16 
     17 
     18 
     19