16 lines
364 B
Bash
Executable File
16 lines
364 B
Bash
Executable File
#!/bin/sh
|
|
LAUNCHER_CMD="fuzzel --dmenu"
|
|
OPTIONS="$(echo -e "exit\nreboot\npoweroff")"
|
|
|
|
SELECTED_OPTION=$(echo "$OPTIONS" | $LAUNCHER_CMD)
|
|
|
|
if $(test "$SELECTED_OPTION" = "exit"); then
|
|
hyprctl dispatch exit
|
|
elif $(test "$SELECTED_OPTION" = "reboot"); then
|
|
doas /sbin/reboot
|
|
elif $(test "$SELECTED_OPTION" = "poweroff"); then
|
|
doas /sbin/poweroff
|
|
else
|
|
set -e
|
|
fi
|