nvidia mode changes
This commit is contained in:
parent
796b11619e
commit
799b01cb1d
1 changed files with 11 additions and 5 deletions
14
.xinitrc
14
.xinitrc
|
@ -40,10 +40,16 @@ fi
|
|||
|
||||
setxkbmap -layout us,pt
|
||||
setxkbmap -option grp:win_space_toggle
|
||||
|
||||
gpu_mode=$(/usr/bin/envycontrol -q)
|
||||
if [[ "$gpu_mode" == "nvidia" ]]; then
|
||||
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
||||
xrandr --auto
|
||||
xrandr --output HDMI-0 --above eDP-1-1
|
||||
xrandr --output HDMI-0 --primary
|
||||
else
|
||||
xrandr --auto
|
||||
xrandr --output HDMI-1-0 --above eDP-1
|
||||
exec i3
|
||||
|
||||
if [[ -f /usr/bin/prime-switch ]]; then
|
||||
sudo /usr/bin/prime-switch
|
||||
xrandr --output HDMI-1-0 --primary
|
||||
fi
|
||||
exec i3
|
||||
|
|
Loading…
Add table
Reference in a new issue