11 lines
322 B
Bash
Executable File
11 lines
322 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
case "$(printf "logout\nreboot\nshutdown\nsleep\n" | wofi --dmenu -i -H 500 -W 250 -x 0 -y 0 )" in
|
|
'logout') swaymsg exit;;
|
|
'sleep') swaylock -f -F -e -i ~/.config/sway/wall -k -l -s fill --font IBM Plex Mono && systemctl suspend ;;
|
|
'reboot') reboot ;;
|
|
'shutdown') poweroff ;;
|
|
*) exit 1 ;;
|
|
esac
|
|
|