summaryrefslogtreecommitdiff
path: root/bin/.bin/shut
blob: 2d24299461f19b31afccf54e8d2790a0ca986939 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -p "Sayonara" -fn "JetBrains Mono Nerd Font Mono:style=medium:size=9" -nb "#171a1f" -nf "#f3f4f5" -sb "#c6c8d1" -sf "#171a1f")

case $RET in
	shutdown) systemctl poweroff ;;
	reboot) systemctl reboot ;;
	sleep) systemctl suspend ;;
   	lock) xset s activate ;;
	*) ;;
esac