Skip to content

Commit

Permalink
docs: add skhdrc and yabairc
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Want-ToBelieve committed Nov 25, 2023
1 parent d688aa2 commit f3e5cda
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 9 deletions.
43 changes: 35 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,39 @@
Currently there are only development versions.
## Install

brew
```fish
brew tap I-Want-ToBelieve/homebrew-formulae
brew install node yakite yakite-toast
# or brew install yakite-toast-bin
npm --global install yakite-daemon
```


## Configuration

yabairc
```
yabai -m config focus_follows_mouse off
yabai -m config mouse_follows_focus off
yabai -m config window_opacity 0.900000
borders active_color=0xffe1e3e4 inactive_color=0xff494d64 width=5.0 2>/dev/null 1>&2 &
yakite-daemon 2>/dev/null 1>&2 &
```





The configuration of yakite itself is in `~/.config/yakite/yakite.json`
It will automatically generate this configuration file with default configuration on first run.

It is worth mentioning that the `class` field in `yakite.json` is actually the `app` field in `yabai -m query --windows`

The release of npm, crates.io, brew, nix and github still requires some time to configure github actions and changesets.

[![Watch the video](https://github.com/koekeishiya/yabai/assets/24669431/615044d8-cdee-479f-a1ba-bc35af9b0118)](https://github.com/koekeishiya/yabai/assets/24669431/615044d8-cdee-479f-a1ba-bc35af9b0118)
## DEV VERSION
Expand Down Expand Up @@ -39,12 +72,6 @@ yakite-daemon:run



### Configuration
Please refer to the examples folder to learn how to interact with skhd and the yabai configuration items I am using.

The configuration of yakite itself is in `~/.config/yakite/yakite.json`
It will automatically generate this configuration file with default configuration on first run.



## TODO
Expand Down
5 changes: 4 additions & 1 deletion examples/services.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{...}: let
yakite = "/Users/i.want.to.believe/git.workspaces/js.workspaces/yakite/apps/yakite/target/release/yakite";
# yakite = "/Users/i.want.to.believe/git.workspaces/js.workspaces/yakite/apps/yakite/target/release/yakite";
yakite = "yakite";
in {
services = {
karabiner-elements = {
Expand Down Expand Up @@ -69,6 +70,8 @@ in {
};
extraConfig = ''
borders active_color=0xff6eff89 inactive_color=0xff516468 width=12.0 2>/dev/null 1>&2 &
yakite-daemon 2>/dev/null 1>&2 &
'';
};
};
Expand Down
47 changes: 47 additions & 0 deletions examples/skhdrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
ctrl - return : kitty --single-instance -d ~

cmd - backspace : skhd -k "ctrl - space"

ctrl - w : skhd -k "ctrl - up"

ctrl - 1 : yabai -m space --focus 1
ctrl - 2 : yabai -m space --focus 2
ctrl - 3 : yabai -m space --focus 3
ctrl - 4 : yabai -m space --focus 4
ctrl - 5 : yabai -m space --focus 5
ctrl - 6 : yabai -m space --focus 6
ctrl - 7 : yabai -m space --focus 7
ctrl - 8 : yabai -m space --focus 8
ctrl - 9 : yabai -m space --focus 9
ctrl - 0 : yabai -m space --focus 10

ctrl + shift - j : yabai -m window --space prev
ctrl + shift - l : yabai -m window --space next
ctrl + shift - 1 : yabai -m window --space 1
ctrl + shift - 2 : yabai -m window --space 2
ctrl + shift - 3 : yabai -m window --space 3
ctrl + shift - 4 : yabai -m window --space 4
ctrl + shift - 5 : yabai -m window --space 5
ctrl + shift - 6 : yabai -m window --space 6
ctrl + shift - 7 : yabai -m window --space 7
ctrl + shift - 8 : yabai -m window --space 8
ctrl + shift - 9 : yabai -m window --space 9
ctrl + shift - 0 : yabai -m window --space 10


ctrl - q : yabai -m window --close
ctrl - x : yabai -m window --minimize

ctrl - t : yakite action toggle-tile-layout
ctrl - m : yakite action toggle-monocle-layout
ctrl - f : yakite action toggle-active-window-floating
ctrl - k : yakite action focus-next-window
ctrl - i : yakite action focus-previous-window
ctrl + shift - k : yakite action move-active-window-to-next-position
ctrl + shift - i : yakite action move-active-window-to-previous-position
ctrl + shift - m : yakite action push-active-window-into-master-area-front

ctrl - 0x2A : yakite action switch-to-next-layout

ctrl - j : yakite action decrease-layout-master-area-size
ctrl - l : yakite action increase-layout-master-area-size
7 changes: 7 additions & 0 deletions examples/yabairc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
yabai -m config focus_follows_mouse off
yabai -m config mouse_follows_focus off
yabai -m config window_opacity 0.900000

borders active_color=0xffe1e3e4 inactive_color=0xff494d64 width=5.0 2>/dev/null 1>&2 &

yakite-daemon 2>/dev/null 1>&2 &

0 comments on commit f3e5cda

Please sign in to comment.