From 871c8e39545876e595910b51e3a85a5f826fdb03 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Sat, 12 Oct 2024 22:55:17 -0700 Subject: Break out xsession commands --- home/nipsy/arrakis.nix | 9 +++++++++ home/nipsy/common/optional/desktops/i3/default.nix | 3 +-- home/nipsy/ginaz.nix | 7 +++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/home/nipsy/arrakis.nix b/home/nipsy/arrakis.nix index 58e6ed6..e03e720 100644 --- a/home/nipsy/arrakis.nix +++ b/home/nipsy/arrakis.nix @@ -36,4 +36,13 @@ }; }; }; + + xsession = { + initExtra = '' + xrandr --output DP-2 --primary --mode 2560x1440 --rate 165 + + # disable VRR because it causes the display to go to sleep on my GeForce 1080 (now 3070 Ti) sometimes; maybe monitor related? + #nvidia-settings -a AllowVRR=0 + ''; + }; } diff --git a/home/nipsy/common/optional/desktops/i3/default.nix b/home/nipsy/common/optional/desktops/i3/default.nix index a2b7a4c..d75fbd5 100644 --- a/home/nipsy/common/optional/desktops/i3/default.nix +++ b/home/nipsy/common/optional/desktops/i3/default.nix @@ -19,8 +19,7 @@ xsession = { enable = true; initExtra = '' - xrandr --output eDP --primary --scale 0.5 - xinput set-prop "ELAN06FA:00 04F3:3202 Touchpad" "libinput Middle Emulation Enabled" 0 + # turn off bell and enable keyboard repeat xset b off xset r on ''; diff --git a/home/nipsy/ginaz.nix b/home/nipsy/ginaz.nix index f850a12..6e1036f 100644 --- a/home/nipsy/ginaz.nix +++ b/home/nipsy/ginaz.nix @@ -17,4 +17,11 @@ }; }; }; + + xsession = { + initExtra = '' + xrandr --output eDP --primary --scale 0.5 + xinput set-prop "ELAN06FA:00 04F3:3202 Touchpad" "libinput Middle Emulation Enabled" 0 + ''; + }; } -- cgit v1.2.3