summaryrefslogtreecommitdiff
path: root/user/.config/i3/i3-menu
diff options
context:
space:
mode:
Diffstat (limited to 'user/.config/i3/i3-menu')
-rwxr-xr-xuser/.config/i3/i3-menu34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/.config/i3/i3-menu b/user/.config/i3/i3-menu
new file mode 100755
index 0000000..9659ea5
--- /dev/null
+++ b/user/.config/i3/i3-menu
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+execute_action()
+{
+ case "$1" in
+ quit)
+ exec i3-msg exit
+ ;;
+ exec)
+ shift
+ eval exec "$@"
+ ;;
+ reload)
+ exec i3-msg reload
+ ;;
+ restart)
+ exec i3-msg restart
+ ;;
+ lock)
+ exec lock
+ ;;
+ esac
+}
+
+cmd=$(cat << EOF | dmenu
+exec
+quit
+reload
+restart
+lock
+EOF
+)
+
+execute_action $cmd