Created
May 24, 2025 02:50
-
-
Save vit0rr/6ec783e3fabbd987f0bf28de55ee867c to your computer and use it in GitHub Desktop.
Tiling window manager (Yabai) + Window borders + skhdrc (shortcuts) + status bar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ~/.config/borders/bordersrc | |
options=( | |
style=round | |
width=3.0 | |
hidpi=on | |
active_color=0xffe2e2e3 | |
inactive_color=0xff414550 | |
) | |
borders "${options[@]}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ~/.config/skhd/skhdrc | |
cmd - return : open -n /Applications/Ghostty.app | |
cmd + shift - return : open -n /System/Applications/Utilities/Screenshot.app | |
cmd - q : yabai -m window --close | |
cmd - h : yabai -m window --focus west | |
cmd - j : yabai -m window --focus south | |
cmd - k : yabai -m window --focus north | |
cmd - l : yabai -m window --focus east | |
cmd + shift - h : yabai -m window --warp west || yabai -m window --display west | |
cmd + shift - l : yabai -m window --warp east || yabai -m window --display east | |
cmd + shift - j : yabai -m window --warp south | |
cmd + shift - k : yabai -m window --warp north | |
cmd - 1 : yabai -m space --focus 1 || yabai -m space --focus recent | |
cmd - 2 : yabai -m space --focus 2 || yabai -m space --focus recent | |
cmd - 3 : yabai -m space --focus 3 || yabai -m space --focus recent | |
cmd - 4 : yabai -m space --focus 4 || yabai -m space --focus recent | |
cmd - 5 : yabai -m space --focus 5 || yabai -m space --focus recent | |
cmd - 6 : yabai -m space --focus 6 || yabai -m space --focus recent | |
cmd - 7 : yabai -m space --focus 7 || yabai -m space --focus recent | |
cmd - 8 : yabai -m space --focus 8 || yabai -m space --focus recent | |
cmd - 9 : yabai -m space --focus 9 || yabai -m space --focus recent | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ~/.config/spacebar/spacebarrc | |
#!/usr/bin/env sh | |
spacebar -m config position bottom | |
spacebar -m config height 26 | |
spacebar -m config title on | |
spacebar -m config spaces on | |
spacebar -m config clock on | |
spacebar -m config power on | |
spacebar -m config padding_left 20 | |
spacebar -m config padding_right 20 | |
spacebar -m config spacing_left 25 | |
spacebar -m config spacing_right 15 | |
spacebar -m config text_font "Helvetica Neue:Bold:12.0" | |
spacebar -m config icon_font "Font Awesome 5 Free:Solid:12.0" | |
spacebar -m config background_color 0xff202020 | |
spacebar -m config foreground_color 0xffa8a8a8 | |
spacebar -m config space_icon_color 0xff458588 | |
spacebar -m config power_icon_color 0xffcd950c | |
spacebar -m config battery_icon_color 0xffd75f5f | |
spacebar -m config dnd_icon_color 0xffa8a8a8 | |
spacebar -m config clock_icon_color 0xffa8a8a8 | |
spacebar -m config power_icon_strip π π | |
spacebar -m config space_icon_strip I II III IV V VI VII VIII IX X | |
spacebar -m config space_icon . | |
spacebar -m config clock_icon π | |
spacebar -m config dnd_icon ο | |
spacebar -m config clock_format "%d/%m/%y %R" | |
spacebar -m config right_shell on | |
spacebar -m config right_shell_icon π€ | |
spacebar -m config right_shell_command "whoami" | |
echo "spacebar configuration loaded.." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ~/.yabairc | |
#!/usr/bin/env sh | |
# | |
# for this to work you must configure sudo such that | |
# it will be able to run the command without password | |
# | |
# see this wiki page for information: | |
# - https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition | |
# | |
# yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" | |
# sudo yabai --load-sa | |
# | |
# global settings | |
yabai -m config \ | |
external_bar all:0:32 \ | |
menubar_opacity 1.0 \ | |
mouse_follows_focus on \ | |
focus_follows_mouse on \ | |
display_arrangement_order default \ | |
window_origin_display default \ | |
window_placement second_child \ | |
window_insertion_point focused \ | |
window_zoom_persist on \ | |
window_shadow off \ | |
window_animation_duration 0.0 \ | |
window_animation_easing ease_out_circ \ | |
window_opacity_duration 0.0 \ | |
active_window_opacity 1.0 \ | |
normal_window_opacity 0.90 \ | |
window_opacity off \ | |
insert_feedback_color 0xffd75f5f \ | |
split_ratio 0.50 \ | |
split_type auto \ | |
auto_balance off \ | |
top_padding 12 \ | |
bottom_padding 12 \ | |
left_padding 12 \ | |
right_padding 12 \ | |
window_gap 06 \ | |
layout bsp \ | |
mouse_modifier fn \ | |
mouse_action1 move \ | |
mouse_action2 resize \ | |
mouse_drop_action swap | |
yabai -m rule --add title='Settings$' manage=off | |
yabai -m rule --add app="^System Preferences$" manage=off | |
yabai -m rule --add app="^System Settings$" manage=off | |
yabai -m rule --add app="^System Information$" manage=off | |
yabai -m rule --add title="^Preferences$" manage=off | |
yabai -m rule --add title="^Digital Colour Meter$" manage=off | |
yabai -m rule --add title="^General.*" manage=off | |
echo "yabai configuration loaded.." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment