diff --git a/SwarselSystems.org b/SwarselSystems.org index 030900a..130da44 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -13468,6 +13468,9 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi default-timeout = 2000; group-by = "category"; }; + "mode=do-not-disturb" = { + invisible = true; + }; }; }; }; @@ -16947,13 +16950,15 @@ This utility checks if there are updated packages in nixpkgs-unstable. It does s #+begin_src nix-ts :tangle pkgs/kanshare/default.nix - { name, writeShellApplication, wlr-randr, busybox, wl-mirror, ... }: + { name, writeShellApplication, wlr-randr, busybox, wl-mirror, mako, ... }: writeShellApplication { inherit name; - runtimeInputs = [ wlr-randr busybox wl-mirror ]; + runtimeInputs = [ wlr-randr busybox wl-mirror mako ]; text = '' + makoctl mode -a do-not-disturb wlr-randr | grep "$2" | cut -d" " -f1 | xargs -I{} wl-present mirror "$1" --fullscreen-output {} + makoctl mode -r do-not-disturb ''; } #+end_src diff --git a/modules/home/common/mako.nix b/modules/home/common/mako.nix index f1a1ea1..9a90f69 100644 --- a/modules/home/common/mako.nix +++ b/modules/home/common/mako.nix @@ -28,6 +28,9 @@ default-timeout = 2000; group-by = "category"; }; + "mode=do-not-disturb" = { + invisible = true; + }; }; }; }; diff --git a/pkgs/kanshare/default.nix b/pkgs/kanshare/default.nix index 946ab35..d423f62 100644 --- a/pkgs/kanshare/default.nix +++ b/pkgs/kanshare/default.nix @@ -1,9 +1,11 @@ -{ name, writeShellApplication, wlr-randr, busybox, wl-mirror, ... }: +{ name, writeShellApplication, wlr-randr, busybox, wl-mirror, mako, ... }: writeShellApplication { inherit name; - runtimeInputs = [ wlr-randr busybox wl-mirror ]; + runtimeInputs = [ wlr-randr busybox wl-mirror mako ]; text = '' + makoctl mode -a do-not-disturb wlr-randr | grep "$2" | cut -d" " -f1 | xargs -I{} wl-present mirror "$1" --fullscreen-output {} + makoctl mode -r do-not-disturb ''; }