aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2025-10-31 13:46:29 +0530
committerkrolxon <krolyxon@tutanota.com>2025-10-31 13:46:29 +0530
commit72949597724f4de8d8d4a234265005d0b76bb709 (patch)
treedec6d4ff3626bb4a6e1a1e844f769a0417985d7c
parent8ae60b3b0d0edf7639b1538cf8490c81f8c6d86e (diff)
swaync: add notification sound
-rw-r--r--.config/swaync/config.json71
-rw-r--r--.config/swaync/i-am-loving-it.mp3bin0 -> 35813 bytes
-rwxr-xr-x.config/swaync/notification-sound.sh5
-rw-r--r--.config/swaync/style.css2
4 files changed, 77 insertions, 1 deletions
diff --git a/.config/swaync/config.json b/.config/swaync/config.json
new file mode 100644
index 0000000..d63164b
--- /dev/null
+++ b/.config/swaync/config.json
@@ -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
+ }
+ }
+}
diff --git a/.config/swaync/i-am-loving-it.mp3 b/.config/swaync/i-am-loving-it.mp3
new file mode 100644
index 0000000..b98bc98
--- /dev/null
+++ b/.config/swaync/i-am-loving-it.mp3
Binary files differ
diff --git a/.config/swaync/notification-sound.sh b/.config/swaync/notification-sound.sh
new file mode 100755
index 0000000..5719c8b
--- /dev/null
+++ b/.config/swaync/notification-sound.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+if [ $(swaync-client -D) = "false" ]; then
+ paplay ~/.config/swaync/i-am-loving-it.mp3
+fi
diff --git a/.config/swaync/style.css b/.config/swaync/style.css
index 6a19afc..1738fa3 100644
--- a/.config/swaync/style.css
+++ b/.config/swaync/style.css
@@ -59,7 +59,7 @@
}
.notification-group .notification-group-headers .notification-group-header {
- font-size: 12px;
+ font-size: r2px;
margin-left: 3px;
}