hyprnotify icon indicating copy to clipboard operation
hyprnotify copied to clipboard

Rules for silencing or ignoring applications.

Open zombietype opened this issue 7 months ago • 5 comments

Added simple regex based rules to perform following actions:

  1. Silence Do not play audio on notification
  2. Ignore Ignore the notification

zombietype avatar Apr 26 '25 13:04 zombietype

This is in a very initial proof-of-concept stage. Asking for comments if any other features etc. are wanted.

zombietype avatar Apr 26 '25 13:04 zombietype

Looks good. This feature sounds cool!

We could also implement the suppress-sound hint, along with this imo.

Also, I don't understand the nix thingy (never used it). NixOS package was published by @Bloeckchengrafik and he has been very patient with my ignorance on the topic (i swear I'll use it one day!)

codelif avatar Apr 26 '25 14:04 codelif

Heyo! I've tried out the nix flake, but I get the following error. I know too little about go with nixos to fix this. Do you have an idea @kidrigger ?

       error: undefined variable 'go_1_17'
       at /nix/store/1dzbvdhq3dfhkph0k56jd81k0p8m7idz-source/flake.nix:19:38:
           18|         };
           19|         buildDeps = with pkgs; [ git go_1_17 gnumake ];
             |                                      ^
           20|         devDeps = with pkgs; buildDeps ++ [

Bloeckchengrafik avatar Apr 26 '25 19:04 Bloeckchengrafik

Looks good. This feature sounds cool!

We could also implement the suppress-sound hint, along with this imo.

That's a good idea. I was just trying to get the notification to stop interrupting spotify right now. I didn't have the time to check the dbus docs.

Also, I don't understand the nix thingy (never used it). NixOS package was published by @Bloeckchengrafik and he has been very patient with my ignorance on the topic (i swear I'll use it one day!)

Obligatory: "I use NixOS btw". But I didn't intend to commit the flake. I had to add it to get the development environment to work, but it isn't the latest version.

Since you seem okay with this, I will try to get the flake committed in a separate PR first and then rebase this over.

zombietype avatar Apr 26 '25 22:04 zombietype

Heyo! I've tried out the nix flake, but I get the following error. I know too little about go with nixos to fix this. Do you have an idea @kidrigger ?

Nix doesn't have go_1_17 anymore. I updated to latest go_1_23. The flake is a copy paste from modern-go-application template that I modified but didn't commit. But I forgot to remove this.

       error: undefined variable 'go_1_17'
       at /nix/store/1dzbvdhq3dfhkph0k56jd81k0p8m7idz-source/flake.nix:19:38:
           18|         };
           19|         buildDeps = with pkgs; [ git go_1_17 gnumake ];
             |                                      ^
           20|         devDeps = with pkgs; buildDeps ++ [

I don't want to add my devShell flake so I'll wait until I can write a complete flake. For now, I'll remove it.

Meanwhile, do you know how to fix this?

go: inconsistent vendoring in /build/source:

I'm trying to do an override in my nix config to use my fork but I have this issue. I've never used go before so it is pretty hard to solve right now. It relates to viper and deps but the vendoring seems to be a uniquely go and nix interaction I don't understand.

zombietype avatar Apr 26 '25 22:04 zombietype