config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 146b2c4abe6a943ff75fb409ace1773350f23747
parent d7091602be450d382c5216de4060445e4a9178cc
Author: jacob@nzxt <jacobouno@protonmail.com>
Date:   Fri, 10 Apr 2020 01:32:59 -0700

change super + alt -> super for spawns, remove unused binds, remove toggles

Diffstat:
Msxhkd/.config/sxhkd/bspwm | 50++++++++++++++------------------------------------
Msxhkd/.config/sxhkd/dwm | 50++++++++++++++++----------------------------------
Asxhkd/.config/sxhkd/dwm.diff | 41+++++++++++++++++++++++++++++++++++++++++
Asxhkd/.config/sxhkd/dwm.edit | 96+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 167 insertions(+), 70 deletions(-)

diff --git a/sxhkd/.config/sxhkd/bspwm b/sxhkd/.config/sxhkd/bspwm @@ -1,36 +1,40 @@ ### launch software # terminal -super + {alt,_} + Return - "$TERMINAL" {_,-e tmux} +super + t + "$TERMINAL" # BROWSER -super + alt + f +super + f "$BROWSER" # qutebrowser -super + alt + q +super + f qutebrowser # surf browser -super + alt + s +super + c tabbed surf -e # vimb browser -super + alt + b +super + v tabbed -c vimb -e # htop -super + alt + e +super + e "$TERMINAL" -e htop # ncmpcpp -super + alt + m +super + m killall ncmpcpp; "$TERMINAL" -c ncmpcpp -e ncmpcpp # dmenu -super + alt + d +super + p dmenu_run -fn 'gohufont:size=14' +# newsboat +super + n + "$TERMINAL" -e newsboat || notify-send 'newsboat already running or an error occured' + # bookmarks shift + super + {m,alt + m, n} dmenu-bookmarks {--open,--open-catagories,--edit} @@ -39,34 +43,12 @@ shift + super + {m,alt + m, n} super + alt + w mpv av://v4l2:/dev/video0 '--geometry=+100%+100%' -# ranger -super + alt + r - "$TERMINAL" -e ranger - -# newsboat -super + alt + n - "$TERMINAL" -e newsboat || notify-send 'newsboat already running or an error occured' - -# lbry -#super + alt + l -# lbry - - ### toggle programs # picom -super + F9 +super + s toggle "$COMPOSITOR" -# lemonbar script -super + F10 - lemon "$PLATFORM" - -# mpd -super + F11 - toggle 'mpd' - - ### basic utilities # brightness controls @@ -200,7 +182,3 @@ super + ctrl + {q,r} # close / kill super + {_,shift + }q bspc node -{c,k} - -# reload sxhkd config | presing this with other keys breaks sxhkd. -#super + Escape - #pkill -USR1 -x sxhkd && notify-send 'sxhkd restarted' -t 850 diff --git a/sxhkd/.config/sxhkd/dwm b/sxhkd/.config/sxhkd/dwm @@ -1,36 +1,40 @@ ### launch software # terminal -super + {alt,_} + Return - "$TERMINAL" {_,-e tmux} +super + t + "$TERMINAL" # BROWSER -super + alt + f +super + f "$BROWSER" # qutebrowser -super + alt + q +super + f qutebrowser # surf browser -super + alt + s +super + c tabbed surf -e -# brave browser -super + alt + b - brave +# vimb browser +super + v + tabbed -c vimb -e # htop -super + alt + e +super + e "$TERMINAL" -e htop # ncmpcpp -super + alt + m +super + m killall ncmpcpp; "$TERMINAL" -c ncmpcpp -e ncmpcpp # dmenu -super + alt + d +super + p dmenu_run -fn 'gohufont:size=14' +# newsboat +super + n + "$TERMINAL" -e newsboat || notify-send 'newsboat already running or an error occured' + # bookmarks shift + super + {m,alt + m, n} dmenu-bookmarks {--open,--open-catagories,--edit} @@ -39,34 +43,12 @@ shift + super + {m,alt + m, n} super + alt + w mpv av://v4l2:/dev/video0 '--geometry=+100%+100%' -# ranger -super + alt + r - "$TERMINAL" -e ranger - -# newsboat -super + alt + n - "$TERMINAL" -e newsboat || notify-send 'newsboat already running or an error occured' - -# lbry -#super + alt + l -# lbry - - ### toggle programs # picom -F9 +super + s toggle "$COMPOSITOR" -# lemonbar script -F10 - lemon "$PLATFORM" - -# mpd -F11 - toggle 'mpd' - - ### basic utilities # brightness controls diff --git a/sxhkd/.config/sxhkd/dwm.diff b/sxhkd/.config/sxhkd/dwm.diff @@ -0,0 +1,41 @@ +3c3 +< super + Return +--- +> super + t +11c11 +< super + q +--- +> super + f +15c15 +< super + s +--- +> super + c +19c19 +< super + b +--- +> super + v +33a34,37 +> # newsboat +> super + n +> "$TERMINAL" -e newsboat || notify-send 'newsboat already running or an error occured' +> +42,46d45 +< # newsboat +< super + n +< "$TERMINAL" -e newsboat || notify-send 'newsboat already running or an error occured' +< +< +50c49 +< super + F9 +--- +> super + s +52,60d50 +< +< # lemonbar script +< super + F10 +< lemon "$PLATFORM" +< +< # mpd +< super + F11 +< toggle 'mpd' +< diff --git a/sxhkd/.config/sxhkd/dwm.edit b/sxhkd/.config/sxhkd/dwm.edit @@ -0,0 +1,96 @@ +### launch software +# terminal +super + t + "$TERMINAL" + +# BROWSER +super + f + "$BROWSER" + +# qutebrowser +super + f + qutebrowser + +# surf browser +super + c + tabbed surf -e + +# vimb browser +super + v + tabbed -c vimb -e + +# htop +super + e + "$TERMINAL" -e htop + +# ncmpcpp +super + m + killall ncmpcpp; "$TERMINAL" -c ncmpcpp -e ncmpcpp + +# dmenu +super + p + dmenu_run -fn 'gohufont:size=14' + +# newsboat +super + n + "$TERMINAL" -e newsboat || notify-send 'newsboat already running or an error occured' + +# bookmarks +shift + super + {m,alt + m, n} + dmenu-bookmarks {--open,--open-catagories,--edit} + +# webcam +super + alt + w + mpv av://v4l2:/dev/video0 '--geometry=+100%+100%' + + +### toggle programs +# picom +super + s + toggle "$COMPOSITOR" + + +### basic utilities +# brightness controls +XF86MonBrightness{Up,Down} + xbacklight-script {inc,dec} + +# brightness controls +{Home,End} + xbacklight-script {inc,dec} + +# suspend screen +F4 + xset dpms force suspend + +# lock & then suspend +super + F4 + slock & sleep 1.2; systemctl suspend + +# switch tty +alt + F{1,2,3,4,5,6} + sudo chvt {1,2,3,4,5,6} + +# launch wallpaper selector +Menu + dmenu-do-dir "$WALLPAPERS" "sxiv -rtb ./" + +# look at screenshots +super + alt + Print + sxiv -t "$SCREENSHOTS" + +# take a screenshot (full, region, window) +{_,shift,alt} Print + screenshot {-f,-s,-w} && flash + +# media keys (mpd) +XF86Audio{Next,Prev,Play,Stop} + mpc {next,prev,toggle,stop} + +# volume keys +XF86Audio{Raise,Lower}Volume + volume {--inc,--dec} 5 + +# mute mic and speakers +XF86Audio{_,Mic}Mute + volume {mute,mute-mic}