mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 10:30:44 +02:00
ported some quickshell stuff from rivendell-hyprdots
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import QtQuick.Effects
|
||||
import "./"
|
||||
|
||||
PanelWindow {
|
||||
property var modelData
|
||||
screen: modelData
|
||||
|
||||
exclusionMode: ExclusionMode.Ignore
|
||||
aboveWindows: false
|
||||
color: "transparent"
|
||||
anchors {
|
||||
top: true
|
||||
left: true
|
||||
bottom: true
|
||||
right: true
|
||||
}
|
||||
Image {
|
||||
id: bg
|
||||
anchors.fill: parent
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
source: `./assets/${Globals.isDarkTheme ? "darkbg" : "bg"}.png`
|
||||
smooth: false
|
||||
}
|
||||
MultiEffect {
|
||||
source: bg
|
||||
anchors.fill: bg
|
||||
blurEnabled: false
|
||||
blurMax: 24
|
||||
blur: 1.0
|
||||
}
|
||||
|
||||
Text {
|
||||
id: timetxt
|
||||
x: 900
|
||||
y: 150
|
||||
font.family: "BigBlueTermPlusNerdFont"
|
||||
font.pointSize: 100
|
||||
font.bold: true
|
||||
color: Globals.isDarkTheme ? "#9292B6" : "#3B2640"
|
||||
|
||||
Process {
|
||||
id: dateProc
|
||||
command: ["date", "+%H %M"]
|
||||
running: true
|
||||
stdout: SplitParser {
|
||||
onRead: data => timetxt.text = data
|
||||
}
|
||||
}
|
||||
Timer {
|
||||
interval: 1000
|
||||
running: true
|
||||
repeat: true
|
||||
onTriggered: dateProc.running = true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user