Skip to content

Rules for silencing or ignoring applications. #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kidrigger
Copy link

Added simple regex based rules to perform following actions:

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

Added simple regex based rules to perform following actions:
1. *Silence* Do not play audio on notification
2. *Ignore* Ignore the notification
@kidrigger
Copy link
Author

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

@codelif
Copy link
Owner

codelif commented Apr 26, 2025

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!)

@Bloeckchengrafik
Copy link
Contributor

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 ++ [

@kidrigger
Copy link
Author

kidrigger commented Apr 26, 2025

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.

@kidrigger
Copy link
Author

kidrigger commented Apr 26, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants