diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-11 23:43:38 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-11 23:43:38 +0200 |
| commit | a754f991eb153c11345dfae8b88946c384439dde (patch) | |
| tree | ca1d447272183dbef919b81a229d611068e29d37 /accounts/gkleen@sif/shell/quickshell | |
| parent | 564853110a6e1367cc379bd8418d874829302d00 (diff) | |
| download | nixos-a754f991eb153c11345dfae8b88946c384439dde.tar nixos-a754f991eb153c11345dfae8b88946c384439dde.tar.gz nixos-a754f991eb153c11345dfae8b88946c384439dde.tar.bz2 nixos-a754f991eb153c11345dfae8b88946c384439dde.tar.xz nixos-a754f991eb153c11345dfae8b88946c384439dde.zip | |
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Bar.qml | 23 | ||||
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/PrivacyWidget.qml | 2 | ||||
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/shell.qml | 1 |
3 files changed, 15 insertions, 11 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Bar.qml b/accounts/gkleen@sif/shell/quickshell/Bar.qml index 6952c658..f8092604 100644 --- a/accounts/gkleen@sif/shell/quickshell/Bar.qml +++ b/accounts/gkleen@sif/shell/quickshell/Bar.qml | |||
| @@ -5,7 +5,6 @@ PanelWindow { | |||
| 5 | id: bar | 5 | id: bar |
| 6 | 6 | ||
| 7 | required property var screen | 7 | required property var screen |
| 8 | required property var inhibitorState | ||
| 9 | 8 | ||
| 10 | anchors { | 9 | anchors { |
| 11 | top: true | 10 | top: true |
| @@ -64,32 +63,38 @@ PanelWindow { | |||
| 64 | anchors.verticalCenter: parent.verticalCenter | 63 | anchors.verticalCenter: parent.verticalCenter |
| 65 | spacing: 0 | 64 | spacing: 0 |
| 66 | 65 | ||
| 66 | KeyboardLayout {} | ||
| 67 | |||
| 68 | Item { | ||
| 69 | visible: privacy.visible | ||
| 70 | height: parent.height | ||
| 71 | width: 8 - 4 | ||
| 72 | } | ||
| 73 | |||
| 67 | PrivacyWidget { | 74 | PrivacyWidget { |
| 68 | id: privacy | 75 | id: privacy |
| 69 | } | 76 | } |
| 70 | 77 | ||
| 71 | Item { | 78 | Item { |
| 72 | enabled: privacy.active | 79 | visible: privacy.visible |
| 73 | height: parent.height | 80 | height: parent.height |
| 74 | width: 8 - 4 | 81 | width: 8 - 4 |
| 75 | } | 82 | } |
| 76 | 83 | ||
| 77 | BatteryWidget {} | 84 | SystemTray {} |
| 78 | |||
| 79 | BrightnessWidget {} | ||
| 80 | 85 | ||
| 81 | PipewireWidget {} | 86 | PipewireWidget {} |
| 82 | 87 | ||
| 83 | SystemTray {} | 88 | BrightnessWidget {} |
| 84 | |||
| 85 | KeyboardLayout {} | ||
| 86 | 89 | ||
| 87 | LidSwitchInhibitorWidget {} | 90 | BatteryWidget {} |
| 88 | 91 | ||
| 89 | WaylandInhibitorWidget { | 92 | WaylandInhibitorWidget { |
| 90 | window: bar | 93 | window: bar |
| 91 | } | 94 | } |
| 92 | 95 | ||
| 96 | LidSwitchInhibitorWidget {} | ||
| 97 | |||
| 93 | Item { | 98 | Item { |
| 94 | height: parent.height | 99 | height: parent.height |
| 95 | width: 8 - 4 | 100 | width: 8 - 4 |
diff --git a/accounts/gkleen@sif/shell/quickshell/PrivacyWidget.qml b/accounts/gkleen@sif/shell/quickshell/PrivacyWidget.qml index bb02528b..d7ffadfe 100644 --- a/accounts/gkleen@sif/shell/quickshell/PrivacyWidget.qml +++ b/accounts/gkleen@sif/shell/quickshell/PrivacyWidget.qml | |||
| @@ -9,7 +9,7 @@ Item { | |||
| 9 | width: layout.childrenRect.width | 9 | width: layout.childrenRect.width |
| 10 | anchors.verticalCenter: parent.verticalCenter | 10 | anchors.verticalCenter: parent.verticalCenter |
| 11 | 11 | ||
| 12 | readonly property bool active: Boolean(Privacy.activeItems) | 12 | visible: Array.from(Privacy.activeItems).length > 0 |
| 13 | 13 | ||
| 14 | RowLayout { | 14 | RowLayout { |
| 15 | id: layout | 15 | id: layout |
diff --git a/accounts/gkleen@sif/shell/quickshell/shell.qml b/accounts/gkleen@sif/shell/quickshell/shell.qml index ccb4e82e..693d741f 100644 --- a/accounts/gkleen@sif/shell/quickshell/shell.qml +++ b/accounts/gkleen@sif/shell/quickshell/shell.qml | |||
| @@ -36,7 +36,6 @@ ShellRoot { | |||
| 36 | 36 | ||
| 37 | Bar { | 37 | Bar { |
| 38 | screen: screenScope.modelData | 38 | screen: screenScope.modelData |
| 39 | inhibitorState: inhibitorState | ||
| 40 | } | 39 | } |
| 41 | } | 40 | } |
| 42 | } | 41 | } |
