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#date"
|
||||||
"clock#time"
|
"clock#time"
|
||||||
"idle_inhibitor"
|
"idle_inhibitor"
|
||||||
# "custom/dunst"
|
"custom/notifications"
|
||||||
];
|
];
|
||||||
modules = {
|
modules = {
|
||||||
"clock#time" = {
|
"clock#time" = {
|
||||||
|
@ -173,11 +173,21 @@ in
|
||||||
deactivated = "";
|
deactivated = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# "custom/dunst" = {
|
"custom/notifications" = {
|
||||||
# exec = "${wb-dunst}/bin/wb-dunst";
|
exec = "${pkgs.swaynotificationcenter}/bin/swaync-client --subscribe-waybar";
|
||||||
# on-click = "${pkgs.dunst}/bin/dunstctl set-paused toggle";
|
on-click = "${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-panel --skip-wait";
|
||||||
# restart-interval = 1;
|
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;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-dunst {
|
#custom-notifications {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue