about summary refs log tree commit diff
path: root/dotfiles
diff options
context:
space:
mode:
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 &