Files
quickshell/bar/StatusBar.qml
2025-11-28 14:07:15 +01:00

66 lines
976 B
QML

import Quickshell
import QtQuick
import Quickshell.Io
import Quickshell.Hyprland
import QtQuick.Layouts
import Quickshell.Services.Mpris
import "root:/singeltons"
PanelWindow {
required property ShellScreen modelData
screen: modelData
anchors {
top: true
left: true
right: true
}
implicitHeight: 30
color: "transparent"
Pill {
Workspaces {}
}
Pill {
anchors.centerIn: parent
Text {
text: Time.time
color: "white"
font.pixelSize: 14
}
}
Pill {
anchors.verticalCenter: parent.verticalCenter
anchors.right: music.left
anchors.rightMargin: 10
Volume {}
}
Pill {
id: music
anchors.right: tray.left
anchors.rightMargin: 10
Music {
player: Mpris.players.values.find(e => e.identity == "Spotify")
}
}
// Pill {
// id: tray
//
// anchors.right: parent.right
// anchors.rightMargin: 10
//
// SystemTray {
//
// }
// }
}