Skip to content

Add --desktop option#60

Draft
stoeckmann wants to merge 5 commits intomasterfrom
desktop_infrastructure
Draft

Add --desktop option#60
stoeckmann wants to merge 5 commits intomasterfrom
desktop_infrastructure

Conversation

@stoeckmann
Copy link
Copy Markdown
Owner

@stoeckmann stoeckmann commented Apr 14, 2026

Based on #55

If only one desktop is specified, e.g. --desktop 2 and you switch away from it, then wallpapers stay the way they are. If it's --desktop 2 and --desktop 4 and you switch from 2 to 4 to 3, 3 will have the desktop 4 wallpaper. If you switch from 2 to 3, it will have the desktop 2 wallpaper. The --clear option fixes that. Probably worth a manual page entry.

Otherwise, tested with multi-monitor setup.

@stoeckmann stoeckmann force-pushed the desktop_infrastructure branch 3 times, most recently from 23afd93 to e584a1d Compare April 15, 2026 20:03
@stoeckmann stoeckmann marked this pull request as draft April 15, 2026 20:06
@stoeckmann stoeckmann force-pushed the desktop_infrastructure branch 5 times, most recently from 9bd8fde to c83cffc Compare April 15, 2026 21:44
stoeckmann and others added 5 commits April 15, 2026 23:54
Integers will be -1, use "all" for strings instead of NULL. This allows
the options to reset all values to their defaults if desired.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Override previous options with latest one, even if they are less
specific, e.g. --output all after a more specific one.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Look up the appropriate option and process output only once.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
The --desktop option will eventually be able to specify which virtual
desktop has to be active for xwallpaper options to apply.

In --daemon mode, this option will support virtual desktop switching,
i.e. updating wallpapers for different desktops will be supported.

This commit prepares the infrastructure to support --desktop.

Co-authored-by: Fredrik Noring <noring@nocrew.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Use XCB to retrieve virtual desktop and update screens accordingly.

Co-authored-by: Fredrik Noring <noring@nocrew.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
@stoeckmann stoeckmann force-pushed the desktop_infrastructure branch from c83cffc to ac72baf Compare April 15, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant