about summary refs log tree commit diff
path: root/dotfiles
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2022-06-19 22:06:55 +0200
committerBaitinq <[email protected]>2022-06-19 22:06:55 +0200
commite9dee05680f943a922e6e39d00ccece39cc9054f (patch)
tree051878489b48eec3d359f03bf4f92af314039858 /dotfiles
parentChange zsh config to fix up history (diff)
downloadnixos-config-e9dee05680f943a922e6e39d00ccece39cc9054f.tar.gz
nixos-config-e9dee05680f943a922e6e39d00ccece39cc9054f.tar.bz2
nixos-config-e9dee05680f943a922e6e39d00ccece39cc9054f.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 &