94 lines
2.4 KiB
Bash
Executable file
94 lines
2.4 KiB
Bash
Executable file
#!/bin/zsh
|
|
|
|
function hc () {
|
|
herbstclient $@
|
|
}
|
|
|
|
modkey="Mod4"
|
|
|
|
# Looks
|
|
hc set frame_bg_normal_color "#0c191c"
|
|
hc set frame_bg_active_color "#000000"
|
|
hc set frame_border_width 0
|
|
hc set window_border_width 1
|
|
hc set window_border_normal_color "#15abc3"
|
|
hc set window_border_active_color "#e0c625"
|
|
|
|
# Layout
|
|
hc set default_frame_layout 2
|
|
hc set_layout max
|
|
|
|
# Tags
|
|
hc rename default q
|
|
tagnames=(q w e a s d z x c)
|
|
for tag in ${tagnames[@]}; do
|
|
hc add $tag
|
|
hc keybind $modkey-$tag use $tag
|
|
hc keybind $modkey-Shift-$tag move $tag
|
|
done
|
|
|
|
# Monitors
|
|
hc remove_monitor 1
|
|
hc move_monitor 0 1920x1080+0+0
|
|
hc add_monitor 1680x1050+1920+0 w
|
|
|
|
# Keys
|
|
hc keybind $modkey-Mod1-q quit
|
|
hc keybind $modkey-Mod1-r reload
|
|
hc keybind $modkey-Shift-Mod1-c close
|
|
hc keybind $modkey-Return spawn urxvt
|
|
hc keybind $modkey-r spawn dmenu_run \
|
|
-fn "-misc-tamsyn-medium-r-normal-*-14-*-*-*-*-*-iso8859-*" \
|
|
-nb "#000000" -nf "#15abc3"
|
|
hc keybind Control-Mod1-l spawn i3lock -c 000000
|
|
hc keybind $modkey-t spawn ~/bin/hlwm/capture-todo
|
|
hc keybind $modkey-Shift-t spawn ~/bin/hlwm/show-todo
|
|
|
|
hc keybind $modkey-Shift-r remove
|
|
hc keybind $modkey-space cycle_layout 1
|
|
hc keybind $modkey-u split vertical 0.5
|
|
hc keybind $modkey-o split horizontal 0.5
|
|
hc keybind $modkey-Mod1-f floating toggle
|
|
hc keybind $modkey-Mod1-Shift-f fullscreen toggle
|
|
hc keybind $modkey-Mod1-p pseudotile toggle
|
|
|
|
hc keybind $modkey-Control-b resize left +0.05
|
|
hc keybind $modkey-Control-n resize down +0.05
|
|
hc keybind $modkey-Control-p resize up +0.05
|
|
hc keybind $modkey-Control-f resize right +0.05
|
|
|
|
hc keybind $modkey-BackSpace cycle_monitor
|
|
hc keybind $modkey-Tab cycle_all +1
|
|
hc keybind $modkey-Shift-Tab cycle_all -1
|
|
hc keybind $modkey-Mod1-c cycle
|
|
hc keybind $modkey-b focus left
|
|
hc keybind $modkey-n focus down
|
|
hc keybind $modkey-p focus up
|
|
hc keybind $modkey-f focus right
|
|
hc keybind $modkey-Shift-b shift left
|
|
hc keybind $modkey-Shift-n shift down
|
|
hc keybind $modkey-Shift-p shift up
|
|
hc keybind $modkey-Shift-f shift right
|
|
|
|
# Programs
|
|
XF86HomePage spawn conkeror
|
|
XF86Mail spawn mutt
|
|
XFAudioPlay spawn mpc play
|
|
|
|
# Mouse
|
|
hc mousebind $modkey-Button1 move
|
|
hc mousebind $modkey-Button2 resize
|
|
hc mousebind $modkey-Button3 zoom
|
|
|
|
# Rules
|
|
hc unrule -F
|
|
hc rule focus=on
|
|
hc rule windowtype=_NET_WM_WINDOW_TYPE_DIALOG focus=on pseudotile=on
|
|
hc rule class=Xephyr pseudotile=on
|
|
|
|
# Panel
|
|
~/.config/herbstluftwm/panel.sh &
|
|
|
|
# Local Variables:
|
|
# eval: (git-auto-commit-mode 1)
|
|
# End:
|