summaryrefslogtreecommitdiff
path: root/monitor-menu.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2020-03-09 12:25:33 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2020-03-09 12:25:33 +0100
commitf78c88b0a056cf5776f269673d65cf7f431937e5 (patch)
treed03a18da0506f592247bf5a7537dc433f0600413 /monitor-menu.py
parentde154334edf19dfa5d661188495fd5bfbc1e6843 (diff)
Allow to have no 'background' configuration key
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'monitor-menu.py')
-rwxr-xr-xmonitor-menu.py2
1 files changed, 1 insertions, 1 deletions
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)