synix/modules/home/hyprland/applications/dunst-toggle/dunst-toggle.nix
sid 6991318eb9
All checks were successful
Flake check / flake-check (pull_request) Successful in 22s
Build tests / build-hosts (pull_request) Successful in 29s
add notification toggle
2026-05-10 23:24:41 +02:00

11 lines
317 B
Nix

{ config, pkgs, ... }:
let
dunst = "${pkgs.dunst}/bin/dunstctl";
pkill = "${pkgs.procps}/bin/pkill";
signal = "${toString config.programs.waybar.settings.mainBar."custom/notifications".signal}";
in
(pkgs.writeShellScriptBin "dunst-toggle" ''
${dunst} set-paused toggle
${pkill} -RTMIN+${signal} waybar
'')