shutdown_handler.sh 199 B

1234567
  1. #!/bin/bash
  2. #swaymsg -t get_workspaces | jq ".[] | select(.focused == true)"
  3. if zenity --question --text 'Shutdown?' --ok-label 'Shutdown' --cancel-label 'Cancel'; then
  4. exec /sbin/shutdown now
  5. fi