config: make gifs configurable

This commit is contained in:
2 * r + 2 * t 2025-06-25 21:57:04 +10:00
parent 6455f6c719
commit ae12e0d4f8
4 changed files with 5 additions and 3 deletions

View file

@ -3,4 +3,6 @@ import Quickshell.Io
JsonObject {
property string wallpaperDir: Paths.strip(`${Paths.pictures}/Wallpapers`)
property string sessionGif: "root:/assets/kurukuru.gif"
property string mediaGif: "root:/assets/bongocat.gif"
}

View file

@ -524,7 +524,7 @@ Item {
playing: root.shouldUpdate && (Players.active?.isPlaying ?? false)
speed: BeatDetector.bpm / 300
source: "root:/assets/bongocat.gif"
source: Config.paths.mediaGif
asynchronous: true
fillMode: AnimatedImage.PreserveAspectFit
}

View file

@ -222,7 +222,7 @@ Item {
playing: root.shouldUpdate && (Players.active?.isPlaying ?? false)
speed: BeatDetector.bpm / 300
source: "root:/assets/bongocat.gif"
source: Config.paths.mediaGif
asynchronous: true
fillMode: AnimatedImage.PreserveAspectFit
}

View file

@ -60,7 +60,7 @@ Column {
playing: visible
asynchronous: true
speed: 0.7
source: "root:/assets/kurukuru.gif"
source: Config.paths.sessionGif
}
SessionButton {