snowhawk: use helper script to generate randr layout
This commit is contained in:
parent
4f22744983
commit
6bdd69426c
1 changed files with 14 additions and 11 deletions
|
@ -50,17 +50,20 @@
|
||||||
|
|
||||||
|
|
||||||
systemd.user.services.screenlayout = {
|
systemd.user.services.screenlayout = {
|
||||||
script = ''
|
script = lib.getExe
|
||||||
${pkgs.xorg.xrandr}/bin/xrandr \
|
(pkgs.writeXrandrScriptBin "default-monitors" {
|
||||||
--output DP-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal \
|
DP-0 = {
|
||||||
--output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal \
|
primary = true;
|
||||||
--output DP-1 --off \
|
mode = "1920x1080";
|
||||||
--output DP-2 --off \
|
pos = "1920x0";
|
||||||
--output DP-3 --off \
|
rotate = "normal";
|
||||||
--output DP-4 --off \
|
};
|
||||||
--output DP-5 --off \
|
HDMI-0 = {
|
||||||
--output HDMI-1 --off
|
mode = "1920x1080";
|
||||||
'';
|
pos = "0x0";
|
||||||
|
rotate = "normal";
|
||||||
|
};
|
||||||
|
});
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
partOf = [ "graphical-session.target" ];
|
partOf = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue