init
This commit is contained in:
commit
215adfe420
34 files changed
+501
No files matched your search
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#! /bin/bash
|
||||
|
||||
export DISPLAY=:0
|
||||
export XAUTHORITY=/home/rob/.Xauthority
|
||||
|
||||
function connect(){
|
||||
#echo "HDMI angesteckt" >> /home/rob/hdmi1.txt
|
||||
#xrandr --output HDMI1 --above LVDS1 --preferred --primary --output LVDS1 --preferred
|
||||
xrandr --output HDMI1 --mode 1920x1080 --pos 0x0 --primary --output LVDS1 --preferred --mode 1366x768 --pos 274x1080
|
||||
}
|
||||
|
||||
function disconnect(){
|
||||
#echo "HDMI rausgezogen" >> /home/rob/hdmi1.txt
|
||||
xrandr --output HDMI1 --off
|
||||
xrandr --output LVDS1 --preferred --mode 1366x768
|
||||
}
|
||||
|
||||
xrandr | grep "HDMI1 connected" &> /dev/null && connect || disconnect
|
||||
|
||||
Reference in new issue
Block a user