diff options
Diffstat (limited to 'user/.config/i3/i3-menu')
-rwxr-xr-x | user/.config/i3/i3-menu | 34 |
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 |