~yerinalexey/dotfiles

ref: 144a38b0aa0a39003633d53b77fe4e3ca29c054b dotfiles/scripts/shutdown-menu -rwxr-xr-x 285 bytes
144a38b0Alexey Yerin river,update-volume: fix old wob crashes 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

result="$(printf "shutdown\nreboot\nlogout\nconfig" | \
	bemenu -p "shutdown>" -i -l -1)"

case "$result" in
	# Now it's safe to turn off your computer
	shutdown) doas poweroff ;;
	reboot) doas reboot ;;
	logout) riverctl exit ;;
	config) sh ~/.config/river/init ;;
esac