aboutsummaryrefslogtreecommitdiff
path: root/i3wm
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-12-23 17:35:16 +0100
committerAdrian Kummerlaender2014-12-23 17:35:16 +0100
commit37b8f9afe25c75d46e8d52db5451062497da7612 (patch)
treedbefe97e8ec0c3e42b1ed3fbaa2a7a6a2dc83afb /i3wm
parent6c7aae8a4344b55334d14a622993525abf206a17 (diff)
downloaddotfiles-37b8f9afe25c75d46e8d52db5451062497da7612.tar
dotfiles-37b8f9afe25c75d46e8d52db5451062497da7612.tar.gz
dotfiles-37b8f9afe25c75d46e8d52db5451062497da7612.tar.bz2
dotfiles-37b8f9afe25c75d46e8d52db5451062497da7612.tar.lz
dotfiles-37b8f9afe25c75d46e8d52db5451062497da7612.tar.xz
dotfiles-37b8f9afe25c75d46e8d52db5451062497da7612.tar.zst
dotfiles-37b8f9afe25c75d46e8d52db5451062497da7612.zip
Centralized `dmenu` configuration in `.dmenurc`
Diffstat (limited to 'i3wm')
-rwxr-xr-xi3wm/.i3/apply_layout.sh4
-rw-r--r--i3wm/.i3/config2
-rwxr-xr-xi3wm/.i3/dmenu_run.sh5
3 files changed, 9 insertions, 2 deletions
diff --git a/i3wm/.i3/apply_layout.sh b/i3wm/.i3/apply_layout.sh
index e8a079c..4ea80b5 100755
--- a/i3wm/.i3/apply_layout.sh
+++ b/i3wm/.i3/apply_layout.sh
@@ -1,6 +1,8 @@
#!/bin/sh
+source ~/.dmenurc
+
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')
+selected_layout=$(echo $available_layouts | eval "dmenu $DMENU")
i3-msg "append_layout $(pwd)/.i3/layout/$selected_layout"
diff --git a/i3wm/.i3/config b/i3wm/.i3/config
index 31dcdee..3804a84 100644
--- a/i3wm/.i3/config
+++ b/i3wm/.i3/config
@@ -111,8 +111,8 @@ for_window [class="^.*"] border pixel 2
bindsym $mod+Return exec urxvtc
bindsym $alt+Return exec gvim
-bindsym $mod+space exec --no-startup-id dmenu_run -fn 'Droid Sans Mono-11' -nb '#222222' -nf '#605c5a' -sb '#111111' -sf '#aadb0f'
bindsym $alt+space exec --no-startup-id passman submitform
+bindsym $mod+space exec --no-startup-id ~/.i3/dmenu_run.sh
bindsym Control+space exec --no-startup-id ~/.i3/apply_layout.sh
bindsym Control+Mod1+l exec --no-startup-id i3lock -c 000000
diff --git a/i3wm/.i3/dmenu_run.sh b/i3wm/.i3/dmenu_run.sh
new file mode 100755
index 0000000..d4c6199
--- /dev/null
+++ b/i3wm/.i3/dmenu_run.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+source ~/.dmenurc
+
+exec sh -c "source ~/.dmenurc; `echo \"dmenu_run \$DMENU\"`"