Show the notification bell on the bar
This commit is contained in:
1 parent
b05311d814
commit
77ba1dadff
6 files changed
+29
-4
No files matched your search
Executable
+10
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# blob:summary=Print the bar bell for the notification centre as module JSON
|
||||||
|
# blob:hidden=true
|
||||||
|
|
||||||
|
if [[ $(blob-shell notifications dndState 2>/dev/null) == on ]]; then
|
||||||
|
printf '{"text":"","tooltip":"Notifications silenced"}\n'
|
||||||
|
else
|
||||||
|
printf '{"text":"","tooltip":"Notifications"}\n'
|
||||||
|
fi
|
||||||
+11
-1
@@ -30,7 +30,17 @@
|
|||||||
{ "id": "blob.network" },
|
{ "id": "blob.network" },
|
||||||
{ "id": "blob.audio" },
|
{ "id": "blob.audio" },
|
||||||
{ "id": "blob.monitor" },
|
{ "id": "blob.monitor" },
|
||||||
{ "id": "blob.power" }
|
{ "id": "blob.power" },
|
||||||
|
{
|
||||||
|
"id": "blob.notifications",
|
||||||
|
"type": "command",
|
||||||
|
"exec": "blob-notification-bell",
|
||||||
|
"interval": 3,
|
||||||
|
"text": "\uf0f3",
|
||||||
|
"tooltip": "Notifications",
|
||||||
|
"onClick": "blob-shell shell toggle blob.notification-center",
|
||||||
|
"onRightClick": "blob-toggle-silencing"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -333,6 +333,7 @@ of the `blob` listing.
|
|||||||
| Command | Does | Arguments |
|
| Command | Does | Arguments |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| `blob-notification-battery` | Show the current battery status notification | - |
|
| `blob-notification-battery` | Show the current battery status notification | - |
|
||||||
|
| `blob-notification-bell` | Print the bar bell for the notification centre as module JSON (hidden) | - |
|
||||||
| `blob-notification-time` | Show the current time and date notification | - |
|
| `blob-notification-time` | Show the current time and date notification | - |
|
||||||
| `blob-notification-wait` | Wait for the desktop notification server to accept notifications (hidden) | [timeout-seconds] |
|
| `blob-notification-wait` | Wait for the desktop notification server to accept notifications (hidden) | [timeout-seconds] |
|
||||||
| `blob-notification-weather` | Toggle the current weather panel | - |
|
| `blob-notification-weather` | Toggle the current weather panel | - |
|
||||||
|
|||||||
+3
-1
@@ -54,7 +54,9 @@ entirely rather than merging.
|
|||||||
`blob.clock` and `blob.notifications` are `type: "command"` modules, which is how
|
`blob.clock` and `blob.notifications` are `type: "command"` modules, which is how
|
||||||
they carry their own click actions: the clock opens quick settings on left click,
|
they carry their own click actions: the clock opens quick settings on left click,
|
||||||
the shell's calendar on middle, and the timezone picker on right; the bell opens
|
the shell's calendar on middle, and the timezone picker on right; the bell opens
|
||||||
the notification centre on left and toggles silencing on right.
|
the notification centre on left and toggles silencing on right. The bell runs
|
||||||
|
`blob-notification-bell` every 3 seconds and turns into a crossed-out bell while
|
||||||
|
notifications are silenced.
|
||||||
|
|
||||||
The centre module named by `centerAnchor` cannot be dragged out of the centre.
|
The centre module named by `centerAnchor` cannot be dragged out of the centre.
|
||||||
Every other widget still reorders.
|
Every other widget still reorders.
|
||||||
|
|||||||
+1
-1
@@ -38,7 +38,7 @@ falling back to `accent` for themes that define neither. `color0` is
|
|||||||
| Panel | Opened by |
|
| Panel | Opened by |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| Quick settings | left-click the bar clock, or `Super + Ctrl + Q` |
|
| Quick settings | left-click the bar clock, or `Super + Ctrl + Q` |
|
||||||
| Notification centre | left-click the bar bell |
|
| Notification centre | left-click the bar bell; right-click silences notifications, and the bell is crossed out while they are |
|
||||||
| System monitor | `Super + Ctrl + M` |
|
| System monitor | `Super + Ctrl + M` |
|
||||||
|
|
||||||
Both new bar click actions are already in `shell.json`. The system monitor had no
|
Both new bar click actions are already in `shell.json`. The system monitor had no
|
||||||
|
|||||||
+3
-1
@@ -34,7 +34,9 @@
|
|||||||
{
|
{
|
||||||
"id": "blob.notifications",
|
"id": "blob.notifications",
|
||||||
"type": "command",
|
"type": "command",
|
||||||
"text": "",
|
"exec": "blob-notification-bell",
|
||||||
|
"interval": 3,
|
||||||
|
"text": "\uf0f3",
|
||||||
"tooltip": "Notifications",
|
"tooltip": "Notifications",
|
||||||
"onClick": "blob-shell shell toggle blob.notification-center",
|
"onClick": "blob-shell shell toggle blob.notification-center",
|
||||||
"onRightClick": "blob-toggle-silencing"
|
"onRightClick": "blob-toggle-silencing"
|
||||||
|
|||||||
Reference in new issue
Block a user