2022-11-23 20:18:02 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
case "$(printf "logout\nreboot\nshutdown\nsleep\n" | wofi --dmenu -i -H 500 -W 250 -x 0 -y 0 )" in
|
2023-06-04 04:06:31 +00:00
|
|
|
'logout') swaymsg exit;;
|
2023-12-22 03:56:51 +00:00
|
|
|
'sleep') loginctl suspend ;;
|
|
|
|
'reboot') sudo /run/current-system/profile/sbin/reboot ;;
|
|
|
|
'shutdown') sudo /run/current-system/profile/sbin/halt ;;
|
2023-06-04 04:06:31 +00:00
|
|
|
*) exit 1 ;;
|
|
|
|
esac
|