swaync: add notification sound

This commit is contained in:
krolxon 2025-10-31 13:46:29 +05:30
parent 8ae60b3b0d
commit 7294959772
4 changed files with 77 additions and 1 deletions

View File

@ -0,0 +1,71 @@
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "right",
"positionY": "top",
"control-center-positionX": "none",
"control-center-positionY": "none",
"control-center-margin-top": 8,
"control-center-margin-bottom": 8,
"control-center-margin-right": 8,
"control-center-margin-left": 8,
"control-center-width": 500,
"control-center-height": -1,
"fit-to-screen": false,
"layer-shell-cover-screen": true,
"layer-shell": true,
"layer": "overlay",
"control-center-layer": "overlay",
"cssPriority": "user",
"notification-body-image-height": 100,
"notification-body-image-width": 200,
"notification-inline-replies": true,
"timeout": 10,
"timeout-low": 5,
"timeout-critical": 0,
"notification-window-width": 500,
"keyboard-shortcuts": true,
"image-visibility": "always",
"transition-time": 200,
"hide-on-clear": true,
"hide-on-action": true,
"script-fail-notify": true,
"scripts": {
"sound-script": {
"exec": "bash /home/krolyxon/.config/swaync/notification-sound.sh",
"app-name": ".*"
}
},
"widgets": [
"inhibitors",
"dnd",
"mpris",
"notifications"
],
"widget-config": {
"notifications": {
"vexpand": false
},
"inhibitors": {
"text": "Inhibitors",
"button-text": "Clear All",
"clear-all-button": true
},
"title": {
"text": "Notifications",
"clear-all-button": false,
"button-text": "Clear All"
},
"dnd": {
"text": "Do Not Disturb"
},
"label": {
"max-lines": 5,
"text": "Label Text"
},
"mpris": {
"autohide": true
}
}
}

Binary file not shown.

View File

@ -0,0 +1,5 @@
#!/bin/bash
if [ $(swaync-client -D) = "false" ]; then
paplay ~/.config/swaync/i-am-loving-it.mp3
fi

View File

@ -59,7 +59,7 @@
} }
.notification-group .notification-group-headers .notification-group-header { .notification-group .notification-group-headers .notification-group-header {
font-size: 12px; font-size: r2px;
margin-left: 3px; margin-left: 3px;
} }