diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-15 14:19:59 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-15 14:19:59 +0200 |
| commit | 9efe9458afdffe474944a04bc2f81864c0eac879 (patch) | |
| tree | 82a69b003a689837203feea661a0251f586530e0 /notifications/shell.qml | |
| parent | ba26690ea6ba23a3898dde10af349cf8608f5f25 (diff) | |
| download | quickshell-9efe9458afdffe474944a04bc2f81864c0eac879.tar.gz quickshell-9efe9458afdffe474944a04bc2f81864c0eac879.zip | |
feat(notifications): add the balloon shell
Reads the daemon's queue through the Notify singleton and draws a balloon
per live notification, bottom-right of DP-1 over conky. Suppression is here,
not in the daemon: dnd withholds low and normal, snooze withholds all, and
the drawer still lists them.
Diffstat (limited to 'notifications/shell.qml')
| -rw-r--r-- | notifications/shell.qml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/notifications/shell.qml b/notifications/shell.qml new file mode 100644 index 0000000..1b353a3 --- /dev/null +++ b/notifications/shell.qml @@ -0,0 +1,30 @@ +// Copyright (C) 2026 Danilo M. <danix@danix.xyz> +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License version 2 as +// published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +import Quickshell +import Quickshell.Wayland + +ShellRoot { + // Quickshell exits once no window is visible, and the balloons are + // hidden whenever the queue is empty, so this keeps the shell alive. See + // AGENTS.md. + PanelWindow { + visible: true + implicitWidth: 1 + implicitHeight: 1 + color: "transparent" + exclusionMode: ExclusionMode.Ignore + mask: Region {} + WlrLayershell.keyboardFocus: WlrKeyboardFocus.None + } + + Balloons {} +} |
