My dotfiles
25개 이상의 토픽을 선택하실 수 없습니다. 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