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 = {
|
||||
script = ''
|
||||
${pkgs.xorg.xrandr}/bin/xrandr \
|
||||
--output DP-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal \
|
||||
--output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal \
|
||||
--output DP-1 --off \
|
||||
--output DP-2 --off \
|
||||
--output DP-3 --off \
|
||||
--output DP-4 --off \
|
||||
--output DP-5 --off \
|
||||
--output HDMI-1 --off
|
||||
'';
|
||||
script = lib.getExe
|
||||
(pkgs.writeXrandrScriptBin "default-monitors" {
|
||||
DP-0 = {
|
||||
primary = true;
|
||||
mode = "1920x1080";
|
||||
pos = "1920x0";
|
||||
rotate = "normal";
|
||||
};
|
||||
HDMI-0 = {
|
||||
mode = "1920x1080";
|
||||
pos = "0x0";
|
||||
rotate = "normal";
|
||||
};
|
||||
});
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
partOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue