From f733845de850997a1b28ecb011c8374762abecf1 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 26 May 2015 21:26:25 +0200 Subject: Added new "half_stack" layout and fixed apply script * newlines were not forwarded correctly and as such the script only supported a single layout --- i3wm/.i3/apply_layout.sh | 3 +-- i3wm/.i3/layout/half_stack.json | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 i3wm/.i3/layout/half_stack.json diff --git a/i3wm/.i3/apply_layout.sh b/i3wm/.i3/apply_layout.sh index 4ea80b5..1398ff9 100755 --- a/i3wm/.i3/apply_layout.sh +++ b/i3wm/.i3/apply_layout.sh @@ -2,7 +2,6 @@ source ~/.dmenurc -available_layouts=$(ls -A1 ~/.i3/layout/) -selected_layout=$(echo $available_layouts | eval "dmenu $DMENU") +selected_layout=$(ls -A1 ~/.i3/layout/ | eval "dmenu $DMENU") i3-msg "append_layout $(pwd)/.i3/layout/$selected_layout" diff --git a/i3wm/.i3/layout/half_stack.json b/i3wm/.i3/layout/half_stack.json new file mode 100644 index 0000000..8f7ecc8 --- /dev/null +++ b/i3wm/.i3/layout/half_stack.json @@ -0,0 +1,39 @@ +{ + "layout": "splith", + "nodes": [ + { + "border": "pixel", + "percent": 0.5, + "swallows": [ + { + "instance": ".*" + } + ] + }, + { + "layout": "stacked", + "percent": 0.5, + "nodes": [ + { + "border": "pixel", + "percent": 0.5, + "swallows": [ + { + "instance": ".*" + } + ] + }, + { + "border": "pixel", + "percent": 0.5, + "swallows": [ + { + "instance": ".*" + } + ] + } + ] + } + ] +} + -- cgit v1.2.3