summaryrefslogtreecommitdiff
path: root/.config/quickshell/Bar.qml
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2026-01-15 16:53:43 -0500
committerSam Nystrom <sam@samnystrom.dev>2026-01-15 16:53:43 -0500
commit53008538e5bef961e9ceb5abc5c5ee05a559e97d (patch)
tree3ad2f4fa7fbc88ff4bb67c75395cc4acdb9c09fb /.config/quickshell/Bar.qml
parent3ac17574dbcfe68b2fba11aeeb445f04d1170c2a (diff)
update qs config
Diffstat (limited to '.config/quickshell/Bar.qml')
-rw-r--r--.config/quickshell/Bar.qml231
1 files changed, 0 insertions, 231 deletions
diff --git a/.config/quickshell/Bar.qml b/.config/quickshell/Bar.qml
deleted file mode 100644
index 02b8781..0000000
--- a/.config/quickshell/Bar.qml
+++ /dev/null
@@ -1,231 +0,0 @@
-import Quickshell
-import QtQuick
-import QtQuick.Layouts
-
-Variants {
- model: Quickshell.screens;
-
- delegate: Component {
- PanelWindow {
- id: root
-
- required property var modelData
- screen: modelData
-
- property string fontFamily: "FiraCode Nerd Font"
- property int fontSize: 14
-
- anchors {
- top: true
- left: true
- right: true
- }
-
- implicitHeight: 36 + 8
-
- color: "transparent"
-
- Rectangle {
- anchors {
- fill: parent
- topMargin: 8
- leftMargin: 8
- rightMargin: 8
- }
- implicitHeight: 36
- color: "transparent"
-
- Rectangle {
- anchors.verticalCenter: parent.verticalCenter
- anchors.left: parent.left
- implicitWidth: tags.implicitWidth + 12*2
- height: parent.height
- color: Flexoki.bg
- radius: 18
-
- RowLayout {
- id: tags
- anchors.centerIn: parent
- implicitHeight: parent.implicitHeight
- spacing: 6
-
- Repeater {
- model: Tags.tags
-
- delegate: Rectangle {
- required property bool focused
- required property bool occupied
-
- width: 20
- height: 20
- radius: 10
-
- color: {
- if (focused) {
- if (occupied) {
- return Flexoki.re
- } else {
- return Flexoki.ui3
- }
- } else {
- return "transparent"
- }
- }
-
- border.width: 2
- border.color: occupied ? Flexoki.re : Flexoki.ui3
- }
- }
- }
- }
-
- RowLayout {
- anchors.centerIn: parent
- implicitHeight: parent.implicitHeight
- spacing: 4
-
- Rectangle {
- implicitWidth: song.implicitWidth + 16*2
- height: parent.height
- color: Flexoki.bg
-
- bottomLeftRadius: 18
- topLeftRadius: 18
- bottomRightRadius: 4
- topRightRadius: 4
-
- Text {
- id: song
- anchors.centerIn: parent
- text: {
- var text = Song.artist + " – " + Song.title
- if (text.length > 60) {
- text = text.substring(0, 60) + "…"
- }
- return text
- }
- color: Flexoki.tx
- font { family: root.fontFamily; pixelSize: root.fontSize }
- }
- }
-
- Rectangle {
- implicitWidth: cava.implicitWidth + 16*2
- height: parent.height
- color: Flexoki.bg
-
- bottomLeftRadius: 4
- topLeftRadius: 4
- bottomRightRadius: 18
- topRightRadius: 18
-
- Row {
- id: cava
- anchors.centerIn: parent
- height: 15 + 4
- spacing: 2
-
- Repeater {
- model: Cava.heights
-
- delegate: Rectangle {
- required property int modelData
- y: 15 - modelData
- width: 8
- height: modelData + 4
- radius: 4
- color: Flexoki.tx
-
- Behavior on height {
- NumberAnimation { duration: 1000 / 30; easing.type: Easing.Linear }
- }
- Behavior on y {
- NumberAnimation { duration: 1000 / 30; easing.type: Easing.Linear }
- }
- }
- }
- }
- }
- }
-
- Rectangle {
- anchors.verticalCenter: parent.verticalCenter
- anchors.right: parent.right
- implicitWidth: status.implicitWidth + 12*2
- height: parent.height
- color: Flexoki.bg
- radius: 18
-
- RowLayout {
- id: status
- anchors.centerIn: parent
- implicitHeight: parent.implicitHeight
- spacing: 24
-
- Text {
- text: {
- //    
- var icon
- if (Volume.volume == 0) {
- icon = " "
- } else if (Volume.volume < 50) {
- icon = " "
- } else {
- icon = " "
- }
- return icon + Volume.volume + "%"
- }
- color: Flexoki.re
- font { family: root.fontFamily; pixelSize: root.fontSize }
- }
-
- Text {
- text: Wifi.ssid == "" ? "󰖪 " : "󰖩 " + Wifi.ssid
- color: Flexoki.or
- font { family: root.fontFamily; pixelSize: root.fontSize }
- }
-
- Text {
- text: " " + Brightness.brightness + "%"
- color: Flexoki.ye
- font { family: root.fontFamily; pixelSize: root.fontSize }
- }
-
- Text {
- text: {
- var icon
- var i = Math.round((Battery.capacity - 1) / 10)
- switch (Battery.status) {
- case "Full":
- icon = "󰂄"
- break
- case "Discharging":
- icon = ["󰁺","󰁻","󰁼","󰁽","󰁾","󰁿","󰂀","󰂁","󰂂","󰁹"][i]
- break
- case "Charging":
- icon = ["󰢜","󰂆","󰂇","󰂈","󰢝","󰂉","󰢞","󰂊","󰂋","󰂅"][i]
- break
- }
- return icon + " " + Battery.capacity + "%"
- }
- color: Flexoki.gr
- font { family: root.fontFamily; pixelSize: root.fontSize }
- }
-
- Text {
- text: " " + Qt.formatDateTime(Time.time, "MMM d hh:mm:ss")
- color: Flexoki.bl
- font { family: root.fontFamily; pixelSize: root.fontSize }
- }
-
- Text {
- text: "󰐥"
- color: Flexoki.pu
- font { family: root.fontFamily; pixelSize: root.fontSize * 1.5 }
- }
- }
- }
- }
- }
- }
-}