mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
Initial commit
This commit is contained in:
commit
05cd51b54e
148 changed files with 10112 additions and 0 deletions
21
bar/Clock.qml
Normal file
21
bar/Clock.qml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import QtQuick
|
||||
import Quickshell
|
||||
|
||||
Text {
|
||||
property string ap: sysClock.hours >= 12 ? "PM" : "AM"
|
||||
property string minutes: sysClock.minutes.toString().padStart(2, '0')
|
||||
property string hours: {
|
||||
var value = sysClock.hours % 12;
|
||||
if (value === 0)
|
||||
return 12;
|
||||
return value;
|
||||
}
|
||||
|
||||
SystemClock {
|
||||
id: sysClock
|
||||
enabled: true
|
||||
}
|
||||
|
||||
text: `${hours}:${minutes} ${ap}`
|
||||
font.pointSize: 11
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue