50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
args @ { config, lib, pkgs, ... }:
|
|
{
|
|
services = {
|
|
xserver = {
|
|
enable = true;
|
|
xkb.layout = "pl";
|
|
|
|
displayManager = let
|
|
monitors = import ../utils/monitors.nix args;
|
|
in {
|
|
# THIS SHIT DOESN'T WORK!!!
|
|
setupCommands = ''
|
|
xrandr --output ${monitors.left} --mode 1920x1080 --rate 239.76 --primary
|
|
xrandr --output ${monitors.right} --off
|
|
xset r rate 180 50
|
|
'';
|
|
sessionCommands = ''
|
|
xrandr --output ${monitors.left} --mode 1920x1080 --rate 239.76 --primary
|
|
xrandr --output ${monitors.right} --mode 1920x1080 --rate 74.97 --right-of ${monitors.left}
|
|
xset r rate 180 50
|
|
'';
|
|
};
|
|
|
|
# THIS SHIT DOESN'T WORK!!!
|
|
autoRepeatDelay = 180;
|
|
autoRepeatInterval = 50;
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
xclip
|
|
xorg.xkill
|
|
xorg.xev
|
|
xdotool
|
|
];
|
|
|
|
# https://www.reddit.com/r/linux_gaming/comments/1dkbh5t/games_behaving_differently_on_xorg_than_on/
|
|
# FUCK YOU LIBINPUT
|
|
services.libinput.enable = lib.mkForce false;
|
|
# services.libinput = {
|
|
# enable = true;
|
|
# touchpad = {
|
|
# naturalScrolling = false; # it's reversed on my laptop for some reason
|
|
# tapping = true;
|
|
# tappingButtonMap = "lmr";
|
|
# scrollMethod = "edge";
|
|
# };
|
|
# };
|
|
}
|
|
|