init lab bin
This commit is contained in:
10
hdmi.sh
Executable file
10
hdmi.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
#setup external hdmi display if connected, else ensure the display is off
|
||||
intern=eDP1
|
||||
extern=HDMI1
|
||||
|
||||
if xrandr | grep "$extern connected"; then
|
||||
xrandr --output "$intern" --auto --output "$extern" --auto --right-of "$intern"
|
||||
else
|
||||
xrandr --output "$intern" --auto --output "$extern" --off
|
||||
fi
|
||||
Reference in New Issue
Block a user