Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add .config/borders/bordersrc
Add .config/skhd/skhdrc
Update .config/tmux/tmux.bindkey.conf
Add .config/yabai/scripts/refresh
Add .config/yabai/yabairc
  • Loading branch information
xvzc committed Jun 25, 2024
1 parent 32ac3fe commit de89f45
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,11 @@ codesign -fs 'yabai-cert' $(brew --prefix yabai)/bin/yabai
echo "$(whoami) ALL=(root) NOPASSWD: sha256:$(shasum -a 256 $(which yabai) | cut -d " " -f 1) $(which yabai) --load-sa" | sudo tee /private/etc/sudoers.d/yabai
```

## Run other tools
```bash
brew services start borders
brew services start sketchybar
```



10 changes: 10 additions & 0 deletions dot_config/borders/executable_bordersrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

options=(
style=round
width=5.0
hidpi=on
active_color=0xffe6ff9c
)

borders "${options[@]}"
50 changes: 50 additions & 0 deletions dot_config/skhd/skhdrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
cmd + alt - r : ~/.config/yabai/scripts/refresh

cmd - return : open -a "Wezterm" --new

cmd - h : yabai -m window --focus west
cmd - l : yabai -m window --focus east
cmd - j : yabai -m window --focus south
cmd - k : yabai -m window --focus north

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

cmd + alt - 1 : yabai -m window --space 1 --focus
cmd + alt - 2 : yabai -m window --space 2 --focus
cmd + alt - 3 : yabai -m window --space 3 --focus
cmd + alt - 4 : yabai -m window --space 4 --focus
cmd + alt - 5 : yabai -m window --space 5 --focus
cmd + alt - 6 : yabai -m window --space 6 --focus
cmd + alt - 7 : yabai -m window --space 7 --focus

cmd + alt - h : yabai -m window --swap west
cmd + alt - j : yabai -m window --swap south
cmd + alt - k : yabai -m window --swap north
cmd + alt - l : yabai -m window --swap east

# Create space on the active display


# Delete focused space and focus first space on display
# yabai -m space --destroy

cmd + alt - c : yabai -m space --create
cmd + alt - x : yabai -m space --focus prev && yabai -m space --destroy next

cmd + alt - 0x1B : yabai -m display --focus prev
cmd + alt - 0x18 : yabai -m display --focus next

cmd + alt - f : yabai -m window --toggle zoom-fullscreen
cmd + alt - t : yabai -m window --toggle float



3 changes: 3 additions & 0 deletions dot_config/tmux/tmux.bindkey.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ bind-key ! set-window-option synchronize-panes
# bind-key -r L resize-pane -R 16

# Vim style pane selection

bind -r f resize-pane -Z

bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
Expand Down
4 changes: 4 additions & 0 deletions dot_config/yabai/scripts/executable_refresh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
yabai --restart-service
skhd --restart-service
sketchybar --reload
brew services restart borders
28 changes: 28 additions & 0 deletions dot_config/yabai/yabairc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/zsh

sudo yabai --load-sa

sketchybar --config ~/.config/yabai/sketchybar/sketchybarrc &

yabai -m config layout bsp

yabai -m config split_ratio 0.5

yabai -m config window_opacity on
yabai -m config active_window_opacity 1.0
yabai -m config normal_window_opacity 0.9

yabai -m config top_padding 8
yabai -m config bottom_padding 8
yabai -m config left_padding 8
yabai -m config right_padding 8
yabai -m config window_gap 8

yabai -m rule --add app="^System Settings$" manage=off
yabai -m rule --add title="^Settings$" manage=off
yabai -m rule --add app="KakaoTalk" manage=off
yabai -m rule --add app="Finder" manage=off
yabai -m rule --add app="Spotify" manage=off
yabai -m rule --add app="1Password" manage=off
yabai -m rule --add app="Alfred*" manage=off

0 comments on commit de89f45

Please sign in to comment.