2024-10-16 09:54:46 +07:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.profile.hyprland;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
swaynotificationcenter
|
|
|
|
libnotify
|
|
|
|
];
|
|
|
|
|
2024-10-17 18:08:40 +07:00
|
|
|
# Config: https://manpages.debian.org/testing/sway-notification-center/swaync.5.en.html
|
2024-10-17 16:56:02 +07:00
|
|
|
home.file.".config/swaync/config.json".text = builtins.toJSON {
|
2024-10-17 16:57:34 +07:00
|
|
|
positionX = "center";
|
2024-10-17 16:56:02 +07:00
|
|
|
positionY = "top";
|
2024-10-17 17:31:12 +07:00
|
|
|
fit-to-screen = false;
|
|
|
|
control-center-height = 800;
|
2024-10-17 18:08:40 +07:00
|
|
|
timeout = 5;
|
|
|
|
timeout-low = 3;
|
|
|
|
|
|
|
|
scripts = {
|
|
|
|
play-notification-sound = {
|
|
|
|
exec = ''${pkgs.sox}/bin/play --volume 0.5 ${./gran_turismo_menu_sound_effect.mp3}'';
|
2024-10-20 09:01:54 +07:00
|
|
|
app-name = "^(?!discord|TelegramDesktop|Slack|Signal|Element).*$";
|
2024-10-17 18:08:40 +07:00
|
|
|
urgency = "Normal";
|
|
|
|
};
|
|
|
|
};
|
2024-10-17 17:31:12 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
home.file.".config/swaync/style.css".source = pkgs.fetchurl {
|
|
|
|
url = "https://github.com/catppuccin/swaync/releases/download/v0.2.3/mocha.css";
|
|
|
|
hash = "sha256-Hie/vDt15nGCy4XWERGy1tUIecROw17GOoasT97kIfc=";
|
2024-10-17 16:56:02 +07:00
|
|
|
};
|
|
|
|
|
2024-10-16 09:54:46 +07:00
|
|
|
wayland.windowManager.hyprland.settings.exec-once = [
|
|
|
|
"swaync"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|