about summary refs log tree commit diff
path: root/dotfiles
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-19 22:06:55 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-19 22:06:55 +0200
commitf37e67e360011cb90f9dc45a5cefbe2e06a8846d (patch)
tree40dd643c849a78b0832f860871729d2ea114c769 /dotfiles
parentChange zsh config to fix up history (diff)
downloadnixos-config-f37e67e360011cb90f9dc45a5cefbe2e06a8846d.tar.gz
nixos-config-f37e67e360011cb90f9dc45a5cefbe2e06a8846d.tar.bz2
nixos-config-f37e67e360011cb90f9dc45a5cefbe2e06a8846d.zip
Added NVIDIA drivers for phobos
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.xinitrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/dotfiles/.xinitrc b/dotfiles/.xinitrc
index 5ef0d67..86af4aa 100644
--- a/dotfiles/.xinitrc
+++ b/dotfiles/.xinitrc
@@ -36,6 +36,12 @@ if command -v dbus-update-activation-environment >/dev/null 2>&1; then
         dbus-update-activation-environment DISPLAY XAUTHORITY
 fi
 
+# NEEDED FOR NVIDIA DRIVERS
+if [ -x "$(command -v nvidia-smi)" ]; then
+  xrandr --setprovideroutputsource modesetting NVIDIA-0
+fi
+
+xrandr --auto
 #xrandr -s 1920x1080 &
 
 sxhkd &