dotfiles/.yabairc

54 lines
2.1 KiB
Text
Raw Normal View History

2023-11-16 22:29:39 +00:00
#!/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
#
2023-11-18 19:56:03 +00:00
#open -a dmenu-mac
2023-11-16 22:29:39 +00:00
# global settings
yabai -m config \
2023-11-19 07:26:06 +00:00
mouse_follows_focus off \
2023-11-16 22:29:39 +00:00
focus_follows_mouse autoraise \
window_origin_display default \
window_placement second_child \
window_zoom_persist on \
window_shadow off \
window_animation_duration 0.0 \
window_animation_frame_rate 120 \
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 \
2023-11-19 07:26:06 +00:00
top_padding 10 \
2023-11-16 22:29:39 +00:00
bottom_padding 15 \
left_padding 15 \
right_padding 15 \
window_gap 10 \
layout bsp \
mouse_modifier fn \
mouse_action1 move \
mouse_action2 resize \
mouse_drop_action swap \
2023-11-19 07:26:06 +00:00
yabai -m config external_bar all:28:28
2023-11-16 22:29:39 +00:00
borders active_color=0xff9fa7cf inactive_color=0xff494d64 width=5.0 2>/dev/null 1>&2 &
2023-11-19 07:26:06 +00:00
sketchybar &
bottom_bar &
yabai -m signal --add event=window_focused action="sketchybar --trigger window_focus"
yabai -m signal --add event=window_title_changed action="sketchybar --trigger title_change"
2023-11-16 22:29:39 +00:00
echo "yabai configuration loaded.."