add swaync component to waybar
This commit is contained in:
parent
06d47bb3ed
commit
f57e1a3b93
1 changed files with 17 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ in
|
||||||
"backlight"
|
"backlight"
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
"battery"
|
"battery"
|
||||||
|
"custom/notification"
|
||||||
];
|
];
|
||||||
|
|
||||||
"niri/worksapces" = { };
|
"niri/worksapces" = { };
|
||||||
|
|
@ -120,6 +121,21 @@ in
|
||||||
};
|
};
|
||||||
tooltip-format = "{calendar}";
|
tooltip-format = "{calendar}";
|
||||||
};
|
};
|
||||||
|
"custom/notification" = {
|
||||||
|
"tooltip" = false;
|
||||||
|
"format" = "{icon}";
|
||||||
|
"format-icons" = {
|
||||||
|
"notification" = "<span foreground='red'><sup></sup></span>";
|
||||||
|
"none" = "";
|
||||||
|
"dnd-notification" = "<span foreground='red'><sup></sup></span>";
|
||||||
|
"dnd-none" = "";
|
||||||
|
};
|
||||||
|
"return-type" = "json";
|
||||||
|
"exec" = "swaync-client -swb";
|
||||||
|
"on-click" = "swaync-client -t -sw";
|
||||||
|
"on-click-right" = "swaync-client -d -sw";
|
||||||
|
"escape" = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
style = ''
|
style = ''
|
||||||
|
|
@ -134,6 +150,7 @@ in
|
||||||
color: @theme_text_color;
|
color: @theme_text_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-notification,
|
||||||
#workspaces,
|
#workspaces,
|
||||||
#taskbar button,
|
#taskbar button,
|
||||||
#mode,
|
#mode,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue