38 lines
2.0 KiB
Markdown
38 lines
2.0 KiB
Markdown
Generated migration starter from WallpaperChanger.sh. Implements monitor detection, image scanning, openssl wrapper, naming table loader, wallpaper builder and GNOME setter.
|
|
|
|
Display the installed package version with `wallpaperchanger --version` (or `-v`).
|
|
|
|
Select a folder mode with `--mode default|x|i` (shortcuts `-d`, `-x`, and `-i`); modes select the default `Desktop1920x1080`, `corrupt`, or `insta` folder. `--folder PATH` independently overrides the selected folder and accepts a relative name under the wallpaper directory or an absolute path. For example, `wallpaperchanger --mode x --folder custom` uses the `custom` folder.
|
|
|
|
Use `--disable-encryption` to build a wallpaper from a folder without encrypting files or decrypting images or the naming table. Encrypted image payloads are skipped; `.jpg_enc` files are included only when they contain plain JPEG data.
|
|
|
|
### Run as a GNOME user service
|
|
|
|
The systemd user unit runs the daemon in the graphical session, which is required by GNOME's `gsettings`. It assumes the project is checked out at `~/scripts/wallpaper_changer` and uses that checkout's `.venv`; adjust `ExecStart` and `WorkingDirectory` in `systemd/wallpaper-changer.service` if yours is elsewhere. The unit changes the wallpaper every 60 minutes by default; edit `--minutes` to change the interval.
|
|
|
|
Install and start it with:
|
|
|
|
```sh
|
|
mkdir -p ~/.config/systemd/user
|
|
cp systemd/wallpaper-changer.service ~/.config/systemd/user/
|
|
systemctl --user daemon-reload
|
|
systemctl --user enable --now wallpaper-changer.service
|
|
```
|
|
|
|
Check its status or follow its logs:
|
|
|
|
```sh
|
|
systemctl --user status wallpaper-changer.service
|
|
journalctl --user -u wallpaper-changer.service -f
|
|
```
|
|
|
|
Stop and disable it with `systemctl --user disable --now wallpaper-changer.service`.
|
|
|
|
Encrypt or decrypt the fixed naming-table files in the selected image folder:
|
|
|
|
```sh
|
|
wallpaperchanger --encryptNT
|
|
wallpaperchanger --decryptNT
|
|
```
|
|
|
|
`--encryptNT` reads `naming_table.dec` and writes `naming_table_enc.txt`; `--decryptNT` reads `naming_table_enc.txt` and writes `naming_table.dec`. |