aboutsummaryrefslogtreecommitdiff
path: root/i3wm/.i3/apply_layout.sh
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-12-21 20:39:20 +0100
committerAdrian Kummerlaender2014-12-21 20:39:20 +0100
commit6ce9823f9ad4fc349d763be57d19e28cd0911243 (patch)
tree143a3039d288f275ff643af74261773b9fc539ba /i3wm/.i3/apply_layout.sh
parent9279cfe0f1ecb53f1a1bd460fe174e904320ceaa (diff)
downloaddotfiles-6ce9823f9ad4fc349d763be57d19e28cd0911243.tar
dotfiles-6ce9823f9ad4fc349d763be57d19e28cd0911243.tar.gz
dotfiles-6ce9823f9ad4fc349d763be57d19e28cd0911243.tar.bz2
dotfiles-6ce9823f9ad4fc349d763be57d19e28cd0911243.tar.lz
dotfiles-6ce9823f9ad4fc349d763be57d19e28cd0911243.tar.xz
dotfiles-6ce9823f9ad4fc349d763be57d19e28cd0911243.tar.zst
dotfiles-6ce9823f9ad4fc349d763be57d19e28cd0911243.zip
Implemented basic `i3` layout selector based on `dmenu`
* `apply_layout.sh` offers a `dmenu` selection of all files in `~/.i3/layout` * the selected layout is applied to the current workspace via `i3-msg`
Diffstat (limited to 'i3wm/.i3/apply_layout.sh')
-rwxr-xr-xi3wm/.i3/apply_layout.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/i3wm/.i3/apply_layout.sh b/i3wm/.i3/apply_layout.sh
new file mode 100755
index 0000000..e8a079c
--- /dev/null
+++ b/i3wm/.i3/apply_layout.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+available_layouts=$(ls -A1 ~/.i3/layout/)
+selected_layout=$(echo $available_layouts | dmenu -fn 'Droid Sans Mono-11' -nb '#222222' -nf '#605c5a' -sb '#111111' -sf '#aadb0f')
+
+i3-msg "append_layout $(pwd)/.i3/layout/$selected_layout"