waybar: fix swaync-client missing by referencing package directly
Fix MS Teams waybar rewrite, I think the pipe was causing issues
This commit is contained in:
parent
1e45adf5aa
commit
d4aab0d669
|
@ -1,4 +1,4 @@
|
|||
{ config, ... }: {
|
||||
{ config, pkgs, ... }: {
|
||||
systemd.user.targets.tray.Unit = {
|
||||
Description = "Home Manager System Tray";
|
||||
Requires = [ "graphical-session-pre.target" ];
|
||||
|
@ -39,7 +39,7 @@
|
|||
".*WebCord (.*)" = " $1";
|
||||
"(Steam|steam)" = " ";
|
||||
"(.*) - mpv" = " $1";
|
||||
"(.*) | Microsoft Teams" = " $1";
|
||||
"Microsoft Teams - (.*)" = " $1";
|
||||
};
|
||||
"separate-outputs" = true;
|
||||
};
|
||||
|
@ -154,7 +154,8 @@
|
|||
tooltip-format = "{capacity}% {time}";
|
||||
format-icons = [ "" "" "" "" "" "" "" "" "" "" "" ];
|
||||
};
|
||||
"custom/notification" = {
|
||||
"custom/notification" = let swaync = pkgs.swaynotificationcenter;
|
||||
in {
|
||||
"tooltip" = false;
|
||||
"format" = "{icon}{}";
|
||||
"format-icons" = {
|
||||
|
@ -168,10 +169,10 @@
|
|||
"dnd-inhibited-none" = " ";
|
||||
};
|
||||
"return-type" = "json";
|
||||
"exec-if" = "which swaync-client";
|
||||
"exec" = "swaync-client -swb";
|
||||
"on-click" = "swaync-client -t -sw";
|
||||
"on-click-right" = "swaync-client -d -sw";
|
||||
"exec-if" = "which ${swaync}/bin/swaync-client";
|
||||
"exec" = "${swaync}/bin/swaync-client -swb";
|
||||
"on-click" = "${swaync}/bin/swaync-client -t -sw";
|
||||
"on-click-right" = "${swaync}/bin/swaync-client -d -sw";
|
||||
"escape" = true;
|
||||
};
|
||||
tray = {
|
||||
|
|
Loading…
Reference in a new issue