* Adds a simple desktop clock * Adds ability to change color * Sets the desktop clock to be disabled by default * Improves desktop clock code based on feedback * Disable the clock by default * Fixes config of background clock * Removes the timer for the desktop clock --------- Co-authored-by: Kaj Giesbers <kajgiesbers@gmail.com>
38 lines
912 B
QML
38 lines
912 B
QML
import qs.widgets
|
|
import qs.config
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
|
|
LazyLoader {
|
|
activeAsync: Config.background.enabled
|
|
|
|
Variants {
|
|
model: Quickshell.screens
|
|
|
|
StyledWindow {
|
|
id: win
|
|
|
|
required property ShellScreen modelData
|
|
|
|
screen: modelData
|
|
name: "background"
|
|
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
|
WlrLayershell.layer: WlrLayer.Background
|
|
color: "black"
|
|
|
|
anchors.top: true
|
|
anchors.bottom: true
|
|
anchors.left: true
|
|
anchors.right: true
|
|
|
|
Wallpaper {}
|
|
|
|
DesktopClock {
|
|
visible: Config.background.desktopClock.enabled
|
|
anchors.right: parent.right
|
|
anchors.bottom: parent.bottom
|
|
anchors.margins: Appearance.padding.large
|
|
}
|
|
}
|
|
}
|
|
}
|