Fix monitor settings on zeus
This commit is contained in:
parent
206f54ff90
commit
05ff7edcd4
|
@ -133,6 +133,7 @@ in
|
|||
./roles/hourly-maintenance.nix
|
||||
(import ./roles/state.nix "orga")
|
||||
./roles/trusted-env.nix
|
||||
./roles/monitor-config
|
||||
];
|
||||
fluffy.default = makeConfig "fluffy" [
|
||||
./roles/on-my-machine.nix
|
||||
|
|
4
home-manager/roles/monitor-config/default.nix
Normal file
4
home-manager/roles/monitor-config/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
xdg.configFile."monitors.xml".source = ./. + "/${config.m-0.hostName}-monitors.xml";
|
||||
}
|
36
home-manager/roles/monitor-config/zeus-monitors.xml
Normal file
36
home-manager/roles/monitor-config/zeus-monitors.xml
Normal file
|
@ -0,0 +1,36 @@
|
|||
<monitors version="2">
|
||||
<configuration>
|
||||
<logicalmonitor>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<scale>1</scale>
|
||||
<primary>yes</primary>
|
||||
<monitor>
|
||||
<monitorspec>
|
||||
<connector>HDMI-1</connector>
|
||||
<vendor>MEI</vendor>
|
||||
<product>Panasonic-TV</product>
|
||||
<serial>0x01010101</serial>
|
||||
</monitorspec>
|
||||
<mode>
|
||||
<width>1920</width>
|
||||
<height>1080</height>
|
||||
<rate>60</rate>
|
||||
</mode>
|
||||
</monitor>
|
||||
<monitor>
|
||||
<monitorspec>
|
||||
<connector>DP-2</connector>
|
||||
<vendor>GSM</vendor>
|
||||
<product>LG HDR 4K</product>
|
||||
<serial>0x000a56c8</serial>
|
||||
</monitorspec>
|
||||
<mode>
|
||||
<width>1920</width>
|
||||
<height>1080</height>
|
||||
<rate>60</rate>
|
||||
</mode>
|
||||
</monitor>
|
||||
</logicalmonitor>
|
||||
</configuration>
|
||||
</monitors>
|
|
@ -33,7 +33,7 @@ let
|
|||
"git"
|
||||
"media"
|
||||
];
|
||||
persistentStateFiles = [ ".chpwd-recent-dirs" ".zsh_history" ".config/monitors.xml" ];
|
||||
persistentStateFiles = [ ".chpwd-recent-dirs" ".zsh_history" ];
|
||||
volatileStateFiles = [ ];
|
||||
volatileStateDirs = [ ".steam" ".local/share/Steam" ];
|
||||
mkLine = type: to: from: "${type} ${to} - - - - ${from}";
|
||||
|
|
Loading…
Reference in a new issue