Files
dotfiles/config/wallpaper/.config/wallreel/config.json
2026-03-02 14:00:15 +01:00

40 lines
1.4 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/Uyanide/WallReel/refs/heads/master/config.schema.json",
"wallpaper": {
"dirs": [
{
"path": "~/Pictures/backgrounds"
},
{
"path": "/media/Beta/壁纸/库"
}
],
"excludes": [
"nao-stars-crop-adjust-flop.jpg",
"miku-gate.jpg",
"\\.md$"
]
},
"action": {
"onSelected": "change-wallpaper '{{ path }}' 2560 1440 --skip-colortheme; change-colortheme -c '{{ colorHex }}'",
"onPreview": "change-colortheme -c '{{ colorHex }}' niri quickshell; swww img -n background \"{{ path }}\" --transition-type fade --transition-duration 0.5",
"quitOnSelected": true,
"saveState": [
{
"key": "flavor",
"fallback": "#89b4fa",
"command": "cat ~/.config/posh_theme.omp.json | jq -r .blocks[0].segments[0].foreground"
},
{
"key": "wallpaper",
"fallback": "$HOME/Pictures/backgrounds/miku-space.jpg",
"command": "find ~/.local/share/wallpaper/current -type f | head -n 1"
}
],
"onRestore": "change-colortheme -c '{{ flavor }}' niri quickshell; swww img -n background \"{{ wallpaper }}\" --transition-type fade --transition-duration 0.5"
},
"cache": {
"maxImageEntries": 300
}
}