set monitor configuration pre login
This commit is contained in:
		
							parent
							
								
									6a558120b9
								
							
						
					
					
						commit
						c993929049
					
				
					 1 changed files with 198 additions and 0 deletions
				
			
		|  | @ -23,6 +23,204 @@ | |||
|     eve.isFullUser = true; | ||||
|   }; | ||||
| 
 | ||||
|   systemd.tmpfiles.rules = [ | ||||
|     "L+ /run/gdm/.config/monitors.xml - - - - ${pkgs.writeText "gdm-monitors.xml" '' | ||||
|       <monitors version="2"> | ||||
|         <configuration> | ||||
|           <logicalmonitor> | ||||
|             <x>0</x> | ||||
|             <y>156</y> | ||||
|             <scale>1</scale> | ||||
|             <monitor> | ||||
|               <monitorspec> | ||||
|                 <connector>DP-4</connector> | ||||
|                 <vendor>DEL</vendor> | ||||
|                 <product>DELL U2719D</product> | ||||
|                 <serial>8RGXNS2</serial> | ||||
|               </monitorspec> | ||||
|               <mode> | ||||
|                 <width>2560</width> | ||||
|                 <height>1440</height> | ||||
|                 <rate>59.951</rate> | ||||
|               </mode> | ||||
|             </monitor> | ||||
|           </logicalmonitor> | ||||
|           <logicalmonitor> | ||||
|             <x>2560</x> | ||||
|             <y>324</y> | ||||
|             <scale>1</scale> | ||||
|             <primary>yes</primary> | ||||
|             <monitor> | ||||
|               <monitorspec> | ||||
|                 <connector>DP-2</connector> | ||||
|                 <vendor>GSM</vendor> | ||||
|                 <product>LG ULTRAGEAR</product> | ||||
|                 <serial>0x00068c96</serial> | ||||
|               </monitorspec> | ||||
|               <mode> | ||||
|                 <width>1920</width> | ||||
|                 <height>1080</height> | ||||
|                 <rate>240.001</rate> | ||||
|               </mode> | ||||
|             </monitor> | ||||
|           </logicalmonitor> | ||||
|           <logicalmonitor> | ||||
|             <x>4480</x> | ||||
|             <y>0</y> | ||||
|             <scale>1</scale> | ||||
|             <transform> | ||||
|               <rotation>left</rotation> | ||||
|               <flipped>no</flipped> | ||||
|             </transform> | ||||
|             <monitor> | ||||
|               <monitorspec> | ||||
|                 <connector>HDMI-0</connector> | ||||
|                 <vendor>HWP</vendor> | ||||
|                 <product>HP w2207</product> | ||||
|                 <serial>CND7332S88</serial> | ||||
|               </monitorspec> | ||||
|               <mode> | ||||
|                 <width>1600</width> | ||||
|                 <height>1000</height> | ||||
|                 <rate>59.999</rate> | ||||
|               </mode> | ||||
|             </monitor> | ||||
|           </logicalmonitor> | ||||
|         </configuration> | ||||
|         <configuration> | ||||
|           <logicalmonitor> | ||||
|             <x>0</x> | ||||
|             <y>0</y> | ||||
|             <scale>1</scale> | ||||
|             <primary>yes</primary> | ||||
|             <monitor> | ||||
|               <monitorspec> | ||||
|                 <connector>DP-1</connector> | ||||
|                 <vendor>DEL</vendor> | ||||
|                 <product>DELL U2719D</product> | ||||
|                 <serial>8RGXNS2</serial> | ||||
|               </monitorspec> | ||||
|               <mode> | ||||
|                 <width>2560</width> | ||||
|                 <height>1440</height> | ||||
|                 <rate>59.951</rate> | ||||
|               </mode> | ||||
|             </monitor> | ||||
|           </logicalmonitor> | ||||
|           <logicalmonitor> | ||||
|             <x>4480</x> | ||||
|             <y>226</y> | ||||
|             <scale>1</scale> | ||||
|             <transform> | ||||
|               <rotation>left</rotation> | ||||
|               <flipped>no</flipped> | ||||
|             </transform> | ||||
|             <monitor> | ||||
|               <monitorspec> | ||||
|                 <connector>HDMI-1</connector> | ||||
|                 <vendor>HWP</vendor> | ||||
|                 <product>HP w2207</product> | ||||
|                 <serial>CND7332S88</serial> | ||||
|               </monitorspec> | ||||
|               <mode> | ||||
|                 <width>1680</width> | ||||
|                 <height>1050</height> | ||||
|                 <rate>59.954</rate> | ||||
|               </mode> | ||||
|             </monitor> | ||||
|           </logicalmonitor> | ||||
|           <logicalmonitor> | ||||
|             <x>2560</x> | ||||
|             <y>226</y> | ||||
|             <scale>1</scale> | ||||
|             <monitor> | ||||
|               <monitorspec> | ||||
|                 <connector>DP-2</connector> | ||||
|                 <vendor>GSM</vendor> | ||||
|                 <product>LG ULTRAGEAR</product> | ||||
|                 <serial>0x00068c96</serial> | ||||
|               </monitorspec> | ||||
|               <mode> | ||||
|                 <width>1920</width> | ||||
|                 <height>1080</height> | ||||
|                 <rate>240.001</rate> | ||||
|               </mode> | ||||
|             </monitor> | ||||
|           </logicalmonitor> | ||||
|         </configuration> | ||||
|         <configuration> | ||||
|           <logicalmonitor> | ||||
|             <x>2560</x> | ||||
|             <y>228</y> | ||||
|             <scale>1</scale> | ||||
|             <primary>yes</primary> | ||||
|             <monitor> | ||||
|               <monitorspec> | ||||
|                 <connector>DP-2</connector> | ||||
|                 <vendor>GSM</vendor> | ||||
|                 <product>LG ULTRAGEAR</product> | ||||
|                 <serial>0x00068c96</serial> | ||||
|               </monitorspec> | ||||
|               <mode> | ||||
|                 <width>1920</width> | ||||
|                 <height>1080</height> | ||||
|                 <rate>240.001</rate> | ||||
|               </mode> | ||||
|             </monitor> | ||||
|           </logicalmonitor> | ||||
|           <logicalmonitor> | ||||
|             <x>4480</x> | ||||
|             <y>69</y> | ||||
|             <scale>1</scale> | ||||
|             <transform> | ||||
|               <rotation>left</rotation> | ||||
|               <flipped>no</flipped> | ||||
|             </transform> | ||||
|             <monitor> | ||||
|               <monitorspec> | ||||
|                 <connector>HDMI-1</connector> | ||||
|                 <vendor>HWP</vendor> | ||||
|                 <product>HP w2207</product> | ||||
|                 <serial>CND7332S88</serial> | ||||
|               </monitorspec> | ||||
|               <mode> | ||||
|                 <width>1680</width> | ||||
|                 <height>1050</height> | ||||
|                 <rate>59.954</rate> | ||||
|               </mode> | ||||
|             </monitor> | ||||
|           </logicalmonitor> | ||||
|           <logicalmonitor> | ||||
|             <x>0</x> | ||||
|             <y>0</y> | ||||
|             <scale>1</scale> | ||||
|             <monitor> | ||||
|               <monitorspec> | ||||
|                 <connector>DP-3</connector> | ||||
|                 <vendor>DEL</vendor> | ||||
|                 <product>DELL U2719D</product> | ||||
|                 <serial>8RGXNS2</serial> | ||||
|               </monitorspec> | ||||
|               <mode> | ||||
|                 <width>2560</width> | ||||
|                 <height>1440</height> | ||||
|                 <rate>59.951</rate> | ||||
|               </mode> | ||||
|             </monitor> | ||||
|           </logicalmonitor> | ||||
|           <disabled> | ||||
|             <monitorspec> | ||||
|               <connector>None-1</connector> | ||||
|               <vendor>unknown</vendor> | ||||
|               <product>unknown</product> | ||||
|               <serial>unknown</serial> | ||||
|             </monitorspec> | ||||
|           </disabled> | ||||
|         </configuration> | ||||
|       </monitors> | ||||
|     ''}" | ||||
|   ]; | ||||
| 
 | ||||
|   # enabled virtualisation for docker | ||||
|   # virtualisation.docker.enable = true; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue