blob: 086a750d2d8eaf49362c6fffd28d52ad510ae9e3 (
plain)
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
|
#+title: SKHD Configuration
I use =skhd= to configure keyboard bindings.
#+begin_src nix
{ config, pkgs, ... }:
{
services.skhd = {
enable = true;
skhdConfig = ''
#+end_src
Use =⌘-Enter= to open my terminal.
#+begin_src text
cmd - return : /opt/homebrew/bin/alacritty
#+end_src
Close a window with =⌘-Shift-Q= to close a window.
#+begin_src text
cmd + shift - q : yabai -m window --close
#+end_src
Launch an application with =⌘-D=.
#+begin_src text
cmd - d : ~/.local/bin/launcher
#+end_src
Reload the configuration with =⌘-Shift-C=.
#+begin_src text
cmd + shift - c : yabai --restart-service && skhd --restart-service
#+end_src
Move focus with =⌘-[HJKL]= to move left (H), down (J), up (K), or right (L).
#+begin_src text
cmd - h : yabai -m window --focus west || yabai -m display --focus west
cmd - j : yabai -m window --focus south || yabai -m display --focus south
cmd - k : yabai -m window --focus north || yabai -m display --focus north
cmd - l : yabai -m window --focus east || yabai -m display --focus east
#+end_src
Move window with =⌘-Shift-[HJKL]= to move left (H), down (J), up (K), or right (L).
#+begin_src text
shift + cmd - h : yabai -m window --warp west
shift + cmd - j : yabai -m window --warp south
shift + cmd - k : yabai -m window --warp north
shift + cmd - l : yabai -m window --warp east
#+end_src
Move to space =x= with =⌘-x=.
#+begin_src text
cmd - 1 : yabai -m space --focus 1
cmd - 2 : yabai -m space --focus 2
cmd - 3 : yabai -m space --focus 3
cmd - 4 : yabai -m space --focus 4
cmd - 5 : yabai -m space --focus 5
cmd - 6 : yabai -m space --focus 6
cmd - 7 : yabai -m space --focus 7
cmd - 8 : yabai -m space --focus 8
cmd - 9 : yabai -m space --focus 9
cmd - 0 : yabai -m space --focus 10
#+end_src
Move application to space =x= with =⌘-=Shift-x=.
#+begin_src text
cmd + shift - 1 : yabai -m window --space 1
cmd + shift - 2 : yabai -m window --space 2
cmd + shift - 3 : yabai -m window --space 3
cmd + shift - 4 : yabai -m window --space 4
cmd + shift - 5 : yabai -m window --space 5
cmd + shift - 6 : yabai -m window --space 6
cmd + shift - 7 : yabai -m window --space 7
cmd + shift - 8 : yabai -m window --space 8
cmd + shift - 9 : yabai -m window --space 9
cmd + shift - 0 : yabai -m window --space 10
#+end_src
Toggle fullscreen with =⌘-Shift-F=.
#+begin_src text
cmd + shift - f : yabai -m window --toggle zoom-fullscreen
#+end_src
Toggle floating with =⌘-Shift-Space=.
#+begin_src text
cmd + shift - space : yabai -m window --toggle float
#+end_src
Take a screenshot with =⌘-Shift-S=.
#+begin_src text
cmd + shift - s : open /System/Applications/Utilities/Screenshot.app
#+end_src
Close the block.
#+begin_src nix
'';
};
}
#+end_src
|