diff options
| author | 2018-11-30 00:22:50 +0100 | |
|---|---|---|
| committer | 2018-11-30 00:22:50 +0100 | |
| commit | a6e8799fac3d06ae15ceb662bc0424501e4c003c (patch) | |
| tree | 411c7a86c790b3369e83a9ba00e64867676f5400 | |
| parent | 4028df8bdbde8d8ae8960619b9f848fe01757310 (diff) | |
| download | dotfiles-a6e8799fac3d06ae15ceb662bc0424501e4c003c.tar.gz dotfiles-a6e8799fac3d06ae15ceb662bc0424501e4c003c.tar.bz2 dotfiles-a6e8799fac3d06ae15ceb662bc0424501e4c003c.zip | |
Better keybindings
| -rwxr-xr-x | bash/.bashrc | 13 | ||||
| -rwxr-xr-x | chunkwm/.chunkwmrc | 2 | ||||
| -rw-r--r-- | chunkwm/.khdrc | 151 | ||||
| -rw-r--r-- | chunkwm/.skhdrc | 43 |
4 files changed, 29 insertions, 180 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 0ff8f28..9917109 100755 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
| @@ -203,4 +203,17 @@ if exists pyenv; then | |||
| 203 | export PATH="$PATH:$(pyenv root)/shims" | 203 | export PATH="$PATH:$(pyenv root)/shims" |
| 204 | fi | 204 | fi |
| 205 | 205 | ||
| 206 | if exists xcrun; then | ||
| 207 | SDK_PATH="$(xcrun --show-sdk-path)" | ||
| 208 | export C_INCLUDE_PATH="$C_INCLUDE_PATH:$SDK_PATH/usr/include" | ||
| 209 | export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:$SDK_PATH/usr/include" | ||
| 210 | fi | ||
| 211 | |||
| 206 | # vim: set ts=4 sw=4 tw=0 et : | 212 | # vim: set ts=4 sw=4 tw=0 et : |
| 213 | |||
| 214 | # tabtab source for serverless package | ||
| 215 | # uninstall by removing these lines or running `tabtab uninstall serverless` | ||
| 216 | [ -f /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.bash ] && . /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.bash | ||
| 217 | # tabtab source for sls package | ||
| 218 | # uninstall by removing these lines or running `tabtab uninstall sls` | ||
| 219 | [ -f /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.bash ] && . /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.bash \ No newline at end of file | ||
diff --git a/chunkwm/.chunkwmrc b/chunkwm/.chunkwmrc index be69b30..bed822e 100755 --- a/chunkwm/.chunkwmrc +++ b/chunkwm/.chunkwmrc | |||
| @@ -22,7 +22,7 @@ chunkc core::log_file stdout | |||
| 22 | # - none, debug, profile, warn, error | 22 | # - none, debug, profile, warn, error |
| 23 | # | 23 | # |
| 24 | 24 | ||
| 25 | chunkc core::log_level warn | 25 | chunkc core::log_level debug |
| 26 | 26 | ||
| 27 | # | 27 | # |
| 28 | # NOTE: specify the absolutepath to the directory to use when loading a plugin. | 28 | # NOTE: specify the absolutepath to the directory to use when loading a plugin. |
diff --git a/chunkwm/.khdrc b/chunkwm/.khdrc deleted file mode 100644 index 2c75573..0000000 --- a/chunkwm/.khdrc +++ /dev/null | |||
| @@ -1,151 +0,0 @@ | |||
| 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" | ||
diff --git a/chunkwm/.skhdrc b/chunkwm/.skhdrc index 5336e71..a1c97d1 100644 --- a/chunkwm/.skhdrc +++ b/chunkwm/.skhdrc | |||
| @@ -82,27 +82,20 @@ | |||
| 82 | # "qutebrowser" : echo "hello qutebrowser" | 82 | # "qutebrowser" : echo "hello qutebrowser" |
| 83 | # "finder" : false | 83 | # "finder" : false |
| 84 | # ] | 84 | # ] |
| 85 | # | ||
| 86 | shift + cmd - r : brew services restart chunkwm | ||
| 85 | 87 | ||
| 86 | # open terminal, blazingly fast compared to iTerm/Hyper | 88 | # open terminal, blazingly fast compared to iTerm/Hyper |
| 87 | cmd - return : /Applications/Kitty.app/Contents/MacOS/kitty --single-instance -d ~ | 89 | cmd - return : /Applications/Kitty.app/Contents/MacOS/kitty --single-instance -d ~ |
| 88 | 90 | ||
| 89 | # open qutebrowser | ||
| 90 | cmd + shift - return : ~/Scripts/qtb.sh | ||
| 91 | |||
| 92 | # open mpv | ||
| 93 | cmd - m : open -na /Applications/mpv.app $(pbpaste) | ||
| 94 | |||
| 95 | # close focused window | 91 | # close focused window |
| 96 | alt - w : chunkc tiling::window --close | 92 | shift + cmd - c : chunkc tiling::window --close |
| 97 | 93 | ||
| 98 | # focus window | 94 | # focus window |
| 99 | alt - h : chunkc tiling::window --focus west | 95 | cmd - h : chunkc tiling::window --focus west |
| 100 | alt - j : chunkc tiling::window --focus south | 96 | cmd - j : chunkc tiling::window --focus south |
| 101 | alt - k : chunkc tiling::window --focus north | 97 | cmd - k : chunkc tiling::window --focus north |
| 102 | alt - l : chunkc tiling::window --focus east | 98 | cmd - l : chunkc tiling::window --focus east |
| 103 | |||
| 104 | cmd - j : chunkc tiling::window --focus prev | ||
| 105 | cmd - k : chunkc tiling::window --focus next | ||
| 106 | 99 | ||
| 107 | # equalize size of windows | 100 | # equalize size of windows |
| 108 | shift + alt - 0 : chunkc tiling::desktop --equalize | 101 | shift + alt - 0 : chunkc tiling::desktop --equalize |
| @@ -191,17 +184,11 @@ ctrl + cmd - 1 : chunkc tiling::window --send-to-monitor 1; chunkc tiling::moni | |||
| 191 | ctrl + cmd - 2 : chunkc tiling::window --send-to-monitor 2; chunkc tiling::monitor -f 2 | 184 | ctrl + cmd - 2 : chunkc tiling::window --send-to-monitor 2; chunkc tiling::monitor -f 2 |
| 192 | ctrl + cmd - 3 : chunkc tiling::window --send-to-monitor 3; chunkc tiling::monitor -f 3 | 185 | ctrl + cmd - 3 : chunkc tiling::window --send-to-monitor 3; chunkc tiling::monitor -f 3 |
| 193 | 186 | ||
| 194 | # increase region size | 187 | # Resize region |
| 195 | shift + alt - a : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge west | 188 | ctrl + cmd - h : chunkc tiling::window --use-temporary-ratio 0.05 --adjust-window-edge west; chunkc tiling::window --use-temporary-ratio -0.05 --adjust-window-edge east |
| 196 | shift + alt - s : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge south | 189 | ctrl + cmd - j : chunkc tiling::window --use-temporary-ratio 0.05 --adjust-window-edge south; chunkc tiling::window --use-temporary-ratio -0.05 --adjust-window-edge north |
| 197 | shift + alt - w : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge north | ||
