20 lines
270 B
Bash
Executable File
20 lines
270 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
|
|
lines='-l 4'
|
|
options='Log out\nShutdown\nReboot\nCancel'
|
|
|
|
answer=$(echo -e "$options" | wmenu "$lines" -i -p 'Action:')
|
|
|
|
case $answer in
|
|
'Log out')
|
|
swaymsg exit
|
|
;;
|
|
'Shutdown')
|
|
systemctl poweroff
|
|
;;
|
|
'Reboot')
|
|
systemctl reboot
|
|
;;
|
|
esac
|