94 lines
2.7 KiB
Bash
Executable file
94 lines
2.7 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# this is a simple config for herbstluftwm
|
|
|
|
hc() {
|
|
herbstclient "$@"
|
|
}
|
|
|
|
hc emit_hook reload
|
|
|
|
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
|
|
|
|
# theme
|
|
hc lock
|
|
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
|
|
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
|
|
|
|
hc keybind $Mod-Shift-q quit
|
|
hc keybind $Mod-Control-r reload
|
|
hc keybind $Mod-Shift-c close
|
|
hc keybind $Mod-Return spawn st
|
|
hc keybind $Mod-Alt-Return spawn ~/skynet/bin/zenvim
|
|
hc keybind $Mod-Control-Return spawn qutebrowser
|
|
hc keybind $Mod-Tab cycle_all +1
|
|
|
|
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"
|
|
|
|
# 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
|
|
|
|
# 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
|