daily pastebin goal
51%
SHARE
TWEET

My sxhkdrc file

Volteos Oct 8th, 2017 (edited) 954 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ######### MY PERSONAL KEYBINDS ###########
  2.  
  3. super + shift + m
  4.     firefox
  5. super + shift + n
  6.     thunar
  7.  
  8. #Scrot [Shots currently go to your Pictures folder]
  9. Print
  10.     scrot '%m-%d-%y_$wx$h_scrot.png' -e 'mv $f ~/Pictures/'
  11.  
  12. # VOLUME
  13.  
  14. ### Mute
  15. XF86AudioMute
  16.     amixer set Master toggle
  17.  
  18. ### Master Volume
  19. XF86AudioRaiseVolume
  20.     amixer set Master 2.5%+,5%+;
  21.  
  22. super + XF86AudioRaiseVolume
  23.     amixer set Master 0.5%+,1%+;
  24.  
  25. XF86AudioLowerVolume
  26.     amixer set Master 2.5%-,5%-;
  27.  
  28. super + XF86AudioLowerVolume
  29.     amixer set Master 0.5%-,1%-;
  30.  
  31. # BRIGHTNESS
  32.  
  33. # Brightness goes up
  34. XF86MonBrightnessUp
  35.     xbacklight -inc 10;
  36. # Brightness goes down
  37. XF86MonBrightnessDown
  38.     xbacklight -dec 10;
  39.  
  40. ##########################################
  41. #
  42. # wm independent hotkeys
  43. #
  44.  
  45. # terminal emulator
  46. super + Return
  47.     urxvt
  48.  
  49. # program launcher
  50. super + @space
  51.     dmenu_run
  52.  
  53. # make sxhkd reload its configuration files:
  54. super + Escape
  55.     pkill -USR1 -x sxhkd
  56.  
  57. #
  58. # bspwm hotkeys
  59. #
  60.  
  61. # quit bspwm normally
  62. super + alt + Escape
  63.     bspc quit
  64.  
  65. # close and kill
  66. super + {_,shift + }w
  67.     bspc node -{c,k}
  68.  
  69. # alternate between the tiled and monocle layout
  70. super + m
  71.     bspc desktop -l next
  72.  
  73. # if the current node is automatic, send it to the last manual, otherwise pull the last leaf
  74. super + y
  75.     bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused
  76.  
  77. # swap the current node and the biggest node
  78. super + g
  79.     bspc node -s biggest
  80.  
  81. #
  82. # state/flags
  83. #
  84.  
  85. # set the window state
  86. super + {t,shift + t,s,f}
  87.     bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  88.  
  89. # set the node flags
  90. super + ctrl + {x,y,z}
  91.     bspc node -g {locked,sticky,private}
  92.  
  93. #
  94. # focus/swap
  95. #
  96.  
  97. # focus the node in the given direction
  98. super + {_,shift + }{h,j,k,l}
  99.     bspc node -{f,s} {west,south,north,east}
  100.  
  101. # focus the node for the given path jump
  102. super + {p,b,comma,period}
  103.     bspc node -f @{parent,brother,first,second}
  104.  
  105. # focus the next/previous node in the current desktop
  106. super + {_,shift + }c
  107.     bspc node -f {next,prev}.local
  108.  
  109. # focus the next/previous desktop in the current monitor
  110. super + bracket{left,right}
  111.     bspc desktop -f {prev,next}.local
  112.  
  113. # focus the last node/desktop
  114. super + {grave,Tab}
  115.     bspc {node,desktop} -f last
  116.  
  117. # focus the older or newer node in the focus history
  118. super + {o,i}
  119.     bspc wm -h off; \
  120.     bspc node {older,newer} -f; \
  121.     bspc wm -h on
  122.  
  123. # focus or send to the given desktop
  124. super + {_,shift + }{1-9,0}
  125.     bspc {desktop -f,node -d} '^{1-9,10}'
  126.  
  127. #
  128. # preselect
  129. #
  130.  
  131. # preselect the direction
  132. super + ctrl + {h,j,k,l}
  133.     bspc node -p {west,south,north,east}
  134.  
  135. # preselect the ratio
  136. super + ctrl + {1-9}
  137.     bspc node -o 0.{1-9}
  138.  
  139. # cancel the preselection for the focused node
  140. super + ctrl + space
  141.     bspc node -p cancel
  142.  
  143. # cancel the preselection for the focused desktop
  144. super + ctrl + shift + space
  145.     bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  146.  
  147. #
  148. # move/resize
  149. #
  150.  
  151. # expand a window by moving one of its side outward
  152. super + alt + {h,j,k,l}
  153.     bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  154.  
  155. # contract a window by moving one of its side inward
  156. super + alt + shift + {h,j,k,l}
  157.     bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  158.  
  159. # move a floating window
  160. super + {Left,Down,Up,Right}
  161.     bspc node -v {-20 0,0 20,0 -20,20 0}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top