adding new notification daemon and menu thing

This commit is contained in:
Matt Nish-Lapidus 2025-02-09 14:00:00 -05:00
parent d26e8a696d
commit 380d407dd2
6 changed files with 74 additions and 7 deletions

View file

@ -2,7 +2,7 @@
{
imports = with nix-config.homeModules; [
mako
# mako
mpv
yazi
hyprlock

View file

@ -12,9 +12,31 @@
"network",
"wireplumber",
"power-profiles-daemon",
"upower"
"upower",
"custom/notification",
],
"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": "",
"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 -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",

View file

@ -68,7 +68,6 @@
psutils
util-linux
libgtop
ulauncher
fontconfig
freetype
egl-wayland

View file

@ -49,7 +49,6 @@
trayscale
font-manager
squirreldisk
papers
newsflash
@ -145,6 +144,46 @@
];
};
services.swaync = {
enable = true;
settings = {
positionX = "right";
positionY = "top";
layer = "overlay";
control-center-layer = "top";
layer-shell = true;
cssPriority = "application";
control-center-margin-top = 0;
control-center-margin-bottom = 0;
control-center-margin-right = 0;
control-center-margin-left = 0;
notification-2fa-action = true;
notification-inline-replies = false;
notification-icon-size = 64;
notification-body-image-height = 100;
notification-body-image-width = 200;
};
style =
''
.notification-row {
outline: none;
}
.notification-row:focus,
.notification-row:hover {
background: @noti-bg-focus;
}
.notification {
border-radius: 12px;
margin: 6px 12px;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7),
0 2px 6px 2px rgba(0, 0, 0, 0.3);
padding: 0;
}
'';
};
programs = {
eww = {
enable = true;
@ -153,6 +192,7 @@
firefox.enable = true;
};
xdg.configFile."halloy/config.toml".source = ../../homes/emenel/dotfiles/dot_config/halloy/config.toml;
xdg.configFile."halloy/config.toml".source =
../../homes/emenel/dotfiles/dot_config/halloy/config.toml;
}

View file

@ -15,7 +15,7 @@ in {
{ command = ["clipse" "-listen"]; }
{ command = ["swayosd-server"]; }
{ command = ["waybar"]; }
{ command = [ "systemctl" "--user" "restart" "mako.service" "hypridle.service" "xwayland-satellite.service" ]; }
{ command = [ "systemctl" "--user" "restart" "hypridle.service" "xwayland-satellite.service" ]; }
];
workspaces = {
@ -192,6 +192,7 @@ in {
"Mod+Ctrl+B".action = spawn "firefox";
"Mod+Ctrl+V".action = wezlaunch "clipse";
"Mod+Ctrl+F".action = wez "yazi";
"Mod+Ctrl+N".action = spawn "swaync-client" "-t";
"Mod+Shift+A".action = spawn "hyprlock";

View file

@ -62,10 +62,15 @@ window#waybar {
#tray,
#window,
#workspaces,
#clock {
#clock
#custom-notification {
padding: 0 20px;
}
#custom-notification {
min-width: 30px;
}
#power-profiles-daemon {
min-width: 40px;
}