The most important of things.
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.

.khdrc 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. # reload config
  2. cmd + alt + ctrl - r : khd -e "reload"
  3. # open terminal, blazingly fast compared to iTerm/Hyper
  4. cmd - return : open -na /Applications/Kitty.app
  5. # focus window
  6. alt - h : chunkc tiling::window --focus west
  7. alt - j : chunkc tiling::window --focus south
  8. alt - k : chunkc tiling::window --focus north
  9. alt - l : chunkc tiling::window --focus east
  10. cmd - j : chunkc tiling::window --focus prev
  11. cmd - k : chunkc tiling::window --focus next
  12. # equalize size of windows
  13. shift + alt - 0 : chunkc tiling::desktop --equalize
  14. # swap window
  15. shift + alt - h : chunkc tiling::window --swap west
  16. shift + alt - j : chunkc tiling::window --swap south
  17. shift + alt - k : chunkc tiling::window --swap north
  18. shift + alt - l : chunkc tiling::window --swap east
  19. # move window
  20. shift + cmd - h : chunkc tiling::window --warp west
  21. shift + cmd - j : chunkc tiling::window --warp south
  22. shift + cmd - k : chunkc tiling::window --warp north
  23. shift + cmd - l : chunkc tiling::window --warp east
  24. # move floating windows / windows on a floating space
  25. shift + alt - up : chunkc tiling::window --warp-floating fullscreen
  26. shift + alt - left : chunkc tiling::window --warp-floating left
  27. shift + alt - right : chunkc tiling::window --warp-floating right
  28. shift + cmd - left : chunkc tiling::window --warp-floating top-left
  29. shift + cmd - right : chunkc tiling::window --warp-floating top-right
  30. shift + ctrl - left : chunkc tiling::window --warp-floating bottom-left
  31. shift + ctrl - right : chunkc tiling::window --warp-floating bottom-right
  32. # send window to desktop
  33. shift + alt - x : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop)
  34. shift + alt - z : chunkc tiling::window --send-to-desktop prev
  35. shift + alt - c : chunkc tiling::window --send-to-desktop next
  36. shift + alt - 1 : chunkc tiling::window --send-to-desktop 1
  37. shift + alt - 2 : chunkc tiling::window --send-to-desktop 2
  38. shift + alt - 3 : chunkc tiling::window --send-to-desktop 3
  39. shift + alt - 4 : chunkc tiling::window --send-to-desktop 4
  40. shift + alt - 5 : chunkc tiling::window --send-to-desktop 5
  41. shift + alt - 6 : chunkc tiling::window --send-to-desktop 6
  42. # send window to desktop and switch desktop
  43. shift + cmd - x : `id=$(chunkc get _last_active_desktop); chunkc tiling::window -d $id; khd -p "cmd + alt - $id" &> /dev/null`
  44. shift + cmd - z : chunkc tiling::window -d prev; khd -p "cmd + alt - z"
  45. shift + cmd - c : chunkc tiling::window -d next; khd -p "cmd + alt - c"
  46. shift + cmd - 1 : chunkc tiling::window -d 1; khd -p "cmd + alt - 1"
  47. shift + cmd - 2 : chunkc tiling::window -d 2; khd -p "cmd + alt - 2"
  48. shift + cmd - 3 : chunkc tiling::window -d 3; khd -p "cmd + alt - 3"
  49. shift + cmd - 4 : chunkc tiling::window -d 4; khd -p "cmd + alt - 4"
  50. shift + cmd - 5 : chunkc tiling::window -d 5; khd -p "cmd + alt - 5"
  51. shift + cmd - 6 : chunkc tiling::window -d 6; khd -p "cmd + alt - 6"
  52. # switch to last active desktop
  53. cmd + alt - x : `id=$(chunkc get _last_active_desktop); khd -p "cmd + alt - $id" &> /dev/null`
  54. # focus monitor
  55. ctrl + alt - z : chunkc tiling::monitor -f prev
  56. ctrl + alt - c : chunkc tiling::monitor -f next
  57. ctrl + alt - 1 : chunkc tiling::monitor -f 1
  58. ctrl + alt - 2 : chunkc tiling::monitor -f 2
  59. ctrl + alt - 3 : chunkc tiling::monitor -f 3
  60. # send window to monitor and follow focus
  61. ctrl + cmd - z : chunkc tiling::window --send-to-monitor prev; chunkc tiling::monitor -f prev
  62. ctrl + cmd - c : chunkc tiling::window --send-to-monitor next; chunkc tiling::monitor -f next
  63. ctrl + cmd - 1 : chunkc tiling::window --send-to-monitor 1; chunkc tiling::monitor -f 1
  64. ctrl + cmd - 2 : chunkc tiling::window --send-to-monitor 2; chunkc tiling::monitor -f 2
  65. ctrl + cmd - 3 : chunkc tiling::window --send-to-monitor 3; chunkc tiling::monitor -f 3
  66. # increase region size
  67. shift + alt - a : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge west
  68. shift + alt - s : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge south
  69. shift + alt - w : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge north
  70. shift + alt - d : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge east
  71. # decrease region size
  72. shift + cmd - a : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge west
  73. shift + cmd - s : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge south
  74. shift + cmd - w : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge north
  75. shift + cmd - d : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge east
  76. # set insertion point for focused container
  77. ctrl + alt - f : chunkc tiling::window --use-insertion-point cancel
  78. ctrl + alt - h : chunkc tiling::window --use-insertion-point west
  79. ctrl + alt - j : chunkc tiling::window --use-insertion-point south
  80. ctrl + alt - k : chunkc tiling::window --use-insertion-point north
  81. ctrl + alt - l : chunkc tiling::window --use-insertion-point east
  82. # rotate tree
  83. alt - r : chunkc tiling::desktop --rotate 90
  84. # mirror tree y-axis
  85. alt - y : chunkc tiling::desktop --mirror vertical
  86. # mirror tree x-axis
  87. alt - x : chunkc tiling::desktop --mirror horizontal
  88. # toggle desktop offset
  89. alt - a : chunkc tiling::desktop --toggle offset
  90. # toggle window fullscreen
  91. alt - f : chunkc tiling::window --toggle fullscreen
  92. # toggle window native fullscreen
  93. shift + alt - f : chunkc tiling::window --toggle native-fullscreen
  94. # toggle window parent zoom
  95. alt - d : chunkc tiling::window --toggle parent
  96. # toggle window split type
  97. alt - e : chunkc tiling::window --toggle split
  98. # float / unfloat window
  99. alt - t : chunkc tiling::window --toggle float
  100. # toggle sticky, float and resize to picture-in-picture size
  101. alt - s : chunkc tiling::window --toggle sticky;\
  102. chunkc tiling::window --warp-floating pip-right
  103. # float next window to be tiled
  104. shift + alt - t : chunkc set window_float_next 1
  105. # change layout of desktop
  106. ctrl + alt - a : chunkc tiling::desktop --layout bsp
  107. ctrl + alt - s : chunkc tiling::desktop --layout monocle
  108. ctrl + alt - d : chunkc tiling::desktop --layout float
  109. ctrl + alt - w : chunkc tiling::desktop --deserialize ~/.chunkwm_layouts/dev_1