diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-10 13:30:08 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-10 13:30:08 -0500 |
| commit | 4bf75780c4b87aae173ae0d7125e8917cdc820c5 (patch) | |
| tree | a68be4b1a8a78afc81bbd968a85b68164c5637c4 /custom | |
| parent | 92299ea3d2f5c982ae62ce6aa1cafb489ee06342 (diff) | |
| download | dotemacs-4bf75780c4b87aae173ae0d7125e8917cdc820c5.tar.gz dotemacs-4bf75780c4b87aae173ae0d7125e8917cdc820c5.zip | |
refactor(dirvish): extract cj/--wallpaper-program-for helper
`cj/set-wallpaper' had two parallel cond arms hardcoding the X11/Wayland dispatch and the success/failure messages inline. Lift the program-and-args choice into `cj/--wallpaper-program-for' -- a pcase from a display-server symbol to a (PROGRAM ARG...) list, or nil for unknown environments. The wrapper now: detect env, ask helper for the command, surface the right message (unknown server / executable missing / success). Adding a third backend (e.g. xdg-desktop-portal) becomes one pcase clause + one test.
Diffstat (limited to 'custom')
0 files changed, 0 insertions, 0 deletions
