Skip to content

wallpaper: unset removes a per-output override - #7

Merged
MasonRhodesDev merged 1 commit into
mainfrom
wallpaper-unset
Oct 13, 2026
Merged

MasonRhodesDev merged 1 commit into
mainfrom
wallpaper-unset

Conversation

@MasonRhodesDev

Copy link
Copy Markdown
Owner

Companion to MasonRhodesDev/dials#8 (the Displays inspector's Override checkbox needs an inverse of wallpaper set --output).

  • lmtt wallpaper unset --output <selector> [--no-publish]: removes that key from the user appearance profile, writes it atomically with the existing write_profile, republishes the greeter-readable snapshot unless --no-publish. A missing key prints "No wallpaper override for …" and exits 0 with nothing rewritten (dials relies on the idempotence).
  • An older lmtt answers clap's error: unrecognized subcommand 'unset', exit 2, which dials reports as "lmtt too old".
  • lmtt/tests/wallpaper_unset.rs: set global + two outputs under a temp XDG_CONFIG_HOME, unset one; the other override and [background] survive; a repeat unset leaves the file's mtime alone.

Needs a 0.3.2 release once merged (version bump is the release commit).

`lmtt wallpaper set --output <sel>` had no inverse, so a settings UI
could not give a display back to the global wallpaper without editing
the registry itself. `lmtt wallpaper unset --output <sel>` removes that
key from the user profile, writes it atomically and republishes the
greeter-readable snapshot unless --no-publish; a key that is not there
is reported and exits 0 with nothing rewritten.

Integration test under a throwaway XDG tree: set global + two outputs,
unset one, the other and the global rule survive, a second unset is a
no-op that leaves the file untouched.
@MasonRhodesDev
MasonRhodesDev marked this pull request as ready for review October 13, 2026 06:25
@MasonRhodesDev
MasonRhodesDev merged commit bcbbbfd into main Oct 13, 2026
5 of 6 checks passed
@MasonRhodesDev
MasonRhodesDev deleted the wallpaper-unset branch October 13, 2026 06:25
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