config

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

commit 9f384f17e78262a443eb1c2d2bfe6d035c29fc3f
parent 87b8fd7a60e357a21639aee73df9ba4d349a4979
Author: jacobsGit <JacobDoesLinux@protonmail.com>
Date:   Sun, 12 Jan 2020 11:12:21 -0800

adding more bspwm keybinds

Diffstat:
Asxhkd/.config/sxhkd/bspwm-sxhkd | 105+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Msxhkd/.config/sxhkd/sxhkdrc | 174++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------
2 files changed, 237 insertions(+), 42 deletions(-)

diff --git a/sxhkd/.config/sxhkd/bspwm-sxhkd b/sxhkd/.config/sxhkd/bspwm-sxhkd @@ -0,0 +1,105 @@ +# make sxhkd reload its configuration files: +super + Escape + pkill -USR1 -x sxhkd + +# quit/restart bspwm +super + alt + {q,r} + bspc {quit,wm -r} + +# close and kill +super + {_,shift + }w + bspc node -{c,k} + +# alternate between the tiled and monocle layout +super + m + bspc desktop -l next + +# send the newest marked node to the newest preselected node +super + y + bspc node newest.marked.local -n newest.!automatic.local + +# swap the current node and the biggest node +super + g + bspc node -s biggest + +# +# state/flags +# + +# set the window state +super + {t,shift + t,s,f} + bspc node -t {tiled,pseudo_tiled,floating,fullscreen} + +# set the node flags +super + ctrl + {m,x,y,z} + bspc node -g {marked,locked,sticky,private} + +# +# focus/swap +# + +# focus the node in the given direction +super + {_,shift + }{h,j,k,l} + bspc node -{f,s} {west,south,north,east} + +# focus the node for the given path jump +super + {p,b,comma,period} + bspc node -f @{parent,brother,first,second} + +# focus the next/previous node in the current desktop +super + {_,shift + }c + bspc node -f {next,prev}.local + +# focus the next/previous desktop in the current monitor +super + bracket{left,right} + bspc desktop -f {prev,next}.local + +# focus the last node/desktop +super + {grave,Tab} + bspc {node,desktop} -f last + +# focus the older or newer node in the focus history +super + {o,i} + bspc wm -h off; \ + bspc node {older,newer} -f; \ + bspc wm -h on + +# focus or send to the given desktop +super + {_,shift + }{1-9,0} + bspc {desktop -f,node -d} '^{1-9,10}' + +# +# preselect +# + +# preselect the direction +super + ctrl + {h,j,k,l} + bspc node -p {west,south,north,east} + +# preselect the ratio +super + ctrl + {1-9} + bspc node -o 0.{1-9} + +# cancel the preselection for the focused node +super + ctrl + space + bspc node -p cancel + +# cancel the preselection for the focused desktop +super + ctrl + shift + space + bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel + +# +# move/resize +# + +# expand a window by moving one of its side outward +super + alt + {h,j,k,l} + bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0} + +# contract a window by moving one of its side inward +super + alt + shift + {h,j,k,l} + bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} + +# move a floating window +super + {Left,Down,Up,Right} + bspc node -v {-20 0,0 20,0 -20,20 0} diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc @@ -1,69 +1,159 @@ -#sxkhd config -# vim: foldmethod=marker +# RELOAD CONFIG +super + Escape + pkill -USR1 -x sxhkd -super + Return - xrdb -load "$HOME/.Xresources"; "$TERMINAL" -super + s - spotify +### launch software +#launch a terminal +super + alt + Return + xrdb -load "$HOME/.Xresources"; "$TERMINAL" -super + m - "$TERMINAL" -f "Liberation Mono:pixelsize=11:antialias=true:autohint=true" -e ncmpcpp +# launch browser +super + alt + q + "$BROWSER" -super + b - "$TERMINAL" -f "Liberation Mono:pixelsize=11:antialias=true:autohint=true" -e ncmpcpp -c "$HOME/.config/ncmpcpp/config-books" +# launch spotify +super + alt + s + spotify -super + n - "$TERMINAL" -e ranger "$HOME/.notes/" +# launch htop +super + alt + e + "$TERMINAL" -e htop -super + h - "$TERMINAL" -e htop +# launch ncmpcpp +super + alt + m + "$TERMINAL" -e ncmpcpp -super + f - "$BROWSER" +# launch dmenu +super + alt + d + dmenu_run -p run: -nb black -fn 'xft:Bitstream Vera Sans Mono:size=11:normal:antialias=true' -super + l - "$TERMINAL" -e list-keybinds "$HOME/.keybindings" +# launch webcam +super + alt + w + webcam -super + shift + d - dmenu_run -p run: -nb black -fn 'xft:Bitstream Vera Sans Mono:size=11:normal:antialias=true' +# show "statusbar" +super + grave + notify-status + -super + shift + p - dmenu-power -super + shift + q - wmctrl -c :ACTIVE: +### toggle programs +# toggle mpd +super + ctrl + m + toggle 'mpd' +# toggle picom (compositing) +super + shift + c + toggle 'picom' -super + shift + c - toggle 'picom' -super + shift + m - mpd-toggle 'music' -super + shift + b - mpd-toggle 'books' +### basic utilities +# change display brightness +ctrl + {Home,End} + xbacklight-script {inc,dec} + +# switch TTY's +alt + F{1,2,3,4} + /usr/bin/sudo chvt {1,2,3,4} +# launch wallpaper selector +Menu + dmenu-wallpaper + +# take a screenshot +Print + screenshot && flash +# media keys XF86Audio{Next,Prev,Play} - media {next,prev,toggle} + media {next,prev,toggle} +# volume keys XF86Audio{Raise,Lower}Volume - volume {--inc,--dec} 5 + volume {--inc,--dec} 5 -XF86AudioMute - volume mute +# mute mic and speakers +XF86Audio{_,Mic}Mute + volume {mute,mute-mic} +# 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} -ctrl + {Home,End} - xbacklight-script {inc,dec} +### Window Adjustments +# equalize / balance windows +super + {equal,minus} + bspc node @/ {--equalize,--balance} -super + F{1,2,3,4} - /usr/bin/sudo chvt {1,2,3,4} +super + {_,shift + }r + bspc node @/ --rotate {90,-90} -Menu - dmenu-wallpaper +# set the window state +super + {t,shift + t,w,f} + bspc node -t {tiled,pseudo_tiled,floating,fullscreen} -Print - screenshot && flash +# set the window layer +super + ctrl + {a,s,d} + bspc node --layer {above,normal,below} + +super + ctrl + {a,s,d} + bspc node --layer {above,normal,below} + +super + ctrl + {b,n} + bspc-toggle-layer {--below,--above} + +### Workspace Navigation +# focus next,prev +alt + {equal,minus} + bspc desktop --focus {next,prev} + +# switch desktops q,w,e,a,s,d +alt + shift + {q,w,e,a,s,d} + bspc node --to-desktop {I,II,III,IV,V,VI} --follow + +# switch desktops with window +alt + {q,w,e,a,s,d} + bspc desktop -f {I,II,III,IV,V,VI} + +### Desktop Navigation +# focus on window by direction +super + {_,shift + }{h,j,k,l} + bspc node -{f,s} {west,south,north,east} + +# focus on diffrent layers +super + {a,s,d} + bspc node --focus last.{above,normal,below} + + + +### Proccess Management + +# quit / restart bspwm +super + ctrl + {q,r} + bspc {quit,wm -r} + +# close / kill +super + {_,shift + }q + bspc node -{c,k} + +# cycle layouts +super + Tab + bspc desktop -l next + +# shrink or expand nodes +super + ctrl + {equal,minus} + bspc-larger-smaller {--enlarge,--shrink} + +# resize nodes +super + ctrl + {h,j,k,l} + bspc-hjkl {--left,--up,--down,--right} + +# wallpaper node +super + alt + shift + {i,s,h} + float.bspc {--init,--show,--hide}