From 6d0746f89a474f66e71a9f5a0fdb3b50f849d1e3 Mon Sep 17 00:00:00 2001
From: Tobias Reisinger <tobias@msrg.cc>
Date: Wed, 23 Sep 2020 11:25:17 +0200
Subject: [PATCH] Add rofi shutdown script

---
 .local/bin/rofi-shutdown | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100755 .local/bin/rofi-shutdown

diff --git a/.local/bin/rofi-shutdown b/.local/bin/rofi-shutdown
new file mode 100755
index 0000000..3969012
--- /dev/null
+++ b/.local/bin/rofi-shutdown
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+action=$(echo -e "Shutdown\nReboot\nLogout" | rofi -dmenu)
+
+case "$action" in
+    "Shutdown")
+        systemctl poweroff -i
+        ;;
+    "Reboot")
+        systemctl reboot
+        ;;
+    "Logout")
+        bspc quit
+        ;;
+    *)
+        ;;
+esac