- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .gitignore | ||
| App.zig | ||
| build.zig | ||
| build.zig.zon | ||
| README.md | ||
| root.zig | ||
kosm_hyprpaper
hyprpaper for kosm: the wallpaper on each monitor.
By default the app owns ~/.config/hypr/hyprpaper.conf and writes it whole, with splash and
one wallpaper block per wallpaper. With owned = false the file is yours: kosm only sets
splash and each wallpaper's path and fit_mode in the wallpaper block naming its monitor
(monitor = for every monitor), keeping your comments and other keys, and fails naming the
monitor when a block or key is missing. Either way it then sets each on the running hyprpaper (hyprctl hyprpaper wallpaper), which
reads its config only at start. With no hyprpaper running that is a warning. With no wallpaper
set nothing is written, so a theme alone leaves the file alone: from(theme) sets none, as a
wallpaper is the kosmos' own.
apps.hyprpaper.?.wallpapers = &.{
.{ .path = "~/Pictures/mountain.jxl" },
.{ .monitor = "DP-2", .path = "~/Pictures/sea.png", .fit_mode = .contain },
};
A path or monitor hyprpaper cannot read (holding #, , or a line break, or empty), or two
wallpapers (or, in a file kosm does not own, two blocks) for one monitor, fails the apply naming
it. The package exports hyprlang_adapter (from kosm_hyprlang), which edits a file it does
not own.
Fields
| Field | Default |
|---|---|
file |
~/.config/hypr/hyprpaper.conf |
owned |
true: kosm writes file whole; false: only sets values in it |
splash |
null: not written, hyprpaper's default (off) |
wallpapers |
none: nothing is written |
Wallpaper: monitor (null: every monitor no other wallpaper names), path (absolute or
~/), fit_mode (.cover, .contain, .tile, .fill; null: hyprpaper's default, cover).