Flake update. Quickshell on Desktop
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
|
||||
Scope {
|
||||
Time { id: timeSource }
|
||||
|
||||
Variants {
|
||||
model: Quickshell.screens;
|
||||
|
||||
PanelWindow {
|
||||
property var modelData
|
||||
screen: modelData
|
||||
|
||||
anchors {
|
||||
top: true
|
||||
left: true
|
||||
right: true
|
||||
}
|
||||
|
||||
implicitHeight: 24
|
||||
|
||||
Clock {
|
||||
anchors.centerIn: parent
|
||||
time: timeSource.time
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import QtQuick
|
||||
|
||||
Text {
|
||||
required property string time
|
||||
font.family: "KelmscottMono"
|
||||
font.pointSize: 14
|
||||
|
||||
text: time
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
|
||||
Scope {
|
||||
id: root
|
||||
property string time
|
||||
|
||||
Process {
|
||||
id: dateProc
|
||||
command: [ "date", "+%T | %A, %b %d" ]
|
||||
running: true
|
||||
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: root.time = this.text
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
interval: 1000
|
||||
running: true
|
||||
repeat: true
|
||||
onTriggered: dateProc.running = true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import Quickshell
|
||||
|
||||
Scope {
|
||||
Bar {}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
|
||||
Scope {
|
||||
Time { id: timeSource }
|
||||
|
||||
Variants {
|
||||
model: Quickshell.screens;
|
||||
|
||||
PanelWindow {
|
||||
property var modelData
|
||||
screen: modelData
|
||||
|
||||
anchors {
|
||||
top: true
|
||||
left: true
|
||||
right: true
|
||||
}
|
||||
|
||||
implicitHeight: 24
|
||||
|
||||
Clock {
|
||||
anchors.centerIn: parent
|
||||
time: timeSource.time
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import QtQuick
|
||||
|
||||
Text {
|
||||
required property string time
|
||||
font.family: "KelmscottMono"
|
||||
font.pointSize: 14
|
||||
|
||||
text: time
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
|
||||
Scope {
|
||||
id: root
|
||||
property string time
|
||||
|
||||
Process {
|
||||
id: dateProc
|
||||
command: [ "date", "+%T | %A, %b %d | %Y" ]
|
||||
running: true
|
||||
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: root.time = this.text
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
interval: 1000
|
||||
running: true
|
||||
repeat: true
|
||||
onTriggered: dateProc.running = true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import Quickshell
|
||||
|
||||
Scope {
|
||||
Bar {}
|
||||
}
|
||||
Reference in New Issue
Block a user