Krolyxon
Commit 7294959

Branches

Refs →

aurora7294959

swaync: add notification sound

Author
krolxon
Date
2025-10-31 13:46 +0530
Parent
8ae60b3
Commit
72949597724f4de8d8d4a234265005d0b76bb709

+77 −1

4 files changed

  1. A .config/swaync/config.json +71 −0
  2. A .config/swaync/i-am-loving-it.mp3
  3. A .config/swaync/notification-sound.sh +5 −0
  4. M .config/swaync/style.css +1 −1
A .config/swaync/config.json View
@@ -0,0 +1,71 @@
1+{
2+ "$schema": "/etc/xdg/swaync/configSchema.json",
3+
4+ "positionX": "right",
5+ "positionY": "top",
6+ "control-center-positionX": "none",
7+ "control-center-positionY": "none",
8+ "control-center-margin-top": 8,
9+ "control-center-margin-bottom": 8,
10+ "control-center-margin-right": 8,
11+ "control-center-margin-left": 8,
12+ "control-center-width": 500,
13+ "control-center-height": -1,
14+ "fit-to-screen": false,
15+ "layer-shell-cover-screen": true,
16+
17+ "layer-shell": true,
18+ "layer": "overlay",
19+ "control-center-layer": "overlay",
20+ "cssPriority": "user",
21+ "notification-body-image-height": 100,
22+ "notification-body-image-width": 200,
23+ "notification-inline-replies": true,
24+ "timeout": 10,
25+ "timeout-low": 5,
26+ "timeout-critical": 0,
27+ "notification-window-width": 500,
28+ "keyboard-shortcuts": true,
29+ "image-visibility": "always",
30+ "transition-time": 200,
31+ "hide-on-clear": true,
32+ "hide-on-action": true,
33+ "script-fail-notify": true,
34+ "scripts": {
35+ "sound-script": {
36+ "exec": "bash /home/krolyxon/.config/swaync/notification-sound.sh",
37+ "app-name": ".*"
38+ }
39+ },
40+ "widgets": [
41+ "inhibitors",
42+ "dnd",
43+ "mpris",
44+ "notifications"
45+ ],
46+ "widget-config": {
47+ "notifications": {
48+ "vexpand": false
49+ },
50+ "inhibitors": {
51+ "text": "Inhibitors",
52+ "button-text": "Clear All",
53+ "clear-all-button": true
54+ },
55+ "title": {
56+ "text": "Notifications",
57+ "clear-all-button": false,
58+ "button-text": "Clear All"
59+ },
60+ "dnd": {
61+ "text": "Do Not Disturb"
62+ },
63+ "label": {
64+ "max-lines": 5,
65+ "text": "Label Text"
66+ },
67+ "mpris": {
68+ "autohide": true
69+ }
70+ }
71+}
A .config/swaync/i-am-loving-it.mp3 View

[Binary file]

A .config/swaync/notification-sound.sh View
@@ -0,0 +1,5 @@
1+#!/bin/bash
2+
3+if [ $(swaync-client -D) = "false" ]; then
4+ paplay ~/.config/swaync/i-am-loving-it.mp3
5+fi
M .config/swaync/style.css View
@@ -59,7 +59,7 @@
5959 }
6060
6161 .notification-group .notification-group-headers .notification-group-header {
62− font-size: 12px;
62+ font-size: r2px;
6363 margin-left: 3px;
6464 }
6565