feat(darwin): add sketchybar
to yabai
module
This commit is contained in:
parent
7df97750b7
commit
89d280b7af
10 changed files with 288 additions and 9 deletions
|
@ -6,8 +6,8 @@ launchctl unload -F /System/Library/LaunchAgents/com.apple.WindowManager.plist >
|
|||
sudo yabai --load-sa
|
||||
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
|
||||
yabai -m signal --add event=window_focused action="sketchybar --trigger window_focus"
|
||||
yabai -m signal --add event=display_added action="sleep 2 && ${HOME}/.config/yabai/create_spaces.sh"
|
||||
yabai -m signal --add event=display_removed action="sleep 1 && ${HOME}/.config/yabai/create_spaces.sh"
|
||||
# yabai -m signal --add event=display_added action="sleep 2 && ${HOME}/.config/yabai/create_spaces.sh"
|
||||
# yabai -m signal --add event=display_removed action="sleep 1 && ${HOME}/.config/yabai/create_spaces.sh"
|
||||
yabai -m signal --add event=window_created action="sketchybar --trigger windows_on_spaces"
|
||||
yabai -m signal --add event=window_destroyed action="sketchybar --trigger windows_on_spaces"
|
||||
yabai -m signal --add event=window_destroyed action="yabai -m query --windows --window &> /dev/null || yabai -m window --focus mouse"
|
||||
|
@ -16,7 +16,7 @@ yabai -m signal --add event=application_terminated action="yabai -m query --wind
|
|||
# {
|
||||
# DESIRED_SPACES_PER_DISPLAY=4
|
||||
# CURRENT_SPACES="$(yabai -m query --displays | jq -r '.[].spaces | @sh')"
|
||||
#
|
||||
#
|
||||
# DELTA=0
|
||||
# while read -r line
|
||||
# do
|
||||
|
@ -37,7 +37,7 @@ yabai -m signal --add event=application_terminated action="yabai -m query --wind
|
|||
# fi
|
||||
# DELTA=$((${DELTA}+${MISSING_SPACES}))
|
||||
# done <<< "${CURRENT_SPACES}"
|
||||
#
|
||||
#
|
||||
# sketchybar --trigger space_change --trigger windows_on_spaces
|
||||
# }
|
||||
|
||||
|
@ -53,6 +53,7 @@ yabai -m config "external_bar" "all:49:0" \
|
|||
"window_opacity_duration" "0.15" \
|
||||
"active_window_opacity" "1.0" \
|
||||
"normal_window_opacity" "0.95" \
|
||||
"window_border_blur" "off" \
|
||||
"window_border_width" "2" \
|
||||
"window_border_hidpi" "off" \
|
||||
"window_border_radius" "11" \
|
||||
|
@ -77,7 +78,7 @@ yabai -m config "external_bar" "all:49:0" \
|
|||
yabai -m rule --add app="^(LuLu|Vimac|Calculator|Software Update|Dictionary|VLC|System Preferences|System Settings|zoom.us|Photo Booth|Archive Utility|Python|LibreOffice|App Store|Steam|Alfred|Activity Monitor)$" manage=off
|
||||
yabai -m rule --add label="Finder" app="^Finder$" title="(Co(py|nnect)|Move|Info|Pref)" manage=off
|
||||
yabai -m rule --add label="Safari" app="^Safari$" title="^(General|(Tab|Password|Website|Extension)s|AutoFill|Se(arch|curity)|Privacy|Advance)$" manage=off
|
||||
yabai -m rule --add label="About This Mac" app="System Information" title="About This Mac" manage=off
|
||||
yabai -m rule --add label="System Information" app="System Information" title="System Information" manage=off
|
||||
yabai -m rule --add label="Select file to save to" app="^Inkscape$" title="Select file to save to" manage=off
|
||||
|
||||
yabai -m config layout bsp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue