aboutsummaryrefslogtreecommitdiff
path: root/rxmenu-telinit
diff options
context:
space:
mode:
Diffstat (limited to 'rxmenu-telinit')
-rwxr-xr-xrxmenu-telinit12
1 files changed, 12 insertions, 0 deletions
diff --git a/rxmenu-telinit b/rxmenu-telinit
new file mode 100755
index 0000000..38ffd8e
--- /dev/null
+++ b/rxmenu-telinit
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# NOTE: telinit must be setuid or otherwise usable by the user
+
+t="$(dmenu telinit << EOF
+0
+2
+3
+6
+EOF
+)"
+notify-send "telinit $t" "$(telinit "$t" 2>&1)"