You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
2.7 KiB

4 years ago
  1. # rules
  2. bpsc rule -a Emulator state=floating
  3. #
  4. # wm independent hotkeys
  5. #
  6. # terminal emulator
  7. super + Return
  8. alacritty
  9. # show time
  10. super + F11
  11. /home/marc/.config/scripts/notify-time
  12. # program launcher
  13. super + @space
  14. rofi -show run drun ssh window
  15. # File managers
  16. super + {e, shift + e}
  17. {urxvt -e ranger, thunar}
  18. # make sxhkd reload its configuration files:
  19. super + Escape
  20. pkill -USR1 -x sxhkd
  21. #
  22. # bspwm hotkeys
  23. #
  24. # quit bspwm normally
  25. super + alt + Escape
  26. bspc quit
  27. # c: closes window of a program, k: kills all instances
  28. super + {_,shift + }w
  29. bspc node -{c,k}
  30. # alternate between the tiled and monocle layout
  31. super + m
  32. bspc desktop -l next
  33. # send the newest marked node to the newest preselected node
  34. super + y
  35. bspc node newest.marked.local -n newest.!automatic.local
  36. # swap the current node and the biggest node
  37. super + g
  38. bspc node -s biggest.local
  39. #
  40. # state/flags
  41. #
  42. # set the window state
  43. super + {t,shift + t,s,f}
  44. bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  45. # toggle fullscreen / floating
  46. super + shift + f
  47. bspc node -t \~fullscreen
  48. # set the node flags
  49. super + ctrl + {m,x,y,z}
  50. bspc node -g {marked,locked,sticky,private}
  51. #
  52. # focus/swap
  53. #
  54. # focus the node in the given direction
  55. super + {_,shift + }{h,j,k,l}
  56. bspc node -{f,s} {west,south,north,east}
  57. # focus the node for the given path jump
  58. super + {p,b,comma,period}
  59. bspc node -f @{parent,brother,first,second}
  60. # focus the next/previous node in the current desktop
  61. super + {_,shift + }c
  62. bspc node -f {next,prev}.local
  63. # focus the next/previous desktop in the current monitor
  64. super + bracket{left,right}
  65. bspc desktop -f {prev,next}.local
  66. # focus the last node/desktop
  67. super + {grave,Tab}
  68. bspc {node,desktop} -f last
  69. # focus the older or newer node in the focus history
  70. super + {o,i}
  71. bspc wm -h off; \
  72. bspc node {older,newer} -f; \
  73. bspc wm -h on
  74. # focus or send to the given desktop
  75. super + {_,shift + }{1-9,0}
  76. bspc {desktop -f,node -d} '^{1-9,10}'
  77. #
  78. # preselect
  79. #
  80. # preselect the direction
  81. super + ctrl + {h,j,k,l}
  82. bspc node -p {west,south,north,east}
  83. # preselect the ratio
  84. super + ctrl + {1-9}
  85. bspc node -o 0.{1-9}
  86. # cancel the preselection for the focused node
  87. super + ctrl + space
  88. bspc node -p cancel
  89. # cancel the preselection for the focused desktop
  90. super + ctrl + shift + space
  91. bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  92. #
  93. # move/resize
  94. #
  95. # expand a window by moving one of its side outward
  96. super + alt + {h,j,k,l}
  97. bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  98. # contract a window by moving one of its side inward
  99. super + alt + shift + {h,j,k,l}
  100. bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  101. # move a floating window
  102. super + {Left,Down,Up,Right}
  103. bspc node -v {-20 0,0 20,0 -20,20 0}