mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
12 lines
373 B
Bash
Executable File
12 lines
373 B
Bash
Executable File
#!/bin/sh
|
|
|
|
user_choice=$(printf "Logout\nPoweroff\nReboot\nCancel" | dmenu -i -p "What should the computer do?: ")
|
|
case "$user_choice" in
|
|
"Logout") i3 exit ;;
|
|
"Poweroff") notify-send "Shutting down in 10 seconds" && sleep 10 && shutdown ;;
|
|
"Reboot") notify-send "Rebooting!" && sleep 5 && reboot ;;
|
|
*) notify-send "No system power option selected" && return ;;
|
|
esac
|
|
|
|
|