Topic: [Solved]Detect if monitors are connected?
Hi!
I want to use a different conky setup depending on if I am using dual external monitors, or if i'm just using my laptop's screen.
Is there a way to check if a certain display is connected? my two external are 'DFP1' and 'CRT1', my laptop's display is 'LVDS'.
I'm thinking maybe something randr can handle?
EDIT: I figured it out. I used the command xrandr, which outputs a list of connected displays to the terminal, piped that into a text file, then read the text file with grep looking for CRT1, if it was found, i started a conky_dual setup, and if it wasn't, i started a conky_single setup.
Hooray!
Last edited by FiniteStateMachine (2010-08-21 17:47:18)
~FSM~