mirror of
https://github.com/Nexoniarz/nexoniarz-config-nixos.git
synced 2026-11-03 04:24:27 +00:00
- Persist last-set wallpaper and restore it via exec-once, since hyprpaper/mpvpaper start every session with nothing loaded - Fix Vesktop's system tray icon rendering as a broken texture: only resolve tray icons through the icon theme when they're actual names, not raw pixmap-sourced image:// URLs - Launch Hyprland via start-hyprland (its official watchdog launcher) instead of the raw binary, removing the startup warning and adding hang recovery - Fix Booru panel: Lewds toggle now actually persists, tag autocomplete no longer drops/races overlapping requests, and pagination wraps instead of overflowing off-screen - Remove the redundant gap between windows and sidebars/tiles (gaps_in/gaps_out, and duplicate flyout margins stacked on top of Hyprland's automatic exclusive-zone inset)
20 lines
767 B
Shell
20 lines
767 B
Shell
#!/usr/bin/env bash
|
|
# Reapplies the last-set wallpaper on login/reboot. hyprpaper and mpvpaper
|
|
# both start every session with nothing loaded, and wallpaper-set only ever
|
|
# ran through live IPC with no persistence of its own — without this the
|
|
# desktop silently reverted to blank on every fresh login. Run via
|
|
# exec-once in hyprland.conf, after hyprpaper.
|
|
set -euo pipefail
|
|
|
|
state_file="$HOME/.config/hypr/wallpaper.conf"
|
|
[ -f "$state_file" ] || exit 0
|
|
|
|
# hyprpaper's IPC socket isn't guaranteed ready the instant exec-once fires
|
|
# it, since exec-once entries all start back-to-back with no ordering
|
|
# guarantee beyond process spawn order.
|
|
for _ in $(seq 1 50); do
|
|
hyprctl hyprpaper listactive > /dev/null 2>&1 && break
|
|
sleep 0.1
|
|
done
|
|
|
|
bash "$state_file"
|