Add script to manually set wallpapers
This commit is contained in:
parent
d99acbcbea
commit
f4a8467915
1 changed files with 6 additions and 0 deletions
6
dot-local/bin/set-wallpaper
Executable file
6
dot-local/bin/set-wallpaper
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/zsh
|
||||
WALLPAPER_PATH=${1:a}
|
||||
WALLPAPER_URI=file://$WALLPAPER_PATH
|
||||
WALLPAPER_KEY=AllSpacesAndDisplays:Desktop:Content:Choices:0:Files:0:relative
|
||||
|
||||
/usr/libexec/PlistBuddy -c "set $WALLPAPER_KEY $WALLPAPER_URI" ~/Library/Application\ Support/com.apple.wallpaper/Store/Index.plist && killall WallpaperAgent
|
Loading…
Add table
Reference in a new issue