From f78c88b0a056cf5776f269673d65cf7f431937e5 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 9 Mar 2020 12:25:33 +0100 Subject: Allow to have no 'background' configuration key Signed-off-by: Olivier Gayot --- monitor-menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor-menu.py b/monitor-menu.py index 48e12a4..710eab7 100755 --- a/monitor-menu.py +++ b/monitor-menu.py @@ -49,7 +49,7 @@ class MonitorMenu(): for monitor in profile['monitors']: xrandr_cmd.extend(monitor['xrandr-opts']) - if monitor['background'] is not None: + if monitor.get('background') is not None: feh_cmd.append(monitor['background']); subprocess.run(xrandr_cmd) -- cgit v1.2.3