Add notifications to waybar
This commit is contained in:
parent
09462429f8
commit
f23ff2d7aa
2 changed files with 30 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
|||
"wireplumber",
|
||||
"network",
|
||||
"hyprland/language",
|
||||
"custom/notifications",
|
||||
"custom/power"
|
||||
],
|
||||
|
||||
|
@ -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,
|
||||
|
|
|
@ -57,6 +57,7 @@ window#waybar {
|
|||
background: #C1B3BB;
|
||||
}
|
||||
|
||||
#custom-notifications,
|
||||
#custom-menu,
|
||||
#clock,
|
||||
#hyprland-window,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue