49 lines
No EOL
1.3 KiB
Nix
49 lines
No EOL
1.3 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
services = {
|
|
xserver = {
|
|
enable = true;
|
|
xkb.layout = "pl";
|
|
|
|
displayManager = {
|
|
# THIS SHIT DOESN'T WORK!!!
|
|
setupCommands = ''
|
|
xrandr --output DP-3 --mode 1920x1080 --rate 239.76 --primary
|
|
xrandr --output HDMI-1 --off
|
|
xset r rate 180 50
|
|
'';
|
|
sessionCommands = ''
|
|
xrandr --output DP-3 --mode 1920x1080 --rate 239.76 --primary
|
|
xrandr --output HDMI-1 --mode 1920x1080 --rate 74.97 --right-of DP-3
|
|
xset r rate 180 50
|
|
'';
|
|
};
|
|
|
|
# THIS SHIT DOESN'T WORK!!!
|
|
autoRepeatDelay = 180;
|
|
autoRepeatInterval = 50;
|
|
};
|
|
};
|
|
|
|
home-manager.users.krizej.xsession.enable = true;
|
|
|
|
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";
|
|
# };
|
|
# };
|
|
} |