26 lines
258 B
Bash
Executable file
26 lines
258 B
Bash
Executable file
#! /bin/bash
|
|
|
|
case "$(fuzzel --dmenu <<EOF)" in
|
|
log out
|
|
power off
|
|
reboot
|
|
soft reboot
|
|
do nothing
|
|
EOF
|
|
|
|
"log out")
|
|
riverctl exit
|
|
;;
|
|
|
|
"power off")
|
|
systemctl poweroff
|
|
;;
|
|
|
|
"reboot")
|
|
systemctl reboot
|
|
;;
|
|
|
|
"soft reboot")
|
|
systemctl soft-reboot
|
|
;;
|
|
esac
|