Skip to content

Commit

Permalink
Improve Amethyst setup
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Oct 31, 2024
1 parent 7a0bf2b commit 831662a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 9 deletions.
29 changes: 29 additions & 0 deletions .amethyst.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
layouts:
- bsp
- wide

# # First mod (default option + shift).
# mod1:
# - option
# - shift
# # - control
# # - command

# # Second mod (default option + shift + control).
# mod2:
# - option
# - shift
# - control
# # - command

# Automatically quit and reopen Amethyst.
relaunch-amethyst:
mod: mod1
key: z

# focus-follows-mouse: true

# screen-padding-top: 10
enables-layout-hud: false
enables-layout-hud-on-space-change: false

15 changes: 9 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -218,22 +218,25 @@ sbar:

prep-tile: prep-amethyst

prep-yabai: prep-dotfiles-tmp
brew install koekeishiya/formulae/yabai
prep-skhd: prep-dotfiles-tmp
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
skhd --start-service

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

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

prep-amethyst:
brew install --cask amethyst
cp -f .amethyst.yml ~/.amethyst.yml

# act:
# ./act.sh
Expand Down
8 changes: 5 additions & 3 deletions trees/uts-002G.tree
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Setup:

- Use [SketchyBar](https://github.com/FelixKratz/SketchyBar)
- Use `just prep-sbar` to setup SketchyBar
- Use `just prep-skhd` to setup some extra key bindings
- `Shift + Alt + space`: toggle sketchbar
- Modify `~/.config/sketchybar/bar.lua` as follows:

```lua
Expand All @@ -34,11 +36,12 @@ Setup:

Keys:

- `Option + Shift + Space` to cycle through layouts, prefer Tall
- `Option + Shift + Space` to cycle through layouts
- I prefer only BSP and wide
- `Option + Shift + J/K` to cycle through windows
- `Option + Shift + H/L` to resize windows

Alternative setup:
Alternative setup (not recommended):

- Give [yabai](https://github.com/koekeishiya/yabai) another shot
- requires skhd for key bindings
Expand All @@ -48,7 +51,6 @@ Alternative setup:
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
Expand Down

0 comments on commit 831662a

Please sign in to comment.