Write a script for shutdown options

This commit is contained in:
Ohad Livne 2025-06-04 22:45:43 +03:00
parent 3d97448fee
commit c0465ec22d
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
2 changed files with 20 additions and 2 deletions

18
.local/bin/leave Executable file
View file

@ -0,0 +1,18 @@
#! /usr/bin/sh
listopts() {
echo "⏼ Shut down"
echo "⟲ Reboot"
echo "🚪 Log out"
}
option=$(listopts | fuzzel --dmenu)
case "${option}" in
"⏼ Shut down")
systemctl poweroff;;
"⟲ Reboot")
systemctl reboot;;
"🚪 Log out")
swaymsg exit;;
esac