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.

171 lines
3.2 KiB

2 years ago
  1. #
  2. # wm independent hotkeys
  3. # vim:ft=conf
  4. #
  5. # terminal emulator
  6. super + shift + Return
  7. alacritty -e tmux
  8. super + shift + a
  9. alacritty
  10. # browser
  11. super + shift + w
  12. brave-browser
  13. # program launcher
  14. super + space
  15. rofi -show drun
  16. super + w
  17. rofi -show window
  18. # make sxhkd reload its configuration files:
  19. super + Escape
  20. pkill -USR1 -x sxhkd
  21. super + e
  22. mt
  23. #
  24. # bspwm hotkeys
  25. #
  26. # quit/restart bspwm
  27. super + shift + r
  28. bspc wm -r
  29. super + shift + e
  30. ~/.config/bspwm/kill.sh
  31. # close and kill
  32. super + shift + q
  33. bspc node -c
  34. # alternate between the tiled and monocle layout
  35. super + m
  36. bspc desktop -l next
  37. # send the newest marked node to the newest preselected node
  38. super + y
  39. bspc node newest.marked.local -n newest.!automatic.local
  40. # swap the current node and the biggest window
  41. super + g
  42. bspc node -s biggest.window
  43. #
  44. # state/flags
  45. #
  46. # set the window state
  47. super + {t,shift + t,s,f}
  48. bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  49. # set the node flags
  50. super + ctrl + {m,x,y,z}
  51. bspc node -g {marked,locked,sticky,private}
  52. #
  53. # focus/swap
  54. #
  55. # focus the node in the given direction
  56. super + {_,shift + }{h,j,k,l}
  57. bspc node -{f,s} {west,south,north,east}
  58. # focus the node for the given path jump
  59. #super + {p,b,comma,period}
  60. # bspc node -f @{parent,brother,first,second}
  61. # focus the next/previous window in the current desktop
  62. super + {_,shift + }c
  63. bspc node -f {next,prev}.local.!hidden.window
  64. # focus the next/previous desktop in the current monitor
  65. super + bracket{left,right}
  66. bspc desktop -f {prev,next}.local
  67. # focus the last node/desktop
  68. super + {grave,Tab}
  69. bspc {node,desktop} -f last
  70. # focus the older or newer node in the focus history
  71. super + {o,i}
  72. bspc wm -h off; \
  73. bspc node {older,newer} -f; \
  74. bspc wm -h on
  75. # focus or send to the given desktop
  76. super + {_,shift + }{1-9,0}
  77. bspc {desktop -f,node -d} '^{1-9,10}'
  78. #
  79. # preselect
  80. #
  81. # preselect the direction
  82. super + ctrl + {h,j,k,l}
  83. bspc node -p {west,south,north,east}
  84. # preselect the ratio
  85. super + ctrl + {1-9}
  86. bspc node -o 0.{1-9}
  87. # cancel the preselection for the focused node
  88. super + ctrl + space
  89. bspc node -p cancel
  90. # cancel the preselection for the focused desktop
  91. super + ctrl + shift + space
  92. bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  93. #
  94. # move/resize
  95. #
  96. # expand a window by moving one of its side outward
  97. super + alt + {h,j,k,l}
  98. bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  99. # contract a window by moving one of its side inward
  100. super + alt + shift + {h,j,k,l}
  101. bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  102. # move a floating window
  103. super + {Left,Down,Up,Right}
  104. bspc node -v {-20 0,0 20,0 -20,20 0}
  105. #fn + {F8,F9}
  106. # brightnessctl set {10%-,10%+}
  107. # old alt keybindings
  108. #
  109. alt + {Left,Right}
  110. brightnessctl set {10%-,10%+}
  111. alt + {Up,Down}
  112. pamixer set-sink-volume 0 {+,-}5%
  113. # audio stuff
  114. XF86AudioRaiseVolume
  115. pamixer set-sink-volume 0 +5%
  116. XF86AudioLowerVolume
  117. pamixer set-sink-volume 0 -5%
  118. XF86AudioMute
  119. pactl set-sink-mute 0 toggle
  120. # brightness stuff
  121. {XF86MonBrightnessUp,XF86MonBrightnessDown}
  122. brightnessctl set {10%+,10%-}
  123. # screenshot capability
  124. super + shift + s
  125. mkdir -p ~/screenshots && scrot ~/screenshots/%Y-%m-%d-%T-screenshot.png
  126. Print
  127. mkdir -p ~/screenshots && scrot ~/screenshots/%Y-%m-%d-%T-screenshot.png