wallpaper: better (and more spaghetti) logic with cache

This commit is contained in:
2025-11-28 12:22:44 +01:00
parent 915f19f142
commit 3d0c6f8de0
3 changed files with 79 additions and 29 deletions

View File

@@ -1,20 +1,17 @@
{
"wallpaper": {
"dirs": [
"~/Pictures/backgrounds",
"/media/Beta/壁纸/库"
],
"excludes": [
"~/Pictures/backgrounds/nao-stars-crop-adjust-flop.jpg",
"~/Pictures/backgrounds/miku-gate.jpg",
"~/Pictures/backgrounds/README.md"
]
},
"action": {
"confirm": "change-wallpaper \"%1\""
},
"sort": {
"type": "date",
"reverse": true
}
"wallpaper": {
"dirs": ["~/Pictures/backgrounds", "/media/Beta/壁纸/库"],
"excludes": [
"~/Pictures/backgrounds/nao-stars-crop-adjust-flop.jpg",
"~/Pictures/backgrounds/miku-gate.jpg",
"~/Pictures/backgrounds/README.md"
]
},
"action": {
"confirm": "change-wallpaper \"%1\" 2560 1600"
},
"sort": {
"type": "date",
"reverse": true
}
}