My dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
296 B

  1. #!/bin/sh
  2. chosen=$(echo "Shutdown\nReboot\nSuspend\nHibernate" | dmenu -i -p "Power Management")
  3. case "$chosen" in
  4. Shutdown) killall picom; systemctl poweroff;;
  5. Reboot) killall picom; systemctl reboot;;
  6. Suspend) slock & systemctl suspend;;
  7. Hibernate) systemctl hibernate;;
  8. esac