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 Binary files /dev/null and b/.config/swaync/i-am-loving-it.mp3 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; }