diff options
| author | Christopher R. Nelson <christopher.nelson@languidnights.com> | 2026-11-01 00:27:57 -0400 |
|---|---|---|
| committer | Christopher R. Nelson <christopher.nelson@languidnights.com> | 2026-11-01 00:27:57 -0400 |
| commit | f1933ef4b012de715e637f489bbcb89d944496f8 (patch) | |
| tree | 8a00179529584f6376dfa1a40d3713c30795bd41 /src/package.lisp | |
| parent | 7fb53e418a48b8baa7bcab89967a0755f2230162 (diff) | |
Menu items now call the program back with --set FILE, which runs the
configured command and, if it exits 0, saves the path to
$XDG_STATE_HOME/wallpaper-switcher/current. --restore sets the saved
wallpaper again, for use in labwc/openbox autostart. Items use the
binary's absolute path so the menu works when it is not on PATH.
Paths from the command line are parsed as native namestrings so file
names containing * or [ are not treated as wildcards.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'src/package.lisp')
| -rw-r--r-- | src/package.lisp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/package.lisp b/src/package.lisp index dcf297e..99773cc 100644 --- a/src/package.lisp +++ b/src/package.lisp @@ -19,4 +19,14 @@ #:xml-escape #:menu-label #:build-command + #:expand-template + #:run-wallpaper-command + #:*self-command* + ;; state + #:*state-file* + #:state-file-path + #:write-state + #:read-state + #:set-wallpaper + #:restore-wallpaper #:render-menu)) |
