diff options
| author | 2018-11-29 11:00:32 +0100 | |
|---|---|---|
| committer | 2018-11-29 11:00:32 +0100 | |
| commit | 4028df8bdbde8d8ae8960619b9f848fe01757310 (patch) | |
| tree | f116b1c9d977c29f5441f39d90439b386a3ff4f8 /chunkwm/.khdrc | |
| parent | 6c7070e305f4dc7ae29ad1fc51233abdf1cf6330 (diff) | |
| download | dotfiles-4028df8bdbde8d8ae8960619b9f848fe01757310.tar.gz dotfiles-4028df8bdbde8d8ae8960619b9f848fe01757310.tar.bz2 dotfiles-4028df8bdbde8d8ae8960619b9f848fe01757310.zip | |
Added chunkwm
Diffstat (limited to 'chunkwm/.khdrc')
| -rw-r--r-- | chunkwm/.khdrc | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/chunkwm/.khdrc b/chunkwm/.khdrc new file mode 100644 index 0000000..2c75573 --- /dev/null +++ b/chunkwm/.khdrc | |||
| @@ -0,0 +1,151 @@ | |||
| 1 | # reload config | ||
| 2 | cmd + alt + ctrl - r : khd -e "reload" | ||
| 3 | |||
| 4 | # open terminal, blazingly fast compared to iTerm/Hyper | ||
| 5 | cmd - return : open -na /Applications/Kitty.app | ||
| 6 | |||
| 7 | # focus window | ||
| 8 | alt - h : chunkc tiling::window --focus west | ||
| 9 | alt - j : chunkc tiling::window --focus south | ||
| 10 | alt - k : chunkc tiling::window --focus north | ||
| 11 | alt - l : chunkc tiling::window --focus east | ||
| 12 | |||
| 13 | cmd - j : chunkc tiling::window --focus prev | ||
| 14 | cmd - k : chunkc tiling::window --focus next | ||
| 15 | |||
| 16 | # equalize size of windows | ||
| 17 | shift + alt - 0 : chunkc tiling::desktop --equalize | ||
| 18 | |||
| 19 | # swap window | ||
| 20 | shift + alt - h : chunkc tiling::window --swap west | ||
| 21 | shift + alt - j : chunkc tiling::window --swap south | ||
| 22 | shift + alt - k : chunkc tiling::window --swap north | ||
| 23 | shift + alt - l : chunkc tiling::window --swap east | ||
| 24 | |||
| 25 | # move window | ||
| 26 | shift + cmd - h : chunkc tiling::window --warp west | ||
| 27 | shift + cmd - j : chunkc tiling::window --warp south | ||
| 28 | shift + cmd - k : chunkc tiling::window --warp north | ||
| 29 | shift + cmd - l : chunkc tiling::window --warp east | ||
| 30 | |||
| 31 | # make floating window fill screen | ||
| 32 | shift + alt - up : chunkc tiling::window --grid-layout 1:1:0:0:1:1 | ||
| 33 | |||
| 34 | # make floating window fill left-half of screen | ||
| 35 | shift + alt - left : chunkc tiling::window --grid-layout 1:2:0:0:1:1 | ||
| 36 | |||
| 37 | # make floating window fill right-half of screen | ||
| 38 | shift + alt - right : chunkc tiling::window --grid-layout 1:2:1:0:1:1 | ||
| 39 | |||
| 40 | # move floating windows / windows on a grid space | ||
| 41 | # 10 rows 10 cols grid, windows left and top on 0 grid, and have 5 grid width 5 grid height | ||
| 42 | alt - q : chunkc tiling::window --grid-layout 10:10:0:0:5:5 | ||
| 43 | |||
| 44 | # send window to desktop | ||
| 45 | shift + alt - x : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop) | ||
| 46 | shift + alt - z : chunkc tiling::window --send-to-desktop prev | ||
| 47 | shift + alt - c : chunkc tiling::window --send-to-desktop next | ||
| 48 | shift + alt - 1 : chunkc tiling::window --send-to-desktop 1 | ||
| 49 | shift + alt - 2 : chunkc tiling::window --send-to-desktop 2 | ||
| 50 | shift + alt - 3 : chunkc tiling::window --send-to-desktop 3 | ||
| 51 | shift + alt - 4 : chunkc tiling::window --send-to-desktop 4 | ||
| 52 | shift + alt - 5 : chunkc tiling::window --send-to-desktop 5 | ||
| 53 | shift + alt - 6 : chunkc tiling::window --send-to-desktop 6 | ||
| 54 | |||
| 55 | # send window to desktop and switch desktop | ||
| 56 | shift + cmd - x : `id=$(chunkc get _last_active_desktop); chunkc tiling::window -d $id; khd -p "cmd + alt - $id" &> /dev/null` | ||
| 57 | shift + cmd - z : chunkc tiling::window -d prev; khd -p "cmd + alt - z" | ||
| 58 | shift + cmd - c : chunkc tiling::window -d next; khd -p "cmd + alt - c" | ||
| 59 | shift + cmd - 1 : chunkc tiling::window -d 1; khd -p "cmd + alt - 1" | ||
| 60 | shift + cmd - 2 : chunkc tiling::window -d 2; khd -p "cmd + alt - 2" | ||
| 61 | shift + cmd - 3 : chunkc tiling::window -d 3; khd -p "cmd + alt - 3" | ||
| 62 | shift + cmd - 4 : chunkc tiling::window -d 4; khd -p "cmd + alt - 4" | ||
| 63 | shift + cmd - 5 : chunkc tiling::window -d 5; khd -p "cmd + alt - 5" | ||
| 64 | shift + cmd - 6 : chunkc tiling::window -d 6; khd -p "cmd + alt - 6" | ||
| 65 | |||
| 66 | # switch to last active desktop | ||
| 67 | cmd + alt - x : `id=$(chunkc get _last_active_desktop); khd -p "cmd + alt - $id" &> /dev/null` | ||
| 68 | |||
| 69 | # focus monitor | ||
| 70 | ctrl + alt - z : chunkc tiling::monitor -f prev | ||
| 71 | ctrl + alt - c : chunkc tiling::monitor -f next | ||
| 72 | ctrl + alt - 1 : chunkc tiling::monitor -f 1 | ||
| 73 | ctrl + alt - 2 : chunkc tiling::monitor -f 2 | ||
| 74 | ctrl + alt - 3 : chunkc tiling::monitor -f 3 | ||
| 75 | |||
| 76 | # send window to monitor and follow focus | ||
| 77 | ctrl + cmd - z : chunkc tiling::window --send-to-monitor prev; chunkc tiling::monitor -f prev | ||
| 78 | ctrl + cmd - c : chunkc tiling::window --send-to-monitor next; chunkc tiling::monitor -f next | ||
| 79 | ctrl + cmd - 1 : chunkc tiling::window --send-to-monitor 1; chunkc tiling::monitor -f 1 | ||
| 80 | ctrl + cmd - 2 : chunkc tiling::window --send-to-monitor 2; chunkc tiling::monitor -f 2 | ||
| 81 | ctrl + cmd - 3 : chunkc tiling::window --send-to-monitor 3; chunkc tiling::monitor -f 3 | ||
| 82 | |||
| 83 | # increase region size | ||
| 84 | shift + alt - a : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge west | ||
| 85 | shift + alt - s : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge south | ||
| 86 | shift + alt - w : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge north | ||
| 87 | shift + alt - d : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge east | ||
| 88 | |||
| 89 | # decrease region size | ||
| 90 | shift + cmd - a : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge west | ||
| 91 | shift + cmd - s : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge south | ||
| 92 | shift + cmd - w : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge north | ||
| 93 | shift + cmd - d : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge east | ||
| 94 | |||
| 95 | # set insertion point for focused container | ||
| 96 | ctrl + alt - f : chunkc tiling::window --use-insertion-point cancel | ||
| 97 | ctrl + alt - h : chunkc tiling::window --use-insertion-point west | ||
| 98 | ctrl + alt - j : chunkc tiling::window --use-insertion-point south | ||
| 99 | ctrl + alt - k : chunkc tiling::window --use-insertion-point north | ||
| 100 | ctrl + alt - l : chunkc tiling::window --use-insertion-point east | ||
| 101 | |||
| 102 | # rotate tree | ||
| 103 | alt - r : chunkc tiling::desktop --rotate 90 | ||
| 104 | |||
| 105 | # mirror tree y-axis | ||
| 106 | alt - y : chunkc tiling::desktop --mirror vertical | ||
| 107 | |||
| 108 | # mirror tree x-axis | ||
| 109 | alt - x : chunkc tiling::desktop --mirror horizontal | ||
| 110 | |||
| 111 | # toggle desktop offset | ||
| 112 | alt - a : chunkc tiling::desktop --toggle offset | ||
| 113 | |||
| 114 | # toggle window fullscreen | ||
| 115 | alt - f : chunkc tiling::window --toggle fullscreen | ||
| 116 | |||
| 117 | # toggle window native fullscreen | ||
| 118 | shift + alt - f : chunkc tiling::window --toggle native-fullscreen | ||
| 119 | |||
| 120 | # toggle window parent zoom | ||
| 121 | alt - d : chunkc tiling::window --toggle parent | ||
| 122 | |||
| 123 | # toggle window split type | ||
| 124 | alt - e : chunkc tiling::window --toggle split | ||
| 125 | |||
| 126 | # float / unfloat window and center on screen | ||
| 127 | alt - t : chunkc tiling::window --toggle float;\ | ||
| 128 | chunkc tiling::window --grid-layout 4:4:1:1:2:2 | ||
| 129 | |||
| 130 | # toggle sticky, float and resize to picture-in-picture size | ||
| 131 | alt - s : chunkc tiling::window --toggle sticky;\ | ||
| 132 | chunkc tiling::window --grid-layout 5:5:4:0:1:1 | ||
| 133 | |||
| 134 | # float next window to be tiled | ||
| 135 | shift + alt - t : chunkc set window_float_next 1 | ||
| 136 | |||
| 137 | # change layout of desktop | ||
| 138 | ctrl + alt - a : chunkc tiling::desktop --layout bsp | ||
| 139 | ctrl + alt - s : chunkc tiling::desktop --layout monocle | ||
| 140 | ctrl + alt - d : chunkc tiling::desktop --layout float | ||
| 141 | |||
| 142 | ctrl + alt - w : chunkc tiling::desktop --deserialize ~/.chunkwm_layouts/dev_1 | ||
| 143 | |||
| 144 | # remap caps-lock to escape for this config only !!! | ||
| 145 | # macos sierra can also perform this remap for a given keyboard | ||
| 146 | - capslock : khd -p "- escape" | ||
| 147 | |||
| 148 | # key remap for norwegian layout \ { } | ||
| 149 | cmd - 7 : khd -p "shift + alt - 7" | ||
| 150 | cmd - 8 : khd -p "shift + alt - 8" | ||
| 151 | cmd - 9 : khd -p "shift + alt - 9" | ||
