You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
322 B

#!/usr/bin/env bash
e='󰗽 Logout'
u='󰖔 Suspend'
r='󰑐 Reboot'
s='󰐥 Shutdown'
selected=$(echo -e "$e\n$u\n$r\n$s" | tofi "$@")
case "$selected" in
"$e") exec hyprctl dispatch 'hl.dsp.exit()';;
"$u") exec systemctl suspend;;
"$r") exec systemctl reboot;;
"$s") exec systemctl poweroff -i;;
esac