modularize gui
This commit is contained in:
parent
61eb9ed8c5
commit
3e2ccceace
13 changed files with 196 additions and 89 deletions
28
home/modules/gui/autorandr.nix
Normal file
28
home/modules/gui/autorandr.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.local.gui;
|
||||
in {
|
||||
programs.autorandr = {
|
||||
profiles."default" = {
|
||||
fingerprint =
|
||||
mapAttrs
|
||||
(monitorId: monitor: monitor.fingerprint)
|
||||
cfg.monitors;
|
||||
|
||||
config =
|
||||
mapAttrs (
|
||||
monitorId:
|
||||
filterAttrs
|
||||
(k: v: !elem k [ #list of options to exclude from this list
|
||||
"fingerprint" "initialI3Workspace" "monitorId"
|
||||
])
|
||||
)
|
||||
cfg.monitors;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue