From f37e67e360011cb90f9dc45a5cefbe2e06a8846d Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 19 Jun 2022 22:06:55 +0200 Subject: Added NVIDIA drivers for phobos --- dotfiles/.xinitrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dotfiles') 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 & -- cgit 1.4.1