waybar: added modules for sway notification center
This commit is contained in:
parent
a46c19c390
commit
8af4513dcf
|
@ -19,7 +19,7 @@ in
|
||||||
./wlogout.nix
|
./wlogout.nix
|
||||||
# ./swappy.nix
|
# ./swappy.nix
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./audio.nix
|
./swayosd.nix
|
||||||
./sway-notification-center.nix
|
./sway-notification-center.nix
|
||||||
./ntfy-sh.nix
|
./ntfy-sh.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -454,3 +454,12 @@ window#waybar.empty #window {
|
||||||
#tray > .needs-attention {
|
#tray > .needs-attention {
|
||||||
-gtk-icon-effect: highlight;
|
-gtk-icon-effect: highlight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-notification {
|
||||||
|
font-family: "NotoSansMono Nerd Font";
|
||||||
|
margin-right: 20px;
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
opacity: 0.8;
|
||||||
|
color: @iconcolor;
|
||||||
|
}
|
||||||
|
|
|
@ -97,17 +97,38 @@ let
|
||||||
spacing = 10;
|
spacing = 10;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
clock = {
|
||||||
|
format = "{:%H:%M %a}";
|
||||||
|
timezone = "Asia/Jakarta";
|
||||||
|
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
|
||||||
|
format-alt = "{:%Y-%m-%d}";
|
||||||
|
};
|
||||||
|
|
||||||
"custom/exit" = {
|
"custom/exit" = {
|
||||||
format = "";
|
format = "";
|
||||||
on-click = "wlogout";
|
on-click = "wlogout";
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
clock = {
|
"custom/notification" = {
|
||||||
format = "{:%H:%M %a}";
|
tooltip = false;
|
||||||
timezone = "Asia/Jakarta";
|
format = "{icon}";
|
||||||
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
|
format-icons = {
|
||||||
format-alt = "{:%Y-%m-%d}";
|
notification = "<span foreground='red'><sup></sup></span>";
|
||||||
|
none = "";
|
||||||
|
dnd-notification = "<span foreground='red'><sup></sup></span>";
|
||||||
|
dnd-none = "";
|
||||||
|
inhibited-notification = "<span foreground='red'><sup></sup></span>";
|
||||||
|
inhibited-none = "";
|
||||||
|
dnd-inhibited-notification = "<span foreground='red'><sup></sup></span>";
|
||||||
|
dnd-inhibited-none = "";
|
||||||
|
};
|
||||||
|
return-type = "json";
|
||||||
|
exec-if = "which swaync-client";
|
||||||
|
exec = "swaync-client --subscribe-waybar";
|
||||||
|
on-click = "swaync-client --toggle-panel --skip-wait";
|
||||||
|
on-click-right = "swaync-client --toggle-dnd --skip-wait";
|
||||||
|
escape = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
@ -148,7 +169,7 @@ in
|
||||||
"bluetooth"
|
"bluetooth"
|
||||||
"battery"
|
"battery"
|
||||||
"network"
|
"network"
|
||||||
# "group/hardware"
|
"custom/notification"
|
||||||
"custom/cliphist"
|
"custom/cliphist"
|
||||||
"idle_inhibitor"
|
"idle_inhibitor"
|
||||||
"tray"
|
"tray"
|
||||||
|
|
Loading…
Reference in a new issue