77 lines
2.3 KiB
Bash
Executable file
77 lines
2.3 KiB
Bash
Executable file
#!/bin/zsh
|
|
|
|
function hc () {
|
|
herbstclient $@
|
|
}
|
|
|
|
modkey="Mod4"
|
|
|
|
hc keybind $modkey+Ctrl+b resize left +0.05
|
|
hc keybind $modkey+Ctrl+f resize right +0.05
|
|
hc keybind $modkey+Ctrl+n resize down +0.05
|
|
hc keybind $modkey+Ctrl+p resize up +0.05
|
|
hc keybind $modkey+Ctrl+q quit
|
|
hc keybind $modkey+Ctrl+r reload
|
|
hc keybind $modkey+Shift+1 spawn dmenu_run -p 'Run:' -b -nb '#111113' -nf '#eeeeec' -sb '#171719'
|
|
hc keybind $modkey+Shift+b shift left
|
|
hc keybind $modkey+Shift+f shift right
|
|
hc keybind $modkey+Shift+n shift down
|
|
hc keybind $modkey+Shift+p shift up
|
|
hc keybind $modkey+Shift+s split horizontal 0.5
|
|
hc keybind $modkey+b focus -i left
|
|
hc keybind $modkey+c spawn urxvt
|
|
hc keybind $modkey+comma cycle_monitor -1
|
|
hc keybind $modkey+e spawn emacsclient -ca emacs
|
|
hc keybind $modkey+f focus -i right
|
|
hc keybind $modkey+k close
|
|
hc keybind $modkey+n focus -i down
|
|
hc keybind $modkey+o cycle_all
|
|
hc keybind $modkey+p focus -i up
|
|
hc keybind $modkey+period cycle_monitor 1
|
|
hc keybind $modkey+q remove
|
|
hc keybind $modkey+s split vertical 0.5
|
|
hc keybind $modkey+space cycle_layout 1
|
|
hc keybind $modkey+w spawn conkeror
|
|
hc keybind Ctrl+Mod1+l spawn i3lock -c 000000
|
|
hc keybind XF86AudioNext spawn mpc next
|
|
hc keybind XF86AudioPlay spawn mpc toggle
|
|
hc keybind XF86AudioPrev spawn mpc prev
|
|
hc keybind XF86AudioStop spawn mpc stop
|
|
|
|
hc set default_frame_layout 2
|
|
hc set focus_stealing_prevention 0
|
|
hc set frame_bg_transparent 1
|
|
hc set frame_border_width 0
|
|
hc set raise_on_focus 1
|
|
hc set window_border_active_color "#999999"
|
|
hc set window_border_normal_color "#222224"
|
|
hc set window_border_width 1
|
|
|
|
hc set_layout max
|
|
|
|
hc add default2
|
|
hc remove_monitor 1
|
|
hc move_monitor 0 1920x1080+0+0
|
|
hc add_monitor 1680x1050+1920+0 default2
|
|
|
|
hc pad 0 20 -5 -5 -5
|
|
hc pad 1 -5 -5 -5 -5
|
|
|
|
hc mousebind $modkey-Button1 move
|
|
hc mousebind $modkey-Button2 resize
|
|
hc mousebind $modkey-Button3 zoom
|
|
|
|
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
|
|
hc rule instance=Xine\ Window pseudotile=on
|
|
hc rule class=Pinentry pseudotile=on
|
|
hc rule class=Dispass pseudotile=on
|
|
hc rule title="GIMP Startup" pseudotile=on
|
|
|
|
# xbindkeys
|
|
|
|
# ~/.config/herbstluftwm/panel.sh &
|
|
|
|
# hc load default "(split horizontal:0.550000:0 (split vertical:0.850000:0 (split horizontal:0.180000:1 (clients max:0) (clients max:0 0x140001a)) (clients max:0)) (clients max:0 0xc00077))"
|