1
0
Fork
You've already forked pacpaper
0
ArchLinux wallpaper that applies a mask effect with text listing installed packages on the system
  • Shell 100%
2024年06月26日 17:10:21 +02:00
.gitignore Add .gitignore 2023年12月15日 01:03:50 +01:00
base_wallpaper.png Initial commit 2023年12月14日 00:51:15 +01:00
example.png Add missing example.png image 2023年12月14日 01:06:35 +01:00
LICENSE Initial commit 2023年12月14日 00:51:15 +01:00
pacpaper Use magick instead of depracated convert 2024年06月26日 17:10:21 +02:00
README.md Better readability 2023年12月17日 00:02:00 +01:00

Example of an wallpaper generated by this script

Installation

With your favourite AUR helper, example: paru pacpaper-git

Manually:

git clone https://codeberg.org/Didek/pacpaper.git
makepkg -si

Usage

Call pacpaper command, it would generate wallpaper in the current directory. Tweak the options like font size or input image to best match your liking, monitor resolution and configuration. Script comes with prebundled hires base image.

Options:
 -h, --help
 Show help
 -o, --output
 Specity the path to generate masked image into, default: result.png
 It would be at the same resolution as input
 -i, --input
 Specify the path to base image to generate from
 -n, --noice
 Apply additional grayscale noice on the mask to make more complex images more readable. Image generation would take longer
 -f, --font
 Specify font, default: NimbusMonoPS-Regular
 -fs, --font-size
 Specify font size, default: 20
 -y, --yes
 Overwrite file if exists
 -v, --verbose
 Verbose output

Automatic generation

  1. Uncomment in /etc/pacman.conf:

HookDir = /etc/pacman.d/hooks/

  1. Create a file /etc/pacman.d/hooks/pacpaper.hook:
[Trigger]
Operation = Remove
Operation = Install
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Update the pacpaper wallpaper
When = PostTransaction
Exec = /usr/bin/pacpaper -y -o /var/local/pacpaper.png
  1. Test by updating/installing a package, result should be at /var/local/pacpaper.png