scripts/display-extern.sh

15 lines
334 B
Bash
Raw Normal View History

2024-03-13 07:56:53 +00:00
echo $id
#id="asdfsadf HDMI-1.1 asdfsdfas sfdsa"
id=$(xrandr)
id="HDMI${id#*HDMI}" #remove prefix to "HDMI" this does the # the * signifies what to remove
id="${id%%[[:space:]]*}"
2024-03-13 08:32:03 +00:00
echo $id "On"
id2=$(xrandr)
id2="eDP${id2#*eDP}"
id2="${id2%%[[:space:]]*}"
echo $id2 "Off"
xrandr --output $id2 --off
2024-03-13 07:56:53 +00:00
xrandr --output $id --auto
2024-02-28 10:04:05 +00:00