3 changed files with 29 additions and 48 deletions
@ -0,0 +1,18 @@ |
|||
#!/bin/bash |
|||
tsid="ELAN Touchscreen" |
|||
mainoutput="eDP-1" |
|||
hdmi="HDMI-1" |
|||
|
|||
case "$SRANDRD_ACTION" in |
|||
"$hdmi connected") |
|||
xrandr --output $hdmi --auto --right-of $mainoutput |
|||
maptouchscreen "$tsid" "$mainoutput" |
|||
setpasink hdmi |
|||
;; |
|||
|
|||
"$hdmi disconnected") |
|||
xrandr --output $hdmi --off --output $mainoutput --auto |
|||
maptouchscreen "$tsid" "$mainoutput" |
|||
setpasink analog |
|||
;; |
|||
esac |
@ -0,0 +1,8 @@ |
|||
#!/bin/bash |
|||
mainoutput="" |
|||
|
|||
case "$SRANDRD_ACTION" in |
|||
"$mainoutput connected") |
|||
xrandr --output $mainoutput --auto |
|||
;; |
|||
esac |
Loading…
Reference in new issue