yabai-config/scripts/taggleShowHideDesktop.sh

10 lines
260 B
Bash
Raw Permalink Normal View History

2023-03-06 01:24:40 +08:00
#!/bin/dash
is_hide_desktop=$(defaults read com.apple.finder CreateDesktop)
if [ $is_hide_desktop -eq "1" ]; then
defaults write com.apple.finder CreateDesktop -bool FALSE;
else
defaults write com.apple.finder CreateDesktop -bool TRUE;
fi
killall Finder;