bin

git clone git://git.codymlewis.com/bin.git
Log | Files | Refs

powermenu (290B)


      1 #!/bin/bash
      2 
      3 PWR_OPT=$(echo -e "Cancel\nExit WM\nShutdown\nReboot"  | dmenu -i -p "What would you like to do?" -l 4)
      4 
      5 case $PWR_OPT in
      6     "Exit WM")
      7         xsetroot -name "fsignal:1"
      8     ;;
      9     "Shutdown")
     10         sudo shutdown -h now
     11     ;;
     12     "Reboot")
     13         sudo reboot
     14     ;;
     15 esac