diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Bar.qml | 81 | ||||
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/shell.qml | 13 |
2 files changed, 94 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Bar.qml b/accounts/gkleen@sif/shell/quickshell/Bar.qml new file mode 100644 index 00000000..b7235a61 --- /dev/null +++ b/accounts/gkleen@sif/shell/quickshell/Bar.qml | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | import Quickshell | ||
| 2 | import Quickshell.Io | ||
| 3 | import Custom as Custom | ||
| 4 | import QtQuick | ||
| 5 | |||
| 6 | |||
| 7 | PanelWindow { | ||
| 8 | property var modelData | ||
| 9 | |||
| 10 | anchors { | ||
| 11 | bottom: true | ||
| 12 | left: true | ||
| 13 | right: true | ||
| 14 | } | ||
| 15 | margins { | ||
| 16 | left: 26 + 8 | ||
| 17 | right: 26 + 8 | ||
| 18 | } | ||
| 19 | |||
| 20 | screen: modelData | ||
| 21 | implicitHeight: 21 | ||
| 22 | color: Qt.rgba(0, 0, 0, 0.66) | ||
| 23 | |||
| 24 | Row { | ||
| 25 | id: left | ||
| 26 | |||
| 27 | height: parent.height | ||
| 28 | anchors.left: parent.left | ||
| 29 | anchors.leftMargin: 8 | ||
| 30 | anchors.verticalCenter: parent.verticalCenter | ||
| 31 | spacing: 5 | ||
| 32 | |||
| 33 | Text { | ||
| 34 | color: "white" | ||
| 35 | anchors.verticalCenter: parent.verticalCenter | ||
| 36 | text: "left" | ||
| 37 | } | ||
| 38 | } | ||
| 39 | |||
| 40 | Row { | ||
| 41 | id: center | ||
| 42 | |||
| 43 | height: parent.height | ||
| 44 | anchors.centerIn: parent | ||
| 45 | spacing: 5 | ||
| 46 | |||
| 47 | Text { | ||
| 48 | color: "white" | ||
| 49 | anchors.verticalCenter: parent.verticalCenter | ||
| 50 | text: "center" | ||
| 51 | } | ||
| 52 | } | ||
| 53 | |||
| 54 | Row { | ||
| 55 | id: right | ||
| 56 | |||
| 57 | height: parent.height | ||
| 58 | anchors.right: parent.right | ||
| 59 | anchors.rightMargin: 8 | ||
| 60 | anchors.verticalCenter: parent.verticalCenter | ||
| 61 | spacing: 5 | ||
| 62 | |||
| 63 | Text { | ||
| 64 | id: clock | ||
| 65 | color: "white" | ||
| 66 | |||
| 67 | anchors.verticalCenter: parent.verticalCenter | ||
| 68 | |||
| 69 | Custom.Chrono { | ||
| 70 | id: chrono | ||
| 71 | format: "W{0:%V-%u} {0:%F} {0:%H:%M:%S%Ez}" | ||
| 72 | } | ||
| 73 | |||
| 74 | text: chrono.date | ||
| 75 | |||
| 76 | font.pointSize: 10 | ||
| 77 | font.family: "Fira Sans" | ||
| 78 | font.features: { "tnum": 1 } | ||
| 79 | } | ||
| 80 | } | ||
| 81 | } \ No newline at end of file | ||
diff --git a/accounts/gkleen@sif/shell/quickshell/shell.qml b/accounts/gkleen@sif/shell/quickshell/shell.qml new file mode 100644 index 00000000..35fe5344 --- /dev/null +++ b/accounts/gkleen@sif/shell/quickshell/shell.qml | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | import Quickshell | ||
| 2 | |||
| 3 | ShellRoot { | ||
| 4 | settings.watchFiles: false | ||
| 5 | |||
| 6 | Variants { | ||
| 7 | model: Quickshell.screens | ||
| 8 | |||
| 9 | delegate: Bar { | ||
| 10 | modelData: item | ||
| 11 | } | ||
| 12 | } | ||
| 13 | } | ||
