giving up on xrandrHeads for now
This commit is contained in:
parent
3b9cd8ae5f
commit
23e4691c6e
2 changed files with 29 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, modulesPath, ... }:
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
@ -34,10 +34,34 @@
|
|||
# Load nvidia driver for Xorg and Wayland
|
||||
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
|
||||
services.xserver.dpi = lib.mkDefault 96;
|
||||
services.xserver.xrandrHeads = [
|
||||
"HDMI-0"
|
||||
{ output = "DP-0"; primary = true; }
|
||||
];
|
||||
# services.xserver.xrandrHeads = [
|
||||
# { output = "HDMI-0"; }
|
||||
# {
|
||||
# output = "DP-0";
|
||||
# primary = true;
|
||||
# monitorConfig = ''
|
||||
# Option "Position" "1920 0"
|
||||
# '';
|
||||
# }
|
||||
# ];
|
||||
|
||||
|
||||
systemd.user.services.screenlayout = {
|
||||
script = ''
|
||||
${pkgs.xorg.xrandr}/bin/xrandr \
|
||||
--output DP-0 --primary --mode 1920x1080 --pos 1922x0 --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
|
||||
'';
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
partOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
|
||||
|
|
|
@ -23,22 +23,6 @@ in
|
|||
fade = false;
|
||||
};
|
||||
|
||||
# systemd.user.services.screenlayout = {
|
||||
# script = ''
|
||||
# ${pkgs.xorg.xrandr}/bin/xrandr \
|
||||
# --output DP-0 --primary --mode 1920x1080 --pos 1922x0 --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
|
||||
# '';
|
||||
# wantedBy = [ "graphical-session.target" ];
|
||||
# partOf = [ "graphical-session.target" ];
|
||||
# };
|
||||
|
||||
systemd.user.services.xrootdatetime = {
|
||||
script = ''
|
||||
while true; do
|
||||
|
|
Loading…
Reference in a new issue