config

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

commit dd41cee8be3d1431f185dbeaa405d9176157a2f1
parent c57d5cfbe245672a498ed2e3a60355031bd6706b
Author: jacob@thinkpad <jacobouno@protonmail.com>
Date:   Thu, 19 Mar 2020 12:14:03 -0700

change sxhkd config to be whole sxhkd directory

Diffstat:
Asxhkd/.config/sxhkd/bspwm | 206+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Asxhkd/.config/sxhkd/dwm | 114+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dsxhkd/.config/sxhkd/sxhkdrc | 206-------------------------------------------------------------------------------
3 files changed, 320 insertions(+), 206 deletions(-)

diff --git a/sxhkd/.config/sxhkd/bspwm b/sxhkd/.config/sxhkd/bspwm @@ -0,0 +1,206 @@ +### launch software +# terminal +super + {alt,_} + Return + "$TERMINAL" {_,-e tmux} + +# BROWSER +super + alt + f + "$BROWSER" + +# qutebrowser +super + alt + q + qutebrowser + +# surf browser +super + alt + s + tabbed surf -e + +# brave browser +super + alt + b + brave + +# htop +super + alt + e + "$TERMINAL" -e htop + +# ncmpcpp +super + alt + m + killall ncmpcpp; "$TERMINAL" -c ncmpcpp -e ncmpcpp + +# dmenu +super + alt + d + dmenu_run -fn 'gohufont:size=14' + +# 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%' + +# 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 + toggle "$COMPOSITOR" + +# lemonbar script +F10 + lemon "$PLATFORM" + +# mpd +F11 + toggle 'mpd' + + + +### 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} + + + +### node management (bspwm) +# set the node flags +super + ctrl + {z,x,c,p} + bspc node -g {marked,locked,sticky,private} + +# focus the node for the given path jump +super + {p,b,comma,period} + bspc node -f @{parent,brother,first,second} + +# make miniplayer +shift + super + p + bspc-set-geometry $( p-res 20x20 | sed 's/x/ /g' ) && bspc-snap --up && bspc-snap --right + +# move floating windows +super + {Left,Right,Up,Down} + bspc node focused.floating --move {-50 0,50 0,0 -50,0 50} + +# snap floating windows to edges +super + shift + {Left,Right,Up,Down} + bspc-snap {--left,--right,--up,--down} + +# increment gaps +super + {i,o} + {_,shift} + bspc-inc window_gap {-,+} {5,25} + +# resize node by mouse selection +super + m + bspc-select-size + +# equalize / balance windows +super + {equal,minus} + bspc node @/ {--equalize,--balance} + +# rotate node tree +super {_,shift} + r + bspc node @/ --rotate {90,-90} + +# set the window state +super + {t,shift + t,w,f} + bspc node -t {tiled,pseudo_tiled,floating,fullscreen} + +# shrink or expand nodes +super + ctrl + {i,o} + bspc-inc-edges {--enlarge,--shrink} + +# resize nodes +super + ctrl + {h,j,k,l} + bspc-hjkl {--left,--up,--down,--right} + + + +### workspace managment +# switch desktops with window +alt + shift + {q,w,e,r,a,s,d,f,t,g} + bspc node --to-desktop {^1,^2,^3,^4,^5,^6,^7,^8,^9,^10} --follow + +# switch desktops +alt + {q,w,e,r,a,s,d,f,t,g} + bspc desktop -f {^1,^2,^3,^4,^5,^6,^7,^8,^9,^10} + + + +### desktop navigation +# focus on or move node by direction +super + {_,shift + }{h,j,k,l} + bspc node -{f,s} {west,south,north,east} + +# focus on next or previous node in stack +super + shift + {f,d} + bspc node {next,prev}.local -f + +# cycle layouts +super + Tab + bspc desktop -l next + + + +### etc +# quit / restart bspwm +super + ctrl + {q,r} + bspc {quit,wm -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 @@ -0,0 +1,114 @@ +### launch software +# terminal +super + {alt,_} + Return + "$TERMINAL" {_,-e tmux} + +# BROWSER +super + alt + f + "$BROWSER" + +# qutebrowser +super + alt + q + qutebrowser + +# surf browser +super + alt + s + tabbed surf -e + +# brave browser +super + alt + b + brave + +# htop +super + alt + e + "$TERMINAL" -e htop + +# ncmpcpp +super + alt + m + killall ncmpcpp; "$TERMINAL" -c ncmpcpp -e ncmpcpp + +# dmenu +super + alt + d + dmenu_run -fn 'gohufont:size=14' + +# 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%' + +# 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 + toggle "$COMPOSITOR" + +# lemonbar script +F10 + lemon "$PLATFORM" + +# mpd +F11 + toggle 'mpd' + + + +### 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} diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc @@ -1,206 +0,0 @@ -### launch software -# terminal -super + {alt,_} + Return - "$TERMINAL" {_,-e tmux} - -# BROWSER -super + alt + f - "$BROWSER" - -# qutebrowser -super + alt + q - qutebrowser - -# surf browser -super + alt + s - tabbed surf -e - -# brave browser -super + alt + b - brave - -# htop -super + alt + e - "$TERMINAL" -e htop - -# ncmpcpp -super + alt + m - killall ncmpcpp; "$TERMINAL" -c ncmpcpp -e ncmpcpp - -# dmenu -super + alt + d - dmenu_run -fn 'gohufont:size=14' - -# 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%' - -# 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 - toggle "$COMPOSITOR" - -# lemonbar script -F10 - lemon "$PLATFORM" - -# mpd -F11 - toggle 'mpd' - - - -### 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} - - - -### node management (bspwm) -# set the node flags -super + ctrl + {z,x,c,p} - bspc node -g {marked,locked,sticky,private} - -# focus the node for the given path jump -super + {p,b,comma,period} - bspc node -f @{parent,brother,first,second} - -# make miniplayer -shift + super + p - bspc-set-geometry $( p-res 20x20 | sed 's/x/ /g' ) && bspc-snap --up && bspc-snap --right - -# move floating windows -super + {Left,Right,Up,Down} - bspc node focused.floating --move {-50 0,50 0,0 -50,0 50} - -# snap floating windows to edges -super + shift + {Left,Right,Up,Down} - bspc-snap {--left,--right,--up,--down} - -# increment gaps -super + {i,o} + {_,shift} - bspc-inc window_gap {-,+} {5,25} - -# resize node by mouse selection -super + m - bspc-select-size - -# equalize / balance windows -super + {equal,minus} - bspc node @/ {--equalize,--balance} - -# rotate node tree -super {_,shift} + r - bspc node @/ --rotate {90,-90} - -# set the window state -super + {t,shift + t,w,f} - bspc node -t {tiled,pseudo_tiled,floating,fullscreen} - -# shrink or expand nodes -super + ctrl + {i,o} - bspc-inc-edges {--enlarge,--shrink} - -# resize nodes -super + ctrl + {h,j,k,l} - bspc-hjkl {--left,--up,--down,--right} - - - -### workspace managment -# switch desktops with window -alt + shift + {q,w,e,r,a,s,d,f,t,g} - bspc node --to-desktop {^1,^2,^3,^4,^5,^6,^7,^8,^9,^10} --follow - -# switch desktops -alt + {q,w,e,r,a,s,d,f,t,g} - bspc desktop -f {^1,^2,^3,^4,^5,^6,^7,^8,^9,^10} - - - -### desktop navigation -# focus on or move node by direction -super + {_,shift + }{h,j,k,l} - bspc node -{f,s} {west,south,north,east} - -# focus on next or previous node in stack -super + shift + {f,d} - bspc node {next,prev}.local -f - -# cycle layouts -super + Tab - bspc desktop -l next - - - -### etc -# quit / restart bspwm -super + ctrl + {q,r} - bspc {quit,wm -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