aurora7294959
swaync: add notification sound
+77 −1
4 files changed
- A .config/swaync/config.json +71 −0
- A .config/swaync/i-am-loving-it.mp3
- A .config/swaync/notification-sound.sh +5 −0
- M .config/swaync/style.css +1 −1
| @@ -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 | + | } | |
[Binary file]
| @@ -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 | |
| @@ -59,7 +59,7 @@ | |||
| 59 | 59 | } | |
| 60 | 60 | ||
| 61 | 61 | .notification-group .notification-group-headers .notification-group-header { | |
| 62 | − | font-size: 12px; | |
| 62 | + | font-size: r2px; | |
| 63 | 63 | margin-left: 3px; | |
| 64 | 64 | } | |
| 65 | 65 | ||