diff --git a/users/rouven/modules/sway/session.nix b/users/rouven/modules/sway/session.nix
index 62c9edb..1e4bdbc 100644
--- a/users/rouven/modules/sway/session.nix
+++ b/users/rouven/modules/sway/session.nix
@@ -4,6 +4,7 @@
swaylock-effects
wl-clipboard
swaynotificationcenter
+ playerctl
];
services.swayidle = {
diff --git a/users/rouven/modules/sway/waybar.nix b/users/rouven/modules/sway/waybar.nix
index fc296e9..89fc1b9 100644
--- a/users/rouven/modules/sway/waybar.nix
+++ b/users/rouven/modules/sway/waybar.nix
@@ -1,6 +1,6 @@
-{ self, config, ... }:
+{ self, config, pkgs, ... }:
{
- # systemd.user.services.waybar.Service.Environment = "PATH=${pkgs.hyprland}/bin";
+ systemd.user.services.waybar.Service.Environment = "PATH=${pkgs.swaynotificationcenter}/bin";
programs.waybar = {
enable = true;
systemd.enable = true;
@@ -12,7 +12,7 @@
height = 26;
# modules-left = [ "wlr/workspaces" "custom/spotifytitle" "hyprland/window" ];
modules-left = [ "sway/workspaces" "custom/spotifytitle" "sway/window" ];
- modules-right = [ "network" "cpu" "temperature" "pulseaudio" "battery" "tray" "clock" ];
+ modules-right = [ "network" "cpu" "temperature" "pulseaudio" "battery" "tray" "custom/notification" "clock" ];
network = {
format-wifi = " {essid} ({signalStrength}%)";
format-ethernet = " {ipaddr}/{cidr}";
@@ -30,6 +30,27 @@
# separate-outputs = true;
};
+ "custom/notification" = {
+ tooltip = false;
+ format = "{icon} ";
+ format-icons = {
+ notification = "";
+ none = "";
+ dnd-notification = "";
+ dnd-none = "";
+ inhibited-notification = "";
+ inhibited-none = "";
+ dnd-inhibited-notification = "";
+ 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";
+ escape = true;
+ };
+
"custom/spotifytitle" = {
format = " {}";
max-length = 80;
@@ -109,6 +130,7 @@
}
#custom-spotifytitle,
+ #custom-notification,
#clock,
#battery,
#cpu,
@@ -194,6 +216,7 @@
color: #${config.colorScheme.colors.base01};
}
+ #custom-notification,
#tray {
background-color: #${config.colorScheme.colors.base01};
color: #${config.colorScheme.colors.base05};