quickshell fixes
This commit is contained in:
parent
04a5d0bbd6
commit
5158f3ff8f
10 changed files with 96 additions and 29 deletions
31
modules/styling/quickshell/bar/ClockWidget.qml
Normal file
31
modules/styling/quickshell/bar/ClockWidget.qml
Normal file
|
@ -0,0 +1,31 @@
|
|||
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
Item {
|
||||
property string time
|
||||
|
||||
Text {
|
||||
text: time
|
||||
}
|
||||
|
||||
Process {
|
||||
id: dateProc
|
||||
command: ["date", "-u", "+%a, %d %b %H:%M:%S"]
|
||||
running: true
|
||||
|
||||
stdout: SplitParser {
|
||||
onRead: data => time = data
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
interval: 1000
|
||||
running: true
|
||||
repeat: true
|
||||
onTriggered: dateProc.running = true
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue