spacepaste

  1.  
  2. #
  3. # wm independent hotkeys
  4. #
  5. # terminal emulator
  6. super + Return
  7. urxvtc -e fish
  8. # program launcher
  9. super + space
  10. rofi -show run -color-normal "#4B4948,#DEDBD6,#4B4948,#1fda9a,#4B4948" -color-window "#4B4948,#DEDBD6" -font "Terminus 10" -lines 5 -hide-scrollbar -width 1480 -location 2 -bw 2 -separator-style "solid"
  11. # mpv + youtube-dl
  12. shift + ctrl + v
  13. mpv $(xsel -b)
  14. # make sxhkd reload its configuration files:
  15. super + Escape
  16. pkill -USR1 -x sxhkd
  17. #
  18. # bspwm hotkeys
  19. #
  20. # quit bspwm normally
  21. super + alt + Escape
  22. bspc quit
  23. # close and kill
  24. super + {_,shift + }w
  25. bspc node -{c,k}
  26. # alternate between the tiled and monocle layout
  27. super + m
  28. bspc desktop -l next
  29. # if the current node is automatic, send it to the last manual, otherwise pull the last leaf
  30. super + y
  31. bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused
  32. # swap the current node and the biggest node
  33. super + g
  34. bspc node -s biggest
  35. #
  36. # state/flags
  37. #
  38. # set the window state
  39. super + {t,shift + t,s,f}
  40. bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  41. # set the node flags
  42. super + ctrl + {x,y,z}
  43. bspc node -g {locked,sticky,private}
  44. #
  45. # focus/swap
  46. #
  47. # focus the node in the given direction
  48. super + {_,shift + }{h,j,k,l}
  49. bspc node -{f,s} {west,south,north,east}
  50. # focus the node for the given path jump
  51. super + {p,b,comma,period}
  52. bspc node -f @{parent,brother,first,second}
  53. # focus the next/previous node
  54. super + {_,shift + }c
  55. bspc node -f {next,prev}
  56. # focus the next/previous desktop
  57. super + bracket{left,right}
  58. bspc desktop -f {prev,next}
  59. # focus the last node/desktop
  60. super + {grave,Tab}
  61. bspc {node,desktop} -f last
  62. # focus the older or newer node in the focus history
  63. super + {o,i}
  64. bspc wm -h off; \
  65. bspc node {older,newer} -f; \
  66. bspc wm -h on
  67. # focus or send to the given desktop
  68. super + {_,shift + }{1-9,0}
  69. bspc {desktop -f,node -d} '^{1-9,10}'
  70. #
  71. # preselect
  72. #
  73. # preselect the direction
  74. super + ctrl + {h,j,k,l}
  75. bspc node -p {west,south,north,east}
  76. # preselect the ratio
  77. super + ctrl + {1-9}
  78. bspc node -o 0.{1-9}
  79. # cancel the preselection for the focused node
  80. super + ctrl + space
  81. bspc node -p cancel
  82. # cancel the preselection for the focused desktop
  83. super + ctrl + shift + space
  84. bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  85. #
  86. # resize tiled/floating
  87. #
  88. # expand the tiled space in the given direction
  89. super + alt + {h,j,k,l}
  90. bspc node {@west -r -10,@south -r +10,@north -r -10,@east -r +10}
  91. # contract the tiled space in the given direction
  92. super + alt + shift + {h,j,k,l}
  93. bspc node {@east -r -10,@north -r +10,@south -r -10,@west -r +10}
  94. # move a floating window
  95. super + {Left,Down,Up,Right}
  96. xdo move {-x -20,-y +20,-y -20,-x +20}
  97. #
  98. # pointer focus/move/resize
  99. #
  100. # focus
  101. ~button1
  102. bspc pointer -g focus
  103. # start move/resize
  104. super + button{1-3}
  105. ; bspc pointer -g {move,resize_side,resize_corner}
  106. # end move/resize
  107. super + @button{1-3}
  108. bspc pointer -u
  109.