Add notification thingy to waybar
This commit is contained in:
parent
ce9ebd9c6c
commit
48b50f6301
1 changed files with 17 additions and 7 deletions
|
@ -47,7 +47,7 @@ in
|
|||
"clock#date"
|
||||
"clock#time"
|
||||
"idle_inhibitor"
|
||||
# "custom/dunst"
|
||||
"custom/notifications"
|
||||
];
|
||||
modules = {
|
||||
"clock#time" = {
|
||||
|
@ -173,11 +173,21 @@ in
|
|||
deactivated = "";
|
||||
};
|
||||
};
|
||||
# "custom/dunst" = {
|
||||
# exec = "${wb-dunst}/bin/wb-dunst";
|
||||
# on-click = "${pkgs.dunst}/bin/dunstctl set-paused toggle";
|
||||
# restart-interval = 1;
|
||||
# };
|
||||
"custom/notifications" = {
|
||||
exec = "${pkgs.swaynotificationcenter}/bin/swaync-client --subscribe-waybar";
|
||||
on-click = "${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-panel --skip-wait";
|
||||
on-click-right = "${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-dnd --skip-wait";
|
||||
return-type = "json";
|
||||
tooltip = false;
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
notification = "<span foreground='red'><sup></sup></span>";
|
||||
none = "";
|
||||
dnd-notification = "<span foreground='red'><sup></sup></span>";
|
||||
dnd-none = "";
|
||||
};
|
||||
escape = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
|
@ -370,7 +380,7 @@ in
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
#custom-dunst {
|
||||
#custom-notifications {
|
||||
padding: 0 10px;
|
||||
}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue