config

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

commit 5f8c533276ca8921bafff59b01ec25b2b02fde97
parent 3d598ca2d9a48bf00ebf025f8439babe1ea50c81
Author: jacob@nzxt <jacobouno@protonmail.com>
Date:   Sat, 11 Jul 2020 23:22:06 -0700

Merge master

Diffstat:
Maliases/.aliases | 11+++++++----
Dsxhkd/.config/sxhkd/bspwm | 184-------------------------------------------------------------------------------
2 files changed, 7 insertions(+), 188 deletions(-)

diff --git a/aliases/.aliases b/aliases/.aliases @@ -19,14 +19,17 @@ fi if [ `uname` = "OpenBSD" ]; then alias xenodm="doas xenodm" - alias pkg_add="doas pkg_add -xV" + alias pkg_add="pkg_add -xV" # pkg # NOTE: i'll update these when I have access to my openbsd machine again. - alias pa="pkg_add" + alias pa="doas pkg_add" + alias pu="doas pkg_add -u" alias pd="doas pkg_delete" - alias pi="pkg_info" - alias pq="pi -Q" + alias ps="pkg_info -Q" + alias pS="pkg_info -cQ" + alias pq="pkg_info" + alias pQ="pkg_info -c" elif [ -x /usr/bin/pacman ]; then alias sys="systemctl" diff --git a/sxhkd/.config/sxhkd/bspwm b/sxhkd/.config/sxhkd/bspwm @@ -1,184 +0,0 @@ -### 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} - - - -### 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}