dotfiles

andersuno dotfiles
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

sxhkdrc (3932B)


      1 #XF86Audio{Prev,Next}
      2 #	mpc -q {prev,next}
      3 #
      4 #@XF86LaunchA
      5 #	scrot -s -e 'image_viewer $f'
      6 #
      7 #super + shift + equal
      8 #	sxiv -rt "$HOME/image"
      9 #
     10 #XF86LaunchB
     11 #	xdotool selectwindow | xsel -bi
     12 #
     13 #super + alt + {0-9}
     14 #	mpc -q seek {0-9}0%
     15 #
     16 #super + {alt,ctrl,alt + ctrl} + XF86Eject
     17 #	sudo systemctl {suspend,reboot,poweroff}
     18 #
     19 #super + {_,shift + }{h,j,k,l}
     20 #	bspc node -{f,s} {west,south,north,east}
     21 #
     22 #super + alt + control + {h,j,k,l} ; {0-9}
     23 #	bspc node @{west,south,north,east} -r 0.{0-9}
     24 #
     25 #super + alt + p
     26 #	bspc config focus_follows_pointer {true,false}
     27 
     28 #
     29 # wm independent hotkeys
     30 #
     31 
     32 #Program launcher
     33 super + @p ; {b,c,e,p,t,l}
     34 	{sudo timeshift-launcher,brave,geany,keepassxc,terminator,lbry}
     35 
     36 #Script launcher
     37 super + s
     38 	/home/anders/Scripts/.scriptmenu
     39 
     40 # terminal emulator
     41 super + Return
     42 	alacritty
     43 
     44 # terminal emulator
     45 super + shift + Return
     46 	terminator
     47 
     48 #i3Lock
     49 super + KP_Enter
     50 	i3lock-fancy
     51 
     52 #Screenoutput
     53 XF86Display
     54 	$HOME/Scripts/screenoutput.sh
     55 
     56 #Volume
     57 XF86Audio{Raise,Lower}Volume
     58 	pactl set-sink-volume 0 {+,-}5%
     59 
     60 XF86AudioMute
     61 	pactl set-sink-mute 0 toggle
     62 
     63 #Mic
     64 XF86AudioMicMute
     65 	pactl set-source-mute 1 toggle
     66 
     67 #Brightness
     68 XF86MonBrightness{Down,Up}
     69 	xbacklight -{dec,inc} 5
     70 #	sudo /home/anders/Scripts/bright{down,up}.sh
     71 #
     72 #super + KP_{Subtract,Add}
     73 #	sudo /home/anders/Scripts/bright{down,up}.sh
     74 
     75 # program launcher
     76 super + d
     77 	dmenu_run
     78 
     79 # make sxhkd reload its configuration files:
     80 super + Escape
     81 	pkill -USR1 -x sxhkd
     82 
     83 #Lock screen
     84 super + Delete
     85 	betterlockscreen -l blur
     86 	#sudo $HOME/Suckless/slock/slock
     87 
     88 #
     89 # bspwm hotkeys
     90 #
     91 
     92 # quit/restart bspwm
     93 super + alt + {q,r}
     94 	bspc {quit,wm -r}
     95 
     96 # close and kill
     97 super + {_,shift + }w
     98 	bspc node -{c,k}
     99 
    100 # alternate between the tiled and monocle layout
    101 super + m
    102 	bspc desktop -l next
    103 
    104 # send the newest marked node to the newest preselected node
    105 super + y
    106 	bspc node newest.marked.local -n newest.!automatic.local
    107 
    108 # swap the current node and the biggest node
    109 super + g
    110 	bspc node -s biggest
    111 
    112 #
    113 # state/flags
    114 #
    115 
    116 # set the window state
    117 super + {t,shift + t,f,shift + f}
    118 	bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
    119 
    120 # set the node flags
    121 super + ctrl + {m,x,y,z}
    122 	bspc node -g {marked,locked,sticky,private}
    123 
    124 #
    125 # focus/swap
    126 #
    127 
    128 # focus or swap the node in the given direction
    129 super + {_,shift + }{h,j,k,l}
    130 	bspc node -{f,s} {west,south,north,east}
    131 
    132 # focus the node for the given path jump
    133 #super + {p,b,comma,period}
    134 #	bspc node -f @{parent,brother,first,second}
    135 
    136 # focus the next/previous node in the current desktop
    137 super + {_,shift + }c
    138 	bspc node -f {next,prev}.local
    139 
    140 # focus the next/previous desktop in the current monitor
    141 #super + bracket{left,right}
    142 #	bspc desktop -f {prev,next}.local
    143 
    144 # focus the last node/desktop
    145 super + {grave,Tab}
    146 	bspc {node,desktop} -f last
    147 
    148 # focus the older or newer node in the focus history
    149 super + {o,i}
    150 	bspc wm -h off; \
    151 	bspc node {older,newer} -f; \
    152 	bspc wm -h on
    153 
    154 # focus or send to the given desktop
    155 super + {_,shift + }{1-9,0}
    156 	bspc {desktop -f,node -d} '^{1-9,10}'
    157 
    158 #
    159 # preselect
    160 #
    161 
    162 # preselect the direction
    163 super + ctrl + {h,j,k,l}
    164 	bspc node -p {west,south,north,east}
    165 
    166 # preselect the ratio
    167 super + ctrl + {1-9}
    168 	bspc node -o 0.{1-9}
    169 
    170 # cancel the preselection for the focused node
    171 super + ctrl + space
    172 	bspc node -p cancel
    173 
    174 # cancel the preselection for the focused desktop
    175 super + ctrl + shift + space
    176 	bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
    177 
    178 #
    179 # move/resize
    180 #
    181 
    182 # resize gaps
    183 super + alt + {8,9}
    184 	bspc config window_gap $((`bspc config window_gap` {+,-} 5))
    185 super + alt + 0
    186 	bspc config window_gap 0
    187 
    188 # expand a window by moving one of its side outward
    189 super + alt + {h,j,k,l}
    190 	bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
    191 
    192 # contract a window by moving one of its side inward
    193 super + alt + shift + {h,j,k,l}
    194 	bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
    195 
    196 # move a floating window
    197 super + {Left,Down,Up,Right}
    198 	bspc node -v {-20 0,0 20,0 -20,20 0}