dotfiles/yabai/toggle_outline.bash

14 lines
338 B
Bash
Raw Normal View History

2023-12-23 20:13:47 -07:00
#!/usr/bin/env bash
# Turns on outline and turns off shadows in bsp spaces. Leaves them on for
# floating spaces
if [[ "$(yabai -m query --spaces --space | jq '.type')" =~ bsp ]]; then
yabai -m config window_shadow off
yabai -m config window_border on
else
yabai -m config window_shadow on
yabai -m config window_border off
fi