Integrate swaync for notifications

This commit is contained in:
Maximilian Friedersdorff 2025-04-30 13:06:53 +01:00
parent a915cc1412
commit 56eb58cd79
5 changed files with 373 additions and 2 deletions

View file

@ -20,6 +20,7 @@
],
"modules-right": [
"clock",
"custom/dnd",
"privacy",
"idle_inhibitor",
"pulseaudio",
@ -192,6 +193,25 @@
"on-click": "pavucontrol",
"on-click-middle": "blueman-manager"
},
"custom/dnd": {
"format": "{icon} {text}",
"format-icons": {
"notification": "<span foreground='red'><sup></sup></span>",
"none": "",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-none": "",
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": "",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": ""
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"custom/media": {
"format": "{icon} {text}",
"return-type": "json",

View file

@ -105,7 +105,8 @@ button:hover {
#idle_inhibitor,
#scratchpad,
#custom-power,
#language
#language,
#custom-dnd
{
padding: 0 10px;
background-color: @base03;
@ -180,6 +181,10 @@ label:focus {
border-bottom: 3px solid @cyan;
}
#custom-dnd {
border-bottom: 3px solid @cyan;
}
#memory {
border-bottom: 3px solid @magenta;
}