-
Notifications
You must be signed in to change notification settings - Fork 0
/
skhdrc.symlink
133 lines (102 loc) · 3.76 KB
/
skhdrc.symlink
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
################################################################################
### yabai keybindings : https://github.com/koekeishiya/yabai/wiki/Commands
### skhd modifiers : https://github.com/koekeishiya/skhd/issues/1
### skhd docs : https://github.com/koekeishiya/skhd
################################################################################
#### window managment ###########################
# detach/attach window
alt - a : yabai -m window --toggle float && fish ~/.dotfiles/scripts/center_current_window.fish
# show desktop
alt - return : yabai -m space --toggle show-desktop
# move focused window between spaces
alt - n : ~/.dotfiles/scripts/yabai-window-next-space
alt + shift - n : ~/.dotfiles/scripts/yabai-window-previous-space
# move focused window between displays
alt - d : yabai -m window --display next
alt + shift - d : yabai -m window --display prev
# move focused windows in the current space
alt + ctrl - h : yabai -m window --warp west
alt + ctrl - l : yabai -m window --warp east
alt + ctrl - j : yabai -m window --warp south
alt + ctrl - k : yabai -m window --warp north
# mirror arragning windows in current space
alt - y : yabai -m space --mirror y-axis
alt - x : yabai -m space --mirror x-axis
# chaning foucus between windows
alt - h : yabai -m window --focus west
alt - l : yabai -m window --focus east
alt - j : yabai -m window --focus south
alt - k : yabai -m window --focus north
# change focus between spaces
alt + shift - l : skhd -k "ctrl - right"
alt + shift - h : skhd -k "ctrl - left"
# change focus between displays
alt - m : yabai -m display --focus next || yabai -m display --focus prev
# making window full-screen.
alt - f : yabai -m window --toggle zoom-fullscreen
# foucs next monitor
alt - m : yabai -m display --focus next || yabai -m display --focus prev
# change layout
alt - b : fish ~/.dotfiles/scripts/change_layout.fish
# reset size of windows
alt - 0 : yabai -m query --spaces --window | jq -r '.[0].windows.[]' | xargs -L 1 -I{} yabai -m window {} --ratio abs:0.5:0.5
#### system keybindings ##########################
# screen capture and copy to clipboard.
cmd + shift - 3 : screencapture -ic
# paste and match styling
cmd + shift - v : skhd -k "cmd + shift + alt - v"
# togle system mic mute.
alt - m : ~/.dotfiles/scripts/system-mic-mute.scpt
# editing dotfiles
alt - e : nvim ~/.dotfiles
# open obsidian quick notes
# alt - n : shortcuts run "Quick Note"
# alt + shift - n : shortcuts run "Create a Task"
# open iterm2
alt - t : open /Applications/iTerm.app
# open new vscode
alt - v : code -n
# highlight selected text to obsidian current page
alt - a : ~/.dotfiles/scripts/obsidian-annonations.sh
#### Remapping System Motion ####################
ctrl - h: skhd -k "left"
ctrl - j: skhd -k "down"
ctrl - k: skhd -k "up"
ctrl - l: skhd -k "right"
#### Application Specific Bindings ###########################
# mute mirophone
cmd + shift - m [
"Slack": skhd -k "cmd + shift - space"
# teams using this keybinding by default
]
# open command palette
cmd - p [
"Slack": skhd -k "cmd - g"
"Safari": skhd -k "cmd + shift - 0x2A"
"Notes": skhd -k "cmd + alt - f"
"Arc": skhd -k "cmd - t"
]
cmd - o [
"Slack": skhd -k "cmd - k"
"Safari": skhd -k "cmd - l"
"Finder": skhd -k "cmd + shift - g"
"Telegram": skhd -k "cmd - k"
"Miro": skhd -k "cmd - f"
"Microsoft Teams (work or school)": skhd -k "cmd - e"
"Arc": skhd -k "cmd - l"
]
ctrl - a [
"Mail": skhd -k "cmd + ctrl - a"
]
ctrl - x [
"Mail": skhd -k "cmd - delete"
]
# view/hide panels
cmd - 8 [
"Safari": skhd -k "shift + cmd - l"
"Mail": skhd -k "ctrl + cmd - s"
"Slack": skhd -k "cmd + shift - d"
"Notes": skhd -k "cmd + alt - s"
"Arc": skhd -k "cmd - s"
"Reminders": skhd -k "cmd + alt - s"
]