From 7b0cbbca9cf0e85ffdfa04b7dd22a7a18db26c20 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Mon, 12 Jun 2023 12:02:02 +0200 Subject: [PATCH] add swaync to waybar --- dot_config/waybar/config | 23 ++++++++++++++++++++++- dot_config/waybar/style.css | 6 +++++- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/dot_config/waybar/config b/dot_config/waybar/config index 06246a1..8027537 100644 --- a/dot_config/waybar/config +++ b/dot_config/waybar/config @@ -31,6 +31,7 @@ "battery", "battery#bat2", "tray", + "custom/notification", "custom/wvkbd" ], // Modules configuration @@ -255,5 +256,25 @@ "default": "" }, "on-click": "pkill --signal SIGRTMIN wvkbd-mobintl" - } + }, + "custom/notification": { + "tooltip": false, + "format": "{} {icon}", + "format-icons": { + "notification": "", + "none": "", + "dnd-notification": "", + "dnd-none": "", + "inhibited-notification": "", + "inhibited-none": "", + "dnd-inhibited-notification": "", + "dnd-inhibited-none": "" + }, + "return-type": "json", + "exec-if": "which swaync-client", + "exec": "swaync-client -swb", + "on-click": "swaync-client -t -sw", + "on-click-right": "swaync-client -d -sw", + "escape": true + } } diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css index 87bfd5b..8320ebd 100644 --- a/dot_config/waybar/style.css +++ b/dot_config/waybar/style.css @@ -26,9 +26,11 @@ window#waybar.solo { } */ +/* window#waybar.termite { background-color: #3F3F3F; } +*/ window#waybar.chromium { background-color: #000000; @@ -93,6 +95,7 @@ button:hover { #custom-wl-gammarelay-gamma, #custom-events, #custom-wvkbd, +#custom-notification, #mpd { padding: 0 10px; color: #ffffff; @@ -168,7 +171,8 @@ label:focus { background-color: #90b1b1; } -#custom-wvkbd { +#custom-wvkbd, +#custom-notification { background-color: #2980b9; }