diff options
| author | 2015-09-08 19:24:40 +0200 | |
|---|---|---|
| committer | 2015-09-08 19:24:40 +0200 | |
| commit | 11fd77fe634471834e2ed54119ac71b7b5250724 (patch) | |
| tree | cc3c21c7fd0964a1c372deb516fd34009ab9d818 /herbstluftwm/.config | |
| parent | fcb04d2fc88f2353dfade289f82f8e63800a7574 (diff) | |
| download | dotfiles-11fd77fe634471834e2ed54119ac71b7b5250724.tar.gz dotfiles-11fd77fe634471834e2ed54119ac71b7b5250724.tar.bz2 dotfiles-11fd77fe634471834e2ed54119ac71b7b5250724.zip | |
Added dmenu_app as default app launcher
Diffstat (limited to 'herbstluftwm/.config')
| -rwxr-xr-x | herbstluftwm/.config/herbstluftwm/autostart | 1 | ||||
| -rwxr-xr-x | herbstluftwm/.config/herbstluftwm/dmenu_theme.sh | 10 | ||||
| -rw-r--r-- | herbstluftwm/.config/herbstluftwm/hlwm-keybindings | 4 |
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 | |||
| 16 | dmenu_width=400 | 16 | dmenu_width=400 |
| 17 | dmenu_height=30 | 17 | dmenu_height=30 |
| 18 | dmenu_lines=9 | 18 | dmenu_lines=9 |
| 19 | dmenu_title="Run:" | ||
| 20 | 19 | ||
| 21 | geometry=($(hc monitor_rect $dmenu_screen)) | 20 | geometry=($(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 | |||
| 3 | theme_dir="$HLWM_CONF_DIR/themes" | ||
| 4 | themes=$(ls "$theme_dir" | grep -vE "current|template") | ||
| 5 | theme=$(echo "$themes" | dmenu "$@") | ||
| 6 | |||
| 7 | if [ -n "$theme" ] && [ -f "$theme_dir/$theme" ]; then | ||
| 8 | ln -sf "$theme" "$theme_dir/current" && herbstclient reload | ||
| 9 | fi | ||
| 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 | |||
| 10 | hc keybind $Mod-Shift-r chain , spawn echo "!! HLWM reload config !!" , reload | 10 | hc keybind $Mod-Shift-r chain , spawn echo "!! HLWM reload config !!" , reload |
| 11 | hc keybind $Mod-Shift-c close | 11 | hc keybind $Mod-Shift-c close |
| 12 | hc keybind $Mod-Return spawn xterm | 12 | hc keybind $Mod-Return spawn xterm |
| 13 | hc 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 | 13 | hc 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 |
| 14 | hc 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 | ||
| 15 | hc 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 | ||
| 14 | hc keybind XF86AudioLowerVolume spawn amixer set Master 1%- | 16 | hc keybind XF86AudioLowerVolume spawn amixer set Master 1%- |
| 15 | hc keybind XF86AudioRaiseVolume spawn amixer set Master 1%+ | 17 | hc keybind XF86AudioRaiseVolume spawn amixer set Master 1%+ |
| 16 | 18 | ||
