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

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