mirror of https://github.com/Flinner/dots.git
feat: starting nvidia manages external <-> internal montior
This commit is contained in:
parent
84a5671e6d
commit
5f316de0e3
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
intern=eDP-1-1
|
||||||
|
extern=HDMI-0
|
||||||
|
|
||||||
|
if xrandr | grep "$extern disconnected"; then
|
||||||
|
xrandr --output "$extern" --off --output "$intern" --auto
|
||||||
|
echo "External Monitor $extern is disconnected"
|
||||||
|
else
|
||||||
|
xrandr --output "$intern" --off --output "$extern" --auto
|
||||||
|
echo " External Monitor $extern is connected"
|
||||||
|
echo "So, Internal Monitor $intern was shutdown"
|
||||||
|
fi
|
Loading…
Reference in New Issue