Tag Info

New answers tagged

1

When using peoro's solution, I got some extra output from xrandr, so I used the -c option for grep which counts the number of matches. I adapted it for HDMI and added audio switch as well: #!/bin/bash # adapted from http://unix.stackexchange.com/questions/4489/ # default monitor is LVDS1 MONITOR=LVDS1 # functions to switch from LVDS1 to HDMI1 function ...



Top 50 recent answers are included