Skip to content

Commit

Permalink
Give yabai another shot, still not ideal
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Oct 31, 2024
1 parent ab55214 commit 7a0bf2b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
20 changes: 16 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,12 @@ prep-sbar:
# Inspired by https://github.com/FelixKratz/dotfiles
dotfiletmpdir := "/tmp/dotfiles-" + choose('8', HEX)

config-sbar:
prep-dotfiles-tmp:
git clone https://github.com/FelixKratz/dotfiles {{dotfiletmpdir}}

config-sbar: prep-dotfiles-tmp
#!/usr/bin/env bash
rm -rf ~/.config/sketchybar
git clone https://github.com/FelixKratz/dotfiles {{dotfiletmpdir}}
cp -r {{dotfiletmpdir}}/.config/sketchybar ~/.config/
rm -rf {{dotfiletmpdir}}
brew services restart felixkratz/formulae/sketchybar
Expand All @@ -216,9 +218,19 @@ sbar:

prep-tile: prep-amethyst

prep-yabai:
prep-yabai: prep-dotfiles-tmp
brew install koekeishiya/formulae/yabai
yabai --start-service
brew install koekeishiya/formulae/skhd
rm -rf ~/.config/yabai
cp -r {{dotfiletmpdir}}/.config/yabai ~/.config/
rm -rf ~/.config/skhd
cp -r {{dotfiletmpdir}}/.config/skhd ~/.config/
yabai --restart-service
skhd --restart-service

no-yabai:
yabai --stop-service
skhd --stop-service

prep-amethyst:
brew install --cask amethyst
Expand Down
15 changes: 15 additions & 0 deletions trees/uts-002G.tree
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,21 @@ Keys:
- `Option + Shift + Space` to cycle through layouts, prefer Tall
- `Option + Shift + J/K` to cycle through windows
- `Option + Shift + H/L` to resize windows

Alternative setup:

- Give [yabai](https://github.com/koekeishiya/yabai) another shot
- requires skhd for key bindings
- Use `just prep-yabai` to install yabai
- Intentionally choose not to disable SIP

Keys:

- Space manipulation won't work with SIP enabled
- `Shift + Alt + space`: toggle sketchbar
- keys to switch between windows are confusing
- `Shift + Alt + s`: change how windows are splitted, prefer use Kitty's own layout management
- `Ctrl + Alt + g`: toggle gaps between windows, prefer no gap
}

\mdblock{Terminal}{
Expand Down

0 comments on commit 7a0bf2b

Please sign in to comment.