From d289a1a4669789d8d90c61c4227c0ed1f7d57912 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 7 Jun 2025 21:49:01 +0200 Subject: [PATCH] More swaync tweaks --- config/swaync/config.json | 93 +++++++++++++++++++++++++++++++++++++++ config/swaync/style.css | 12 +---- 2 files changed, 95 insertions(+), 10 deletions(-) create mode 100644 config/swaync/config.json diff --git a/config/swaync/config.json b/config/swaync/config.json new file mode 100644 index 0000000..715b7c3 --- /dev/null +++ b/config/swaync/config.json @@ -0,0 +1,93 @@ +{ + "$schema": "/etc/xdg/swaync/configSchema.json", + "positionX": "right", + "positionY": "top", + "layer": "overlay", + "control-center-layer": "top", + "layer-shell": true, + "layer-shell-cover-screen": true, + "cssPriority": "application", + "control-center-margin-top": 0, + "control-center-margin-bottom": 0, + "control-center-margin-right": 0, + "control-center-margin-left": 0, + "notification-2fa-action": true, + "notification-inline-replies": false, + "notification-icon-size": 24, + "notification-body-image-height": 100, + "notification-body-image-width": 200, + "timeout": 10, + "timeout-low": 5, + "timeout-critical": 0, + "fit-to-screen": true, + "relative-timestamps": true, + "control-center-width": 500, + "control-center-height": 600, + "notification-window-width": 500, + "keyboard-shortcuts": true, + "image-visibility": "when-available", + "transition-time": 200, + "hide-on-clear": false, + "hide-on-action": true, + "text-empty": "No Notifications", + "script-fail-notify": true, + "scripts": { + "example-script": { + "exec": "echo 'Do something...'", + "urgency": "Normal" + }, + "example-action-script": { + "exec": "echo 'Do something actionable!'", + "urgency": "Normal", + "run-on": "action" + } + }, + "notification-visibility": { + "example-name": { + "state": "muted", + "urgency": "Low", + "app-name": "Spotify" + } + }, + "widgets": [ + "inhibitors", + "title", + "dnd", + "notifications" + ], + "widget-config": { + "inhibitors": { + "text": "Inhibitors", + "button-text": "Clear All", + "clear-all-button": true + }, + "title": { + "text": "Notifications", + "clear-all-button": true, + "button-text": "Clear All" + }, + "dnd": { + "text": "Do Not Disturb" + }, + "label": { + "max-lines": 5, + "text": "Label Text" + }, + "mpris": { + "image-size": 96, + "image-radius": 12, + "blacklist": [] + }, + "buttons-grid": { + "actions": [ + { + "label": "яки", + "type": "toggle", + "active": true, + "command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && nmcli radio wifi on || nmcli radio wifi off'", + "update-command": "sh -c '[[ $(nmcli radio wifi) == \"enabled\" ]] && echo true || echo false'" + } + ] + } + } +} diff --git a/config/swaync/style.css b/config/swaync/style.css index 8259c4a..c910c8d 100644 --- a/config/swaync/style.css +++ b/config/swaync/style.css @@ -1,7 +1,7 @@ * { all: unset; - font-family: CaskaydiaMono Nerd Font; - font-size: 12px; + font-family: Liberation Sans; + font-size: 14px; } .notification { @@ -13,14 +13,6 @@ margin: 10px; } -.image, -.icon, -.app-icon { - min-height: 16px; - min-width: 16px; - margin-right: 8px; -} - .title { font-weight: bold; }