giving up on xrandrHeads for now

This commit is contained in:
Zynh Ludwig 2024-06-28 18:24:57 -07:00
parent 3b9cd8ae5f
commit 23e4691c6e
2 changed files with 29 additions and 21 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
@ -34,10 +34,34 @@
# Load nvidia driver for Xorg and Wayland # Load nvidia driver for Xorg and Wayland
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ]; services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
services.xserver.dpi = lib.mkDefault 96; services.xserver.dpi = lib.mkDefault 96;
services.xserver.xrandrHeads = [ # services.xserver.xrandrHeads = [
"HDMI-0" # { output = "HDMI-0"; }
{ output = "DP-0"; primary = true; } # {
]; # 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 = { hardware.nvidia = {

View file

@ -23,22 +23,6 @@ in
fade = false; 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 = { systemd.user.services.xrootdatetime = {
script = '' script = ''
while true; do while true; do