mirror of
https://github.com/Nexoniarz/nexoniarz-config-nixos.git
synced 2026-11-03 04:24:27 +00:00
Redesign Display Settings, Wallpapers, Booru; add System Monitor, Weather
Display Settings: drag-to-arrange multi-monitor canvas with edge snapping (locked when only one screen is connected), 8/10-bit depth, color management presets (sRGB/Wide/EDID/HDR+EDID), SDR brightness/saturation, ICC profile path, VRR toggle. display-set now takes a single pre-built descriptor instead of a fixed positional arg list, since Hyprland's monitor keyword grew well past that. Wallpapers: fixed the current-wallpaper highlight never loading on open, added real first-frame thumbnails for animated wallpapers (wallpaper-thumbs + ffmpeg), bigger 2-column grid, filename filter. Booru: separate downloads folder from Wallpapers so browsing doesn't clutter the wallpaper picker, bigger grid, Safe/Moderate/Explicit rating tiers replacing the old binary toggle, sort order (Newest/ Score/Random). Fixed pagination being completely broken (a Flow anchor violation was silently disabling the whole layout) and Danbooru's Random sort (order:random tag times out server-side -- switched to their random=true endpoint for that case). Wi-Fi panel: added a "Scanning.../No networks found" state and a manual rescan button -- previously showed nothing either way, making "still scanning" indistinguishable from a real failure. Bluetooth: auto-scans on open like Wi-Fi now, instead of requiring a manual click every time. New: System Monitor panel (CPU/RAM/GPU/VRAM/disk usage, NVIDIA or AMD detected automatically) and Weather panel (IP-geolocated or a typed city, current + hourly forecast, Open-Meteo, no API key) with a compact taskbar badge.
This commit is contained in:
parent
d1ff0a11e0
commit
aa89dd729c
10 changed files with 1729 additions and 114 deletions
|
|
@ -1,23 +1,27 @@
|
|||
#!/usr/bin/env bash
|
||||
# Applies a monitor mode/position/scale/transform immediately (hyprctl)
|
||||
# AND persists it into ~/.config/hypr/display.conf, which hyprland.conf
|
||||
# sources — without that file, hyprland.conf's generic fallback rule
|
||||
# Applies a full monitor descriptor immediately (hyprctl) AND persists it
|
||||
# into ~/.config/hypr/display.conf, which hyprland.conf sources — without
|
||||
# that file, hyprland.conf's generic fallback rule
|
||||
# ("monitor = , preferred, auto, 1") is the only thing on record, and
|
||||
# ANYTHING that makes Hyprland re-evaluate monitor state (observed: even
|
||||
# changing the cursor theme via `hyprctl setcursor` does this) reapplies
|
||||
# that fallback, silently dropping back to "preferred" refresh rate
|
||||
# instead of whatever the user actually picked.
|
||||
#
|
||||
# Takes the monitor name and everything after it as one pre-built
|
||||
# descriptor string (mode,position,scale + optional transform/bitdepth/
|
||||
# cm/sdrbrightness/sdrsaturation/vrr/icc keyword,value pairs) rather than
|
||||
# fixed positional args — Hyprland's own `monitor` keyword syntax grew
|
||||
# past "mode/x/y/scale/transform" (color management, HDR, VRR, ICC), and
|
||||
# the caller (LeftFlyout.qml's Displays panel) already has all of that as
|
||||
# structured state, so it's simpler for it to build the one string than
|
||||
# for this script to accept a growing positional argument list.
|
||||
set -euo pipefail
|
||||
|
||||
mon="${1:?usage: display-set <monitor> <mode> <x> <y> <scale> [transform]}"
|
||||
mode="${2:?mode required}"
|
||||
x="${3:?x required}"
|
||||
y="${4:?y required}"
|
||||
scale="${5:?scale required}"
|
||||
transform="${6:-0}"
|
||||
mon="${1:?usage: display-set <monitor> <descriptor-tail>}"
|
||||
descriptor_tail="${2:?descriptor required}"
|
||||
|
||||
descriptor="$mon,$mode,${x}x${y},$scale"
|
||||
[ "$transform" != "0" ] && descriptor="$descriptor,transform,$transform"
|
||||
descriptor="$mon,$descriptor_tail"
|
||||
|
||||
conf="$HOME/.config/hypr/display.conf"
|
||||
mkdir -p "$(dirname "$conf")"
|
||||
|
|
|
|||
Loading…
Reference in a new issue