From f23ff2d7aa3b2b10010c98b0c8edaa59f84a5ca8 Mon Sep 17 00:00:00 2001 From: Jeena Date: Sat, 6 Sep 2025 21:48:45 +0900 Subject: [PATCH] Add notifications to waybar --- waybar/config | 30 +++++++++++++++++++++++++++++- waybar/style.css | 1 + 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/waybar/config b/waybar/config index e34d434..942bae8 100644 --- a/waybar/config +++ b/waybar/config @@ -15,6 +15,7 @@ "wireplumber", "network", "hyprland/language", + "custom/notifications", "custom/power" ], @@ -59,7 +60,7 @@ }, "network": { - "format-wifi": " {essid}", + "format-wifi": " {essid}", "format-ethernet": "󰈀 Wired", "on-click": "kitty -e nmtui" }, @@ -71,6 +72,33 @@ "interval": 60 }, + "custom/notifications2": { + "format": "  ", + "on-click": "swaync-client -t", + "tooltip": false + }, + + "custom/notifications": { + "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": "sleep 0.1 && swaync-client -t -sw", + "on-click-right": "sleep 0.1 && swaync-client -d -sw", + "escape": true + }, + "custom/power": { "format": " ⏻ ", "tooltip": false, diff --git a/waybar/style.css b/waybar/style.css index ce2fd8a..9455541 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -57,6 +57,7 @@ window#waybar { background: #C1B3BB; } +#custom-notifications, #custom-menu, #clock, #hyprland-window,