Add notifications to waybar

This commit is contained in:
Jeena 2025-09-06 21:48:45 +09:00
parent 09462429f8
commit f23ff2d7aa
2 changed files with 30 additions and 1 deletions

View file

@ -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,

View file

@ -57,6 +57,7 @@ window#waybar {
background: #C1B3BB;
}
#custom-notifications,
#custom-menu,
#clock,
#hyprland-window,