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.

165 lines
3.3 KiB

5 years ago
5 years ago
5 years ago
5 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. {alacritty -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. # reset sizes of nodes to bspwms defaults
  55. #super + b
  56. # bspc node @/ -{B,E}
  57. # rotate window layout by 90 degrees
  58. super + r
  59. bspc node @focused:/ -R 90
  60. # rotate programs within the given layout
  61. super + alt + r
  62. bspc node @focused:/ -C forward
  63. # focus the node in the given direction
  64. super + {_,shift + }{h,j,k,l}
  65. bspc node -{f,s} {west,south,north,east}
  66. # focus the node for the given path jump
  67. super + {p,b,comma,period}
  68. bspc node -f @{parent,brother,first,second}
  69. # focus the next/previous node in the current desktop
  70. super + {_,shift + }c
  71. bspc node -f {next,prev}.local
  72. # focus the next/previous desktop in the current monitor
  73. super + bracket{left,right}
  74. bspc desktop -f {prev,next}.local
  75. # focus the last node/desktop
  76. super + {grave,Tab}
  77. bspc {node,desktop} -f last
  78. # focus the older or newer node in the focus history
  79. super + {o,i}
  80. bspc wm -h off; \
  81. bspc node {older,newer} -f; \
  82. bspc wm -h on
  83. # focus or send to the given desktop
  84. super + {_,shift + }{1-9,0}
  85. bspc {desktop -f,node -d} '^{1-9,10}'
  86. #
  87. # preselect
  88. #
  89. # preselect the direction
  90. super + ctrl + {h,j,k,l}
  91. bspc node -p {west,south,north,east}
  92. # preselect the ratio
  93. super + ctrl + {1-9}
  94. bspc node -o 0.{1-9}
  95. # cancel the preselection for the focused node
  96. super + ctrl + space
  97. bspc node -p cancel
  98. # cancel the preselection for the focused desktop
  99. super + ctrl + shift + space
  100. bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  101. #
  102. # move/resize
  103. #
  104. # expand a window by moving one of its side outward
  105. super + alt + {h,j,k,l}
  106. bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  107. # contract a window by moving one of its side inward
  108. super + alt + shift + {h,j,k,l}
  109. bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  110. # move a floating window
  111. super + {Left,Down,Up,Right}
  112. bspc node -v {-20 0,0 20,0 -20,20 0}
  113. XF86MonBrightnessUp
  114. $HOME/.config/scripts/backlight_inc.sh
  115. XF86MonBrightnessDown
  116. $HOME/.config/scripts/backlight_dec.sh
  117. XF86AudioRaiseVolume
  118. pactl set-sink-volume @DEFAULT_SINK@ +1000
  119. XF86AudioLowerVolume
  120. pactl set-sink-volume @DEFAULT_SINK@ -1000
  121. XF86AudioMute
  122. pactl set-sink-mute @DEFAULT_SINK@ toggle