From ad58b57df7b298bc3e25c578f590d44da3ce36c9 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Fri, 17 Jun 2022 19:09:27 +0200 Subject: Initial commit --- dotfiles/scripts/exit | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 dotfiles/scripts/exit (limited to 'dotfiles/scripts/exit') diff --git a/dotfiles/scripts/exit b/dotfiles/scripts/exit new file mode 100755 index 0000000..9fca18a --- /dev/null +++ b/dotfiles/scripts/exit @@ -0,0 +1,15 @@ +#!/bin/bash +# +# a simple dmenu session script +# +### + +DMENU='dmenu' +choice=$(echo -e "logout\nsuspend\nshutdown\nreboot" | $DMENU) + +case "$choice" in + logout) kill -9 -1 & ;; + suspend) systemctl suspend & ;; + shutdown) systemctl poweroff & ;; + reboot) systemctl reboot & ;; +esac -- cgit 1.4.1