aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2018-11-30 00:22:50 +0100
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2018-11-30 00:22:50 +0100
commita6e8799fac3d06ae15ceb662bc0424501e4c003c (patch)
tree411c7a86c790b3369e83a9ba00e64867676f5400
parent4028df8bdbde8d8ae8960619b9f848fe01757310 (diff)
downloaddotfiles-a6e8799fac3d06ae15ceb662bc0424501e4c003c.tar.gz
dotfiles-a6e8799fac3d06ae15ceb662bc0424501e4c003c.tar.bz2
dotfiles-a6e8799fac3d06ae15ceb662bc0424501e4c003c.zip
Better keybindings
-rwxr-xr-xbash/.bashrc13
-rwxr-xr-xchunkwm/.chunkwmrc2
-rw-r--r--chunkwm/.khdrc151
-rw-r--r--chunkwm/.skhdrc43
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"
204fi 204fi
205 205
206if 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"
210fi
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
25chunkc core::log_level warn 25chunkc 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
2cmd + alt + ctrl - r : khd -e "reload"
3
4# open terminal, blazingly fast compared to iTerm/Hyper
5cmd - return : open -na /Applications/Kitty.app
6
7# focus window
8alt - h : chunkc tiling::window --focus west
9alt - j : chunkc tiling::window --focus south
10alt - k : chunkc tiling::window --focus north
11alt - l : chunkc tiling::window --focus east
12
13cmd - j : chunkc tiling::window --focus prev
14cmd - k : chunkc tiling::window --focus next
15
16# equalize size of windows
17shift + alt - 0 : chunkc tiling::desktop --equalize
18
19# swap window
20shift + alt - h : chunkc tiling::window --swap west
21shift + alt - j : chunkc tiling::window --swap south
22shift + alt - k : chunkc tiling::window --swap north
23shift + alt - l : chunkc tiling::window --swap east
24
25# move window
26shift + cmd - h : chunkc tiling::window --warp west
27shift + cmd - j : chunkc tiling::window --warp south
28shift + cmd - k : chunkc tiling::window --warp north
29shift + cmd - l : chunkc tiling::window --warp east
30
31# make floating window fill screen
32shift + alt - up : chunkc tiling::window --grid-layout 1:1:0:0:1:1
33
34# make floating window fill left-half of screen
35shift + alt - left : chunkc tiling::window --grid-layout 1:2:0:0:1:1
36
37# make floating window fill right-half of screen
38shift + 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
42alt - q : chunkc tiling::window --grid-layout 10:10:0:0:5:5
43
44# send window to desktop
45shift + alt - x : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop)
46shift + alt - z : chunkc tiling::window --send-to-desktop prev
47shift + alt - c : chunkc tiling::window --send-to-desktop next
48shift + alt - 1 : chunkc tiling::window --send-to-desktop 1
49shift + alt - 2 : chunkc tiling::window --send-to-desktop 2
50shift + alt - 3 : chunkc tiling::window --send-to-desktop 3
51shift + alt - 4 : chunkc tiling::window --send-to-desktop 4
52shift + alt - 5 : chunkc tiling::window --send-to-desktop 5
53shift + alt - 6 : chunkc tiling::window --send-to-desktop 6
54
55# send window to desktop and switch desktop
56shift + cmd - x : `id=$(chunkc get _last_active_desktop); chunkc tiling::window -d $id; khd -p "cmd + alt - $id" &> /dev/null`
57shift + cmd - z : chunkc tiling::window -d prev; khd -p "cmd + alt - z"
58shift + cmd - c : chunkc tiling::window -d next; khd -p "cmd + alt - c"
59shift + cmd - 1 : chunkc tiling::window -d 1; khd -p "cmd + alt - 1"
60shift + cmd - 2 : chunkc tiling::window -d 2; khd -p "cmd + alt - 2"
61shift + cmd - 3 : chunkc tiling::window -d 3; khd -p "cmd + alt - 3"
62shift + cmd - 4 : chunkc tiling::window -d 4; khd -p "cmd + alt - 4"
63shift + cmd - 5 : chunkc tiling::window -d 5; khd -p "cmd + alt - 5"
64shift + cmd - 6 : chunkc tiling::window -d 6; khd -p "cmd + alt - 6"
65
66# switch to last active desktop
67cmd + alt - x : `id=$(chunkc get _last_active_desktop); khd -p "cmd + alt - $id" &> /dev/null`
68
69# focus monitor
70ctrl + alt - z : chunkc tiling::monitor -f prev
71ctrl + alt - c : chunkc tiling::monitor -f next
72ctrl + alt - 1 : chunkc tiling::monitor -f 1
73ctrl + alt - 2 : chunkc tiling::monitor -f 2
74ctrl + alt - 3 : chunkc tiling::monitor -f 3
75
76# send window to monitor and follow focus
77ctrl + cmd - z : chunkc tiling::window --send-to-monitor prev; chunkc tiling::monitor -f prev
78ctrl + cmd - c : chunkc tiling::window --send-to-monitor next; chunkc tiling::monitor -f next
79ctrl + cmd - 1 : chunkc tiling::window --send-to-monitor 1; chunkc tiling::monitor -f 1
80ctrl + cmd - 2 : chunkc tiling::window --send-to-monitor 2; chunkc tiling::monitor -f 2
81ctrl + cmd - 3 : chunkc tiling::window --send-to-monitor 3; chunkc tiling::monitor -f 3
82
83# increase region size
84shift + alt - a : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge west
85shift + alt - s : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge south
86shift + alt - w : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge north
87shift + alt - d : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge east
88
89# decrease region size
90shift + cmd - a : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge west
91shift + cmd - s : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge south
92shift + cmd - w : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge north
93shift + cmd - d : chunkc tiling::window --use-temporary-ratio -0.1 --adjust-window-edge east
94
95# set insertion point for focused container
96ctrl + alt - f : chunkc tiling::window --use-insertion-point cancel
97ctrl + alt - h : chunkc tiling::window --use-insertion-point west
98ctrl + alt - j : chunkc tiling::window --use-insertion-point south
99ctrl + alt - k : chunkc tiling::window --use-insertion-point north
100ctrl + alt - l : chunkc tiling::window --use-insertion-point east
101
102# rotate tree
103alt - r : chunkc tiling::desktop --rotate 90
104
105# mirror tree y-axis
106alt - y : chunkc tiling::desktop --mirror vertical
107
108# mirror tree x-axis
109alt - x : chunkc tiling::desktop --mirror horizontal
110
111# toggle desktop offset
112alt - a : chunkc tiling::desktop --toggle offset
113
114# toggle window fullscreen
115alt - f : chunkc tiling::window --toggle fullscreen
116
117# toggle window native fullscreen
118shift + alt - f : chunkc tiling::window --toggle native-fullscreen
119
120# toggle window parent zoom
121alt - d : chunkc tiling::window --toggle parent
122
123# toggle window split type
124alt - e : chunkc tiling::window --toggle split
125
126# float / unfloat window and center on screen
127alt - 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
131alt - 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
135shift + alt - t : chunkc set window_float_next 1
136
137# change layout of desktop
138ctrl + alt - a : chunkc tiling::desktop --layout bsp
139ctrl + alt - s : chunkc tiling::desktop --layout monocle
140ctrl + alt - d : chunkc tiling::desktop --layout float
141
142ctrl + 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 \ { }
149cmd - 7 : khd -p "shift + alt - 7"
150cmd - 8 : khd -p "shift + alt - 8"
151cmd - 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#
86shift + 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
87cmd - return : /Applications/Kitty.app/Contents/MacOS/kitty --single-instance -d ~ 89cmd - return : /Applications/Kitty.app/Contents/MacOS/kitty --single-instance -d ~
88 90
89# open qutebrowser
90cmd + shift - return : ~/Scripts/qtb.sh
91
92# open mpv
93cmd - m : open -na /Applications/mpv.app $(pbpaste)
94
95# close focused window 91# close focused window
96alt - w : chunkc tiling::window --close 92shift + cmd - c : chunkc tiling::window --close
97 93
98# focus window 94# focus window
99alt - h : chunkc tiling::window --focus west 95cmd - h : chunkc tiling::window --focus west
100alt - j : chunkc tiling::window --focus south 96cmd - j : chunkc tiling::window --focus south
101alt - k : chunkc tiling::window --focus north 97cmd - k : chunkc tiling::window --focus north
102alt - l : chunkc tiling::window --focus east 98cmd - l : chunkc tiling::window --focus east
103
104cmd - j : chunkc tiling::window --focus prev
105cmd - k : chunkc tiling::window --focus next
106 99
107# equalize size of windows 100# equalize size of windows
108shift + alt - 0 : chunkc tiling::desktop --equalize 101shift + alt - 0 : chunkc tiling::desktop --equalize
@@ -191,17 +184,11 @@ ctrl + cmd - 1 : chunkc tiling::window --send-to-monitor 1; chunkc tiling::moni
191ctrl + cmd - 2 : chunkc tiling::window --send-to-monitor 2; chunkc tiling::monitor -f 2 184ctrl + cmd - 2 : chunkc tiling::window --send-to-monitor 2; chunkc tiling::monitor -f 2
192ctrl + cmd - 3 : chunkc tiling::window --send-to-monitor 3; chunkc tiling::monitor -f 3 185ctrl + cmd - 3 : chunkc tiling::window --send-to-monitor 3; chunkc tiling::monitor -f 3
193 186
194# increase region size 187# Resize region
195shift + alt - a : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge west 188ctrl + 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
196shift + alt - s : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge south 189ctrl + 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
197shift + alt - w : chunkc tiling::window --use-temporary-ratio 0.1 --adjust-window-edge north