new quickshell bar and hyprland conf
This commit is contained in:
@@ -11,6 +11,7 @@ import QtQuick.Layouts
|
||||
ShellRoot {
|
||||
id: root
|
||||
|
||||
|
||||
// ── Global polled data ───────────────────
|
||||
property string clockTime: ""
|
||||
property string clockDate: ""
|
||||
@@ -107,18 +108,20 @@ ShellRoot {
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
|
||||
|
||||
PanelWindow {
|
||||
id: bar
|
||||
required property var modelData
|
||||
screen: modelData
|
||||
|
||||
color: '#1c1d20'
|
||||
margins { left: 20; right: 20; top: 10; bottom: 0 } // explicit zero
|
||||
color: '#ad5190'
|
||||
|
||||
|
||||
anchors { top: true; left: true; right: true }
|
||||
implicitHeight: 30
|
||||
exclusiveZone: implicitHeight // reserve space (replaces :exclusive true)
|
||||
|
||||
|
||||
// asumes 20 gap from hyprland, this will reduce 10 from the shown bottom
|
||||
implicitHeight: 38
|
||||
exclusiveZone: implicitHeight-10 // reserve space (replaces :exclusive true)
|
||||
|
||||
|
||||
// Which screen slot is this? (0 = primary → ws 1–5, 1 = secondary → ws 6–10)
|
||||
property int screenIndex: {
|
||||
@@ -137,11 +140,14 @@ ShellRoot {
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
spacing: 0
|
||||
anchors.leftMargin: 8
|
||||
anchors.rightMargin: 8
|
||||
anchors.leftMargin: 16
|
||||
anchors.rightMargin: 16
|
||||
|
||||
|
||||
|
||||
// LEFT – workspaces (native Hyprland model, filtered per screen)
|
||||
Item {
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user