init lab bin

This commit is contained in:
ackman678
2019-02-05 19:30:40 -08:00
commit e86353cd6b
15 changed files with 456 additions and 0 deletions

10
hdmi.sh Executable file
View 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