Commit b76c1d05 authored by Gabriele Musco's avatar Gabriele Musco
Browse files

strip sway config before adding more lines

parent 22645baa
Pipeline #114912 passed with stage
in 25 seconds
......@@ -65,7 +65,7 @@ def set_wallpaper_sway(monitors, lockscreen=False):
with open(SWAY_CONF_PATH) as fd:
conf = fd.read()
fd.close()
n_conf = re.sub(r'output .* bg .*', '', conf)
n_conf = re.sub(r'output .* bg .*', '', conf).strip()
n_conf += '\n' + '\n'.join([
f'output {m.name} bg {m.wallpaper} fill' for m in monitors
])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment