mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
parent
88ce891dc8
commit
70aa758c34
@ -50,7 +50,7 @@ let
|
|||||||
# Which will end up in reverse ----------> | m1 | m2 | m3 | m4 |
|
# Which will end up in reverse ----------> | m1 | m2 | m3 | m4 |
|
||||||
# `----^----^----^----'
|
# `----^----^----^----'
|
||||||
xrandrMonitorSections = let
|
xrandrMonitorSections = let
|
||||||
mkMonitor = previous: current: previous ++ singleton {
|
mkMonitor = previous: current: singleton {
|
||||||
inherit (current) name;
|
inherit (current) name;
|
||||||
value = ''
|
value = ''
|
||||||
Section "Monitor"
|
Section "Monitor"
|
||||||
@ -60,8 +60,8 @@ let
|
|||||||
''}
|
''}
|
||||||
EndSection
|
EndSection
|
||||||
'';
|
'';
|
||||||
};
|
} ++ previous;
|
||||||
monitors = foldl mkMonitor [] xrandrHeads;
|
monitors = reverseList (foldl mkMonitor [] xrandrHeads);
|
||||||
in concatMapStrings (getAttr "value") monitors;
|
in concatMapStrings (getAttr "value") monitors;
|
||||||
|
|
||||||
configFile = pkgs.stdenv.mkDerivation {
|
configFile = pkgs.stdenv.mkDerivation {
|
||||||
@ -614,4 +614,3 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user