diff options
| author | Evertiro <dgriffiths@widgitlabs.com> | 2026-03-08 04:33:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-08 20:33:31 +1100 |
| commit | 5bde26496e0394cd7267966adb08e56c304bc24e (patch) | |
| tree | 03320ec280ac68010dac8038575405f24855323f | |
| parent | picker: fix large screenshot not opening/copying to clipboard (#1250) (diff) | |
| download | caelestia-shell-5bde26496e0394cd7267966adb08e56c304bc24e.tar.gz caelestia-shell-5bde26496e0394cd7267966adb08e56c304bc24e.tar.bz2 caelestia-shell-5bde26496e0394cd7267966adb08e56c304bc24e.zip | |
bar: allow hiding tray icons (#1227)
* First pass at hiding systray icons
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
* Don't dump all IDs for no reason >_<
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
* Better handling for hiding tray icons
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
* Re-add EOF newline
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
* Hide popouts too
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
* Hide the expand icon if no icons are visible
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
* Update modules/bar/components/Tray.qml
Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
* Update modules/bar/components/Tray.qml
Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
* Update modules/bar/components/Tray.qml
Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
* That needs to be inverted
* Clean up
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
* fix
---------
Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
| -rw-r--r-- | config/BarConfig.qml | 1 | ||||
| -rw-r--r-- | modules/bar/components/Tray.qml | 7 | ||||
| -rw-r--r-- | modules/bar/popouts/Content.qml | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/config/BarConfig.qml b/config/BarConfig.qml index cf33fd2..36a5f78 100644 --- a/config/BarConfig.qml +++ b/config/BarConfig.qml @@ -89,6 +89,7 @@ JsonObject { property bool recolour: false property bool compact: false property list<var> iconSubs: [] + property list<string> hiddenIcons: [] } component Status: JsonObject { diff --git a/modules/bar/components/Tray.qml b/modules/bar/components/Tray.qml index 96956f6..7bafda1 100644 --- a/modules/bar/components/Tray.qml +++ b/modules/bar/components/Tray.qml @@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound import qs.components import qs.services import qs.config +import Quickshell import Quickshell.Services.SystemTray import QtQuick @@ -66,7 +67,9 @@ StyledRect { Repeater { id: items - model: SystemTray.items + model: ScriptModel { + values: SystemTray.items.values.filter(i => !Config.bar.tray.hiddenIcons.includes(i.id)) + } TrayItem {} } @@ -82,7 +85,7 @@ StyledRect { anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom - active: Config.bar.tray.compact + active: Config.bar.tray.compact && items.count > 0 sourceComponent: Item { implicitWidth: expandIconInner.implicitWidth diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml index 4076844..6543e58 100644 --- a/modules/bar/popouts/Content.qml +++ b/modules/bar/popouts/Content.qml @@ -128,7 +128,7 @@ Item { Repeater { model: ScriptModel { - values: [...SystemTray.items.values] + values: SystemTray.items.values.filter(i => !Config.bar.tray.hiddenIcons.includes(i.id)) } Popout { |