Xorg: Difference between revisions

imported>Cas1no
No edit summary
imported>Equirosa
m Add syntax highlighting to code snippets
Line 5: Line 5:
Not all software behaves well in high-resolution mode yet. Here are listed most common tweaks which make work on a HiDPI screen more pleasant:
Not all software behaves well in high-resolution mode yet. Here are listed most common tweaks which make work on a HiDPI screen more pleasant:


<pre>
<syntaxhighlight lang="nix">
   # bigger tty fonts
   # bigger tty fonts
   console.font =
   console.font =
Line 15: Line 15:
     _JAVA_OPTIONS = "-Dsun.java2d.uiScale=2";
     _JAVA_OPTIONS = "-Dsun.java2d.uiScale=2";
   };
   };
</pre>
</syntaxhighlight>


In NixOS unstable (but not in NixOS 20.03) there is also a dedicated [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/hardware/video/hidpi.nix HiDPI module]:
In NixOS unstable (but not in NixOS 20.03) there is also a dedicated [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/hardware/video/hidpi.nix HiDPI module]:


<pre>
<syntaxhighlight lang="nix">
{
{
   hardware.video.hidpi.enable = true;
   hardware.video.hidpi.enable = true;
}
}
</pre>
</syntaxhighlight>


This option will be included by default when using <code>nixos-config-generate</code> and it detects a screen larger than  
This option will be included by default when using <code>nixos-config-generate</code> and it detects a screen larger than  
Line 31: Line 31:
To disable touchpad and mouse accelerations just add the following lines to your <code>configuration.nix</code>
To disable touchpad and mouse accelerations just add the following lines to your <code>configuration.nix</code>


<pre>
<syntaxhighlight lang="nix">
   services.xserver = {
   services.xserver = {
     enable = true;
     enable = true;
Line 54: Line 54:


   };
   };
</pre>
</syntaxhighlight>


To get more information see <code>man configuration.nix</code>.
To get more information see <code>man configuration.nix</code>.