From e3bf98deafef4876230253622fce04272af38d13 Mon Sep 17 00:00:00 2001 From: Kat Inskip Date: Sun, 14 Apr 2024 16:19:45 -0700 Subject: [PATCH] feat: xfce style on monitor count basis --- konawall/environments/xfce.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/konawall/environments/xfce.py b/konawall/environments/xfce.py index 8893f28..6b2a974 100644 --- a/konawall/environments/xfce.py +++ b/konawall/environments/xfce.py @@ -4,13 +4,13 @@ from konawall.imager import combine_to_viewport @add_environment("xfce_setter") def set_wallpapers(files: list, displays: list): - file = combine_to_viewport(displays, files) command_for_last_image = ["xfconf-query", "--channel", "xfce4-desktop", "--list"] workspaces_command = subprocess.run(command_for_last_image, capture_output=True) workspaces_command_lines = workspaces_command.stdout.decode("utf-8").strip().split("\n") workspaces_command_wallpapers = [conf for conf in workspaces_command_lines if "last-image" in conf] - set_command_base = ["xfconf-query", "-c", "xfce4-desktop", "-s", file.name, "-p"] - for workspace_config in workspaces_command_wallpapers: + for i, file in enumerate(files): + workspace_config = workspaces_command_wallpapers[i] + set_command_base = ["xfconf-query", "-c", "xfce4-desktop", "-s", file, "-p"] set_command = set_command_base + [workspace_config] set_style_command = ["xfconf-query", "-c", "xfce4-desktop", "-s", "5", "-p"] + [workspace_config.replace("last-image", "image-style")] subprocess.run(set_style_command)