14 lines
477 B
Bash
Executable File
14 lines
477 B
Bash
Executable File
#!/bin/sh
|
|
|
|
choice=$(echo -e "Exit\nReboot\nShutdown\nSuspend\nLock\nBlack\nUEFI" | rofi -dmenu -p "Power Menu:" -i)
|
|
|
|
case "${choice}" in
|
|
Exit) swaymsg exit ;;
|
|
Reboot) systemctl reboot ;;
|
|
Shutdown) shutdown -h now ;;
|
|
Suspend) ~/.config/sway/scripts/lock-telegram.sh && systemctl suspend ;;
|
|
Lock) ~/.config/sway/scripts/lock-telegram.sh && swaylock -f ;;
|
|
Black) magick canvas:none PNG:- | feh --class black -YFx - ;;
|
|
UEFI) systemctl reboot --firmware-setup ;;
|
|
esac
|