2024-07-12 16:56:54 +02:00
|
|
|
args @ { config, lib, pkgs, ... }:
|
2024-07-04 01:14:24 +02:00
|
|
|
{
|
|
|
|
services = {
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
xkb.layout = "pl";
|
|
|
|
|
2024-07-12 16:56:54 +02:00
|
|
|
displayManager = let
|
|
|
|
monitors = import ../utils/monitors.nix args;
|
|
|
|
in {
|
2024-07-04 01:14:24 +02:00
|
|
|
# THIS SHIT DOESN'T WORK!!!
|
|
|
|
setupCommands = ''
|
2024-07-12 16:56:54 +02:00
|
|
|
xrandr --output ${monitors.left} --mode 1920x1080 --rate 239.76 --primary
|
|
|
|
xrandr --output ${monitors.right} --off
|
2024-07-04 01:14:24 +02:00
|
|
|
xset r rate 180 50
|
|
|
|
'';
|
|
|
|
sessionCommands = ''
|
2024-07-12 16:56:54 +02:00
|
|
|
xrandr --output ${monitors.left} --mode 1920x1080 --rate 239.76 --primary
|
|
|
|
xrandr --output ${monitors.right} --mode 1920x1080 --rate 74.97 --right-of ${monitors.left}
|
2024-07-04 01:14:24 +02:00
|
|
|
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";
|
|
|
|
# };
|
|
|
|
# };
|
2024-07-05 00:52:00 +02:00
|
|
|
}
|
|
|
|
|