diff options
| author | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-03-09 12:25:33 +0100 | 
|---|---|---|
| committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-03-09 12:25:33 +0100 | 
| commit | f78c88b0a056cf5776f269673d65cf7f431937e5 (patch) | |
| tree | d03a18da0506f592247bf5a7537dc433f0600413 | |
| parent | de154334edf19dfa5d661188495fd5bfbc1e6843 (diff) | |
Allow to have no 'background' configuration key
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
| -rwxr-xr-x | monitor-menu.py | 2 | 
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) | 
