forked from fabian/nix_config
modularize gui
This commit is contained in:
parent
61eb9ed8c5
commit
bcd049b8c5
13 changed files with 202 additions and 89 deletions
32
home/modules/gui/autorandr.nix
Normal file
32
home/modules/gui/autorandr.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
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