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.

sxhkd 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. #
  2. # wm independent hotkeys
  3. #
  4. # power operations
  5. super + End ; {s,S}
  6. i3lock && sudo -n {zzz,ZZZ}
  7. super + End ; {r,p}
  8. sudo -n {reboot,poweroff}
  9. super + End ; {l,b}
  10. {i3lock,xset dpms force off}
  11. alt + Tab
  12. rofi-windowswitcher
  13. super + shift + {End,Insert}
  14. exec {rofi-powermenu,rofi-bspwm-unhide}
  15. super + {_,shift + }Print
  16. exec {peek -t, peek}
  17. # applications
  18. super + Return
  19. exec kitty -1
  20. super + space
  21. exec rofi -show drun
  22. super + shift + m
  23. exec mpv "$(xclip -sel c -o)"
  24. super + shift + {n,p}
  25. exec kitty -1 --class=kittyfloat -o initial_window_width=900 -o initial_window_height=900 \
  26. {ncmpcpp,htop}
  27. super + Insert
  28. carpalx-helper
  29. # sxhkd reload
  30. super + Escape
  31. pkill -USR1 -x sxhkd
  32. # brightness
  33. XF86MonBrightness{Up,Down}
  34. xbacklight {+,-}5
  35. #
  36. # screencap
  37. #
  38. Print
  39. screenshot
  40. #
  41. # bspwm hotkeys
  42. #
  43. # close and kill
  44. super + {_,shift + }w
  45. bspc node -{c,k}
  46. #alternate between the tiled and monocle layout
  47. super + m
  48. bspc desktop -l next
  49. # if current node is automatic, send it to the last manual, otherwise pull the last leaf
  50. super + y
  51. bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused
  52. # swap the current node and the biggest node
  53. super + g
  54. bspc node -s biggest.local
  55. # toggle pointer focus
  56. super + alt + p
  57. bspc config focus_follows_pointer {true,false}
  58. #
  59. # state/flags
  60. #
  61. # set the window state
  62. super + {t,shift + t,s,f}
  63. bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  64. # set the node flags
  65. super + ctrl + {w,x,y,z}
  66. bspc node -g {hidden,locked,sticky,private}
  67. super + ctrl + shift + w
  68. bspc node $(bspc query -N -d focused -n .hidden | tail -1) -g hidden=off
  69. #
  70. # focus/swap
  71. #
  72. super {_,+ shift} + r
  73. bspc node @/ -R {90,270}
  74. # Rotate leaves of tree
  75. super + shift + {comma,period}
  76. bspc desktop -R {90,270}
  77. # focus/swap the node in the given direction
  78. super + {_,shift + }{h,j,k,l}
  79. bspc node -{f,s} {west,south,north,east}
  80. # focus the node for the given path jump
  81. super + {p,b,comma,period}
  82. bspc node -f @{parent,brother,first,second}
  83. # focus the next/previous node in the current desktop
  84. super + {_,shift + }c
  85. bspc node -f {next,prev}.local
  86. # focus the next/previous desktop
  87. super + bracket{left,right}
  88. bspc desktop -f {prev,next}
  89. # focus the last node/desktop
  90. super + {grave,Tab}
  91. bspc {node,desktop} -f last
  92. # focus the older or newer node in the focus history
  93. super + {o,i}
  94. bspc wm -h off; \
  95. bspc node {older,newer} -f; \
  96. bspc wm -h on
  97. # focus/send to the given desktop
  98. super + {_,shift + }{1-9,0}
  99. bspc {desktop -f,node -d} '^{1-9,10}'
  100. #
  101. # preselect
  102. #
  103. # preselect the direction
  104. super + ctrl + {h,j,k,l}
  105. bspc node -p {west,south,north,east}
  106. # preselect the ratio
  107. super + ctrl + {1-9}
  108. bspc node -o 0.{1-9}
  109. # cancel the preselection for the focused node
  110. super + ctrl + space
  111. bspc node -p cancel
  112. # cancelthe preselection for the focused desktop
  113. super + ctrl + shift + space
  114. bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  115. #
  116. # move/resize
  117. #
  118. # expand the tiled space in the given direction
  119. super + alt + {h,j,k,l}
  120. bspc node {@west -r -,@south -r +,@north -r -,@east -r +}10
  121. # contract the tiled space in the given direction
  122. super + alt + shift + {h,j,k,l}
  123. bspc node {@east -r -,@north -r +,@south -r -,@west -r +}10
  124. # move a floating window
  125. super + {Left,Down,Up,Right}
  126. bspc node -v {-20 0, 0 20, 0 -20,20 0}