mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 21:21:53 -05:00
randomWallpaper: exit gracefully if no active monitors
This commit is contained in:
parent
2e24108fa7
commit
0b240aca66
|
@ -27,7 +27,8 @@
|
|||
if Dir.exist?(directory)
|
||||
loop do
|
||||
active_monitors = get_outputs
|
||||
|
||||
break if active_monitors.empty?
|
||||
|
||||
added_monitors = active_monitors - known_monitors.keys
|
||||
removed_monitors = known_monitors.keys - active_monitors
|
||||
|
||||
|
|
Loading…
Reference in a new issue