.dotfiles/pkgs/flake/kanshare/default.nix
Leon Schwarzäugl ec6ae25e9b
Some checks failed
Flake check / Check flake (push) Has been cancelled
fix[work]: fix aws,cdr commands, easier git switch in emacs
2025-11-19 21:49:30 +01:00

11 lines
363 B
Nix

{ name, writeShellApplication, wlr-randr, busybox, wl-mirror, mako, ... }:
writeShellApplication {
inherit name;
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
'';
}