mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat[work]: mako: no disturb during presentations
This commit is contained in:
parent
35f108e3fc
commit
ae98f0d5df
3 changed files with 14 additions and 4 deletions
|
|
@ -13468,6 +13468,9 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi
|
||||||
default-timeout = 2000;
|
default-timeout = 2000;
|
||||||
group-by = "category";
|
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
|
#+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 {
|
writeShellApplication {
|
||||||
inherit name;
|
inherit name;
|
||||||
runtimeInputs = [ wlr-randr busybox wl-mirror ];
|
runtimeInputs = [ wlr-randr busybox wl-mirror mako ];
|
||||||
text = ''
|
text = ''
|
||||||
|
makoctl mode -a do-not-disturb
|
||||||
wlr-randr | grep "$2" | cut -d" " -f1 | xargs -I{} wl-present mirror "$1" --fullscreen-output {}
|
wlr-randr | grep "$2" | cut -d" " -f1 | xargs -I{} wl-present mirror "$1" --fullscreen-output {}
|
||||||
|
makoctl mode -r do-not-disturb
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,9 @@
|
||||||
default-timeout = 2000;
|
default-timeout = 2000;
|
||||||
group-by = "category";
|
group-by = "category";
|
||||||
};
|
};
|
||||||
|
"mode=do-not-disturb" = {
|
||||||
|
invisible = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
{ name, writeShellApplication, wlr-randr, busybox, wl-mirror, ... }:
|
{ name, writeShellApplication, wlr-randr, busybox, wl-mirror, mako, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
inherit name;
|
inherit name;
|
||||||
runtimeInputs = [ wlr-randr busybox wl-mirror ];
|
runtimeInputs = [ wlr-randr busybox wl-mirror mako ];
|
||||||
text = ''
|
text = ''
|
||||||
|
makoctl mode -a do-not-disturb
|
||||||
wlr-randr | grep "$2" | cut -d" " -f1 | xargs -I{} wl-present mirror "$1" --fullscreen-output {}
|
wlr-randr | grep "$2" | cut -d" " -f1 | xargs -I{} wl-present mirror "$1" --fullscreen-output {}
|
||||||
|
makoctl mode -r do-not-disturb
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue