shutdown_handler.sh 194 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 sudo poweroff
  5. fi