feat: quickshell rewrite wip

This commit is contained in:
johannes committed 2026-08-23 20:20:02 +02:00
1 parent 962ae7c1c7
commit 452d7080f9
36 files changed
+677 -1685

No files matched your search

+85
View File
@@ -0,0 +1,85 @@
import Quickshell
import Quickshell.Io
import Quickshell.Hyprland
import QtQuick
import QtQuick.Layouts
import "components"
import "core"
Scope {
Variants {
model: Quickshell.screens
delegate: Component {
PanelWindow {
id: topBar
required property var modelData
property var hyprMonitor: Hyprland.monitorFor(modelData)
screen: modelData
anchors {
top: true
left: true
right: true
}
implicitHeight: 32 + 8 // Changed to implicitHeight per warnings
color: "transparent"
exclusiveZone: implicitHeight
Item {
anchors.fill: parent
anchors.topMargin: 8
anchors.leftMargin: Theme.padding
anchors.rightMargin: Theme.padding
// Left: Workspaces
RowLayout {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
// Wrap workspaces in a solid pill
ModuleContainer {
pillColor: Theme.bgAlt
customContent: Component {
Workspaces {
monitor: hyprMonitor
}
}
}
}
// Center: Clock
RowLayout {
anchors.centerIn: parent
Clock {
pillColor: Theme.primary
monitor: hyprMonitor
exclusiveToScreen: true
}
}
// Right: Status Indicators
RowLayout {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
StatusIndicators {
monitor: hyprMonitor
exclusiveToScreen: true
}
}
}
}
}
}
// Notification Daemon (Global, usually tied to primary monitor or floating)
NotificationDaemon {}
// Global floating widget windows
AppLauncherWindow {}
ClipboardPickerWindow {}
PowerMenuWindow {}
}