2024-10-21 12:31:30 +07:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-10-16 09:54:46 +07:00
|
|
|
let
|
|
|
|
cfg = config.profile.hyprland;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-10-21 23:26:55 +07:00
|
|
|
services.poweralertd.enable = true;
|
2024-10-20 15:40:28 +07:00
|
|
|
services.swaync = {
|
|
|
|
enable = true;
|
|
|
|
style = pkgs.fetchurl {
|
|
|
|
url = "https://github.com/catppuccin/swaync/releases/download/v0.2.3/mocha.css";
|
|
|
|
hash = "sha256-Hie/vDt15nGCy4XWERGy1tUIecROw17GOoasT97kIfc=";
|
|
|
|
};
|
|
|
|
settings = {
|
|
|
|
positionX = "center";
|
|
|
|
positionY = "top";
|
|
|
|
fit-to-screen = false;
|
|
|
|
control-center-height = 800;
|
2024-10-23 15:41:24 +07:00
|
|
|
timeout = 7;
|
|
|
|
timeout-low = 5;
|
2024-10-17 18:08:40 +07:00
|
|
|
|
2024-10-20 15:40:28 +07:00
|
|
|
scripts = {
|
2024-10-21 23:17:24 +07:00
|
|
|
_10-hyprland-ytptube = {
|
|
|
|
app-name = "ytptube";
|
|
|
|
exec = ''hyprctl dispatch exec "xdg-open https://ytptube.tigor.web.id"'';
|
|
|
|
run-on = "action";
|
|
|
|
};
|
2024-10-20 16:34:59 +07:00
|
|
|
_98-play-notification-sound-normal = {
|
2024-10-20 15:40:28 +07:00
|
|
|
exec = ''${pkgs.sox}/bin/play --volume 0.5 ${./gran_turismo_menu_sound_effect.mp3}'';
|
2024-10-21 21:56:25 +07:00
|
|
|
app-name = "^(?!discord|TelegramDesktop|Slack|slack|Signal|Element|whatsapp-for-linux).*$";
|
2024-10-20 15:40:28 +07:00
|
|
|
};
|
2024-10-17 18:08:40 +07:00
|
|
|
};
|
|
|
|
};
|
2024-10-17 17:31:12 +07:00
|
|
|
};
|
|
|
|
|
2024-10-21 12:31:30 +07:00
|
|
|
home.packages = with pkgs; [ libnotify ];
|
2024-10-16 09:54:46 +07:00
|
|
|
};
|
|
|
|
}
|