Re: Openrc equivalant to...
Reply #1 –
Here is a handy dmenu script with all of the above mentioned equivalents:
#!/bin/sh
powermenu() {
options=" Poweroff\n Reboot\n Suspend\n Hibernate\n Logout\n Lock"
selected=$(echo "$options" | dmenu -i -p "Session:" )
if [ "$selected" = " Poweroff" ]; then
loginctl poweroff
elif [ "$selected" = " Reboot" ]; then
loginctl reboot
elif [ "$selected" = " Suspend" ]; then
loginctl suspend
elif [ "$selected" = " Hibernate" ]; then
loginctl hibernate
elif [ "$selected" = " Logout" ]; then
pkill dwm
elif [ "$selected" = " Lock" ]; then
slock
return
fi
}
powermenu
Edit: The blocks are just icons in case you are wondering about them.