iye/lightsOn — pull request #4 by darkfeline (2012-02-26 21:06:12+00:00)
Title: Fixed bug: fetching active window id returns list

```activ_win_id=`DISPLAY=:0.${display} xprop -root _NET_ACTIVE_WINDOW`
activ_win_id=${activ_win_id#*# }```

returns a comma-separated list of window ids, so we need to iterate over them. Otherwise, the list is passed directly to xprops, which complains about improper usage. If there's only one window id, the script still functions normally (no regressions).