diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-07 02:16:31 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-07 02:28:51 +0100 |
commit | 33d690079fa91d727b9958f346f9e36aa5e33463 (patch) | |
tree | 44322aae8c1524c6fb3de6ec86bd46cbe941cd39 /user/.config/i3/i3-menu | |
parent | 1e44c2497fbe933967ab5267567d1cbd846bc9d4 (diff) |
i3: add configuration file for i3
Since WMII is deprecated, we finally follow the advise of switching to
i3 window manager.
Some configuration has been added so that it behaves like WMII as much
as possible. Here is a list of some features that have been configured:
* default keys to move / resize / focus windows
* handling of control volume keys
* names of the tags
* default layout for new containers (stacked instead of split)
* ...
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
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 |