From daad6ac8f1238a3111a05d8b2d70f31e1a70da03 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 22 Nov 2020 00:26:40 +0100 Subject: new i3 exit prompt --- scripts/rofi-exit-menu.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 scripts/rofi-exit-menu.sh (limited to 'scripts/rofi-exit-menu.sh') diff --git a/scripts/rofi-exit-menu.sh b/scripts/rofi-exit-menu.sh new file mode 100755 index 0000000..57ce492 --- /dev/null +++ b/scripts/rofi-exit-menu.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +function options() { + cat << EOF +supspend +shutdown +reboot +Xit +EOF +} + +if [ $# -gt 0 ]; then + case "$@" in + suspend) + systemctl suspend;; + shutdown) + systemctl shutdown;; + reboot) + systemctl reboot;; + "exit i3") + i3-msg exit;; + *) + options;; + + esac +else + options +fi + -- cgit v1.2.3