aboutsummaryrefslogtreecommitdiffstats
path: root/herbstluftwm/.config
diff options
context:
space:
mode:
Diffstat (limited to 'herbstluftwm/.config')
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/autostart1
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/dmenu_theme.sh10
-rw-r--r--herbstluftwm/.config/herbstluftwm/hlwm-keybindings4
3 files changed, 13 insertions, 2 deletions
diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart
index 6d39725..aa7c430 100755
--- a/herbstluftwm/.config/herbstluftwm/autostart
+++ b/herbstluftwm/.config/herbstluftwm/autostart
@@ -16,7 +16,6 @@ dmenu_screen=0
16dmenu_width=400 16dmenu_width=400
17dmenu_height=30 17dmenu_height=30
18dmenu_lines=9 18dmenu_lines=9
19dmenu_title="Run:"
20 19
21geometry=($(hc monitor_rect $dmenu_screen)) 20geometry=($(hc monitor_rect $dmenu_screen))
22 21
diff --git a/herbstluftwm/.config/herbstluftwm/dmenu_theme.sh b/herbstluftwm/.config/herbstluftwm/dmenu_theme.sh
new file mode 100755
index 0000000..6b825ce
--- /dev/null
+++ b/herbstluftwm/.config/herbstluftwm/dmenu_theme.sh
@@ -0,0 +1,10 @@
1#!/bin/sh
2
3theme_dir="$HLWM_CONF_DIR/themes"
4themes=$(ls "$theme_dir" | grep -vE "current|template")
5theme=$(echo "$themes" | dmenu "$@")
6
7if [ -n "$theme" ] && [ -f "$theme_dir/$theme" ]; then
8 ln -sf "$theme" "$theme_dir/current" && herbstclient reload
9fi
10
diff --git a/herbstluftwm/.config/herbstluftwm/hlwm-keybindings b/herbstluftwm/.config/herbstluftwm/hlwm-keybindings
index 2843a89..1711760 100644
--- a/herbstluftwm/.config/herbstluftwm/hlwm-keybindings
+++ b/herbstluftwm/.config/herbstluftwm/hlwm-keybindings
@@ -10,7 +10,9 @@ hc keybind $Mod-Shift-q quit
10hc keybind $Mod-Shift-r chain , spawn echo "!! HLWM reload config !!" , reload 10hc keybind $Mod-Shift-r chain , spawn echo "!! HLWM reload config !!" , reload
11hc keybind $Mod-Shift-c close 11hc keybind $Mod-Shift-c close
12hc keybind $Mod-Return spawn xterm 12hc keybind $Mod-Return spawn xterm
13hc keybind $Mod-grave spawn dmenu_run -h $dmenu_height -w $dmenu_width -x $dmenu_x -y $dmenu_y -p $dmenu_title -s $dmenu_screen -l $dmenu_lines -fn "$HLWM_PANEL_FONT" -nb $HLWM_BG_COLOR -nf $HLWM_FG_COLOR -sb $HLWM_ACCENT_COLOR -sf $HLWM_BG_COLOR 13hc keybind $Mod-grave spawn dmenu_app -i -h $dmenu_height -w $dmenu_width -x $dmenu_x -y $dmenu_y -p "Launch:" -s $dmenu_screen -l $dmenu_lines -fn "$HLWM_PANEL_FONT" -nb $HLWM_BG_COLOR -nf $HLWM_FG_COLOR -sb $HLWM_ACCENT_COLOR -sf $HLWM_BG_COLOR
14hc keybind $Mod-e spawn dmenu_run -i -h $dmenu_height -w $dmenu_width -x $dmenu_x -y $dmenu_y -p "Execute:" -s $dmenu_screen -l $dmenu_lines -fn "$HLWM_PANEL_FONT" -nb $HLWM_BG_COLOR -nf $HLWM_FG_COLOR -sb $HLWM_ACCENT_COLOR -sf $HLWM_BG_COLOR
15hc keybind $Mod-t spawn env HLWM_CONF_DIR=$HLWM_CONF_DIR $HLWM_CONF_DIR/dmenu_theme.sh -i -h $dmenu_height -w $dmenu_width -x $dmenu_x -y $dmenu_y -p "Theme:" -s $dmenu_screen -l $dmenu_lines -fn "$HLWM_PANEL_FONT" -nb $HLWM_BG_COLOR -nf $HLWM_FG_COLOR -sb $HLWM_ACCENT_COLOR -sf $HLWM_BG_COLOR
14hc keybind XF86AudioLowerVolume spawn amixer set Master 1%- 16hc keybind XF86AudioLowerVolume spawn amixer set Master 1%-
15hc keybind XF86AudioRaiseVolume spawn amixer set Master 1%+ 17hc keybind XF86AudioRaiseVolume spawn amixer set Master 1%+
16 18