forked from Shinonome/dots-hyprland
wallpaper: fix stretch
This commit is contained in:
@@ -12,8 +12,6 @@ import Quickshell
|
|||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
|
|
||||||
// TODO REMOVE BACKGROUNDWIDGETS
|
|
||||||
|
|
||||||
Scope {
|
Scope {
|
||||||
id: root
|
id: root
|
||||||
readonly property bool fixedClockPosition: Config.options.background.fixedClockPosition
|
readonly property bool fixedClockPosition: Config.options.background.fixedClockPosition
|
||||||
@@ -80,7 +78,7 @@ Scope {
|
|||||||
id: leastBusyRegionOutputCollector
|
id: leastBusyRegionOutputCollector
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
const output = leastBusyRegionOutputCollector.text
|
const output = leastBusyRegionOutputCollector.text
|
||||||
console.log("[Background] Least busy region output:", output)
|
// console.log("[Background] Least busy region output:", output)
|
||||||
if (output.length === 0) return;
|
if (output.length === 0) return;
|
||||||
const parsedContent = JSON.parse(output)
|
const parsedContent = JSON.parse(output)
|
||||||
bgRoot.clockX = parsedContent.center_x
|
bgRoot.clockX = parsedContent.center_x
|
||||||
@@ -91,7 +89,7 @@ Scope {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Wallpaper
|
// Wallpaper
|
||||||
AnimatedImage {
|
Image {
|
||||||
z: 0
|
z: 0
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: bgRoot.wallpaperPath
|
source: bgRoot.wallpaperPath
|
||||||
|
|||||||
Reference in New Issue
Block a user