2022-04-07 18:49:13 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# this is a simple config for herbstluftwm
|
|
|
|
|
|
|
|
hc() {
|
|
|
|
herbstclient "$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
hc emit_hook reload
|
|
|
|
|
2022-04-09 10:06:46 -05:00
|
|
|
if hc silent new_attr bool my_picom_is_running; then
|
|
|
|
picom -b
|
|
|
|
fi
|
|
|
|
|
|
|
|
xsetroot -solid "#080808" -cursor_name left_ptr &
|
|
|
|
feh --bg-fill ~/.config/herbstluftwm/wallpaper.jpg
|
|
|
|
|
2022-04-07 18:49:13 -05:00
|
|
|
# theme
|
2022-04-07 19:41:00 -05:00
|
|
|
hc lock
|
2022-04-07 18:49:13 -05:00
|
|
|
hc attr theme.tiling.reset 1
|
|
|
|
hc attr theme.floating.reset 1
|
|
|
|
hc set always_show_frame on
|
|
|
|
hc set frame_bg_transparent off
|
|
|
|
|
|
|
|
hc attr theme.active.color '#95e454'
|
|
|
|
hc attr theme.normal.color '#88b8f6'
|
|
|
|
hc attr theme.urgent.color '#e5796d'
|
|
|
|
hc attr theme.inner_color black
|
|
|
|
hc attr theme.border_width 1
|
|
|
|
hc attr theme.floating.border_width 2
|
|
|
|
hc attr theme.floating.outer_width 1
|
|
|
|
hc attr theme.floating.outer_color black
|
|
|
|
hc attr theme.background_color '#080808'
|
|
|
|
|
|
|
|
hc set window_gap 0
|
|
|
|
hc set frame_padding 0
|
|
|
|
hc set smart_window_surroundings on
|
|
|
|
hc set smart_frame_surroundings on
|
|
|
|
hc set mouse_recenter_gap 0
|
|
|
|
hc set frame_active_opacity 1
|
|
|
|
hc set frame_normal_opacity 1
|
|
|
|
hc set frame_bg_active_color '#0000000000'
|
|
|
|
hc set snap_distance 0
|
|
|
|
hc set snap_gap 0
|
2022-04-07 19:41:00 -05:00
|
|
|
hc unlock
|
|
|
|
|
|
|
|
# remove all existing keybindings
|
|
|
|
hc keyunbind --all
|
|
|
|
hc set default_frame_layout max
|
|
|
|
hc set_layout max
|
|
|
|
|
|
|
|
# keybindings
|
|
|
|
Mod=Mod4 # Use the super key as the main modifier
|
|
|
|
|
2022-04-07 21:22:19 -05:00
|
|
|
hc keybind $Mod-Shift-q quit
|
|
|
|
hc keybind $Mod-Control-r reload
|
|
|
|
hc keybind $Mod-Shift-c close
|
2022-04-09 10:06:46 -05:00
|
|
|
hc keybind $Mod-Return spawn st
|
|
|
|
hc keybind $Mod-Alt-Return spawn ~/skynet/bin/zenvim
|
2022-04-07 21:22:19 -05:00
|
|
|
hc keybind $Mod-Control-Return spawn qutebrowser
|
|
|
|
hc keybind $Mod-Tab cycle_all +1
|
2022-04-07 19:41:00 -05:00
|
|
|
|
|
|
|
hc keybind XF86AudioRaiseVolume spawn sh -c "pamixer -i 5; pamixer --get-volume >> \"$xobpipe\"; $refresh_panel"
|
|
|
|
hc keybind XF86AudioLowerVolume spawn sh -c "pamixer -d 5; pamixer --get-volume >> \"$xobpipe\"; $refresh_panel"
|
|
|
|
hc keybind XF86AudioMute spawn sh -c "pamixer -t; pamixer --get-volume-human | sed 's/muted/0/' >> \"$xobpipe\"; $refresh_panel"
|
2022-04-09 16:41:34 -05:00
|
|
|
hc keybind XF86PowerOff spawn battlvl
|
|
|
|
hc keybind XF86MonBrightnessUp spawn light -A 5
|
|
|
|
hc keybind XF86MonBrightnessDown spawn light -U 5
|
2022-04-07 19:41:00 -05:00
|
|
|
|
|
|
|
# mouse
|
|
|
|
hc mouseunbind --all
|
|
|
|
hc set focus_follows_mouse true
|
|
|
|
hc set focus_follows_monitor_boundaries true
|
|
|
|
#hc mousebind $Mod-Button1 move
|
|
|
|
#hc mousebind $Mod-Button3 resize
|
2022-04-07 18:49:13 -05:00
|
|
|
|
|
|
|
# rules
|
|
|
|
hc unrule -F
|
|
|
|
#hc rule class=XTerm tag=3 # move all xterms to tag 3
|
|
|
|
hc rule focus=on # normally focus new clients
|
|
|
|
hc rule floatplacement=smart
|
|
|
|
#hc rule focus=off # normally do not focus new clients
|
|
|
|
# give focus to most common terminals
|
|
|
|
#hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on
|
|
|
|
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' floating=on
|
|
|
|
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
|
|
|
|
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
|
|
|
|
|
|
|
|
hc set tree_style '╾│ ├└╼─┐'
|
|
|
|
|
|
|
|
# unlock, just to be sure
|
|
|
|
hc unlock
|
|
|
|
|
|
|
|
# do multi monitor setup here, e.g.:
|
|
|
|
# hc set_monitors 1280x1024+0+0 1280x1024+1280+0
|
|
|
|
# or simply:
|
|
|
|
hc detect_monitors
|