Panacea local changes
Upstream: https://github.com/EnsixD/Panacea at commit
2d68047e97fecd34802ed8221a0d113f43a0537f (version 1.0.24).
The trees below are NixRiot’s own copies, edited in place. There is no sync
tooling; UPSTREAM and LICENSE stay for attribution. Nothing is merged:
upstream features are read and ported by hand, and the pin moves only once the
revision has been reviewed, so UPSTREAM is the reviewed baseline.
What is carried
panacea/, hypr/, foot/, fastfetch/, nano/,
applications/, bin/, sddm/, LICENSE, VERSION.
What is not carried
install.sh: the Arch installer. NixRiot replaces it with Nix modules.docs/,README.md,AGENTS.md,.gitignore,graphify-out/,Panacea Vault/: upstream housekeeping.niri/: experimental second compositor, not used here.grub/: NixRiot boots with systemd-boot, so the GRUB theme is not shipped.assets/: only thelogo*.pngfiles are kept, underpanacea/assets/because the shell reads~/.config/panacea/assets/.wallpapers/: upstream set is third-party work with mixed terms and is not redistributed.
Changes made
hypr/wallpaper/is replaced with the NixRiot wallpaper set,00.webpthrough32.webp, generated for the project.hypr/wallpaper.confandhypr/hyprpaper.confpoint at~/.config/hypr/wallpaper/22.webp.- Upstream
assets/logo*.pngmoved topanacea/assets/so the shell finds them after the config tree is copied. hypr/scripts/switch_theme.shfallback now includes*.webp.hypr/scripts/palette.shis committed executable, so the activation-time-xcheck regenerates the palette.panacea/scripts/start.shdrops the Arch-only QtWebEngine workaround (/usr/lib/qt6/qml/QtWebEngine/...), which cannot resolve on NixOS.panacea/scripts/update.shis an adapter between Panacea’s update UI and NixOS:checkreads the status file thatnixriot-updatewrites on its timer and answers in Panacea’s key=value format, andapplystarts the privilegednixriot-updateservice. The upstream updater is not used.grub/is not carried: NixRiot boots with systemd-boot, so the upstream GRUB theme is unused.- The OpenRiot-compatible keymap lives in the defaults of
hypr/lua/keybindings.luaand the matchingbind_*values inpanacea/shell.qml: the launcher, browser, file manager, process viewer, editor, Crush, music player, clipboard, power menu, night light and screenshot use OpenRiot’s keys. Thehypr/custom/overlay files are no longer carried, because the settings panel generatesbinds_data.luafrom the same ids. hypr/lua/binds_data.lua,hypr/lua/monitors_data.luaandhypr/lua/input_data.luaship as empty defaults. Upstream lets them be absent and relies onpcall; shipping them keeps Hyprland’s Lua loader from logging a missing-module error before the settings panel generates them.genbinds.sh,genmonitors.shandgeninput.shoverwrite them.hypr/lua/keybindings.luausedpcall(require("lua.binds_data")), which runsrequirebeforepcalland so is not guarded at all: a missingbinds_data.luaaborts the whole config with a dump of every search path. Changed topcall(require, "lua.binds_data"), matchingmonitors.lua,input.luaandwindowrules.lua.hypr/theme.luausesgaps_in = 0,gaps_out = 0,rounding = 8, matching OpenRiot: flush tiled windows, rounded corners, and a 1px border on every window. Upstream used 5/5 and rounding 12.hypr/lua/windowrules.luadrops theno-gaps-wtv1rule, which zeroedborder_sizeandroundingon any workspace with exactly one tiled window. That made a lone window borderless, which is the opposite of OpenRiot’sdefault_border pixel 1withsmart_gaps off. Theno-gaps-f1rule stays: true fullscreen should have neither border nor rounding.hypr/scripts/palette.shnow derives foot’s full 16-colour ANSI palette frompalette.confand writes it to~/.config/foot/theme. It previously wrote only foreground, background and selection, so foot fell back to its own stock palette, which is where the terminal’s green came from.panacea/Mascot.qmldraws smaller eyes: the pupils go from 7x21 to 5x15, the containers from 15x29 to 11x21, and the spacing from 7 to 5. The two eyes filled most of the 46x38 face before.- Two more OpenRiot shortcuts are part of those defaults:
SUPER+M(andXF86Mail) opens Proton Mail, andSUPER+Xopens X withSUPER+Shift+Xfor the compose page. OpenRiot put Proton Mail onSUPER+E, which Panacea already uses for its Files view. hypr/lua/input.luasetsfollow_mouse = 0, so focus changes on click instead of on hover. Upstream uses 1, focus follows the mouse, which moves focus whenever the pointer crosses a window. The fallbackhypr/hyprland.confkeeps upstream’s value on purpose: it is a stopgap for a Hyprland without Lua support and is not kept in parity.hypr/hypridle.confis new, andhypr/lua/autostart.luastartshypridle. Upstream ships a manual lock only; OpenRiot locked the screen after 10 minutes idle (xautolock -time 10), so that is what this restores, raised to 15 minutes. Display-off is deliberately not configured: Hyprland 0.56 replaced thedpmsdispatcher with the Luahl.dpms, and there is no version-independent shell command for it yet. If the reader needs it,hyprctlaccepts a Lua dispatcher expression.- The lid binds no longer lock the screen.
hypr/hyprland.confloses itsswitch:on:Lid Switchline, and the LualidOn/lidOffbinds now drive output handling instead (see 26). Locking on every lid close is wrong in clamshell mode: a closed lid with a display still attached is a machine in use. Suspending on lid close and not suspending when a display is attached are both logind’s own behaviour (HandleLidSwitchDockeddefaults toignore, and more than one connected display counts as docked), and the lock now happens on the way into suspend, from hypridle’sbefore_sleep_cmd. - Night light, ported from upstream
2d68047rather than merged. Newpanacea/scripts/nightlight.shdrives hyprsunset (on [K],off,status, 4000K default,identityto turn off);panacea/shell.qmlgains thenightLight/nightTemp/nightAuto/nightStart/nightEndsettings, the apply-and-schedule functions, a moon branch in the OSD icon and an IPCnightlighttarget;panacea/SetDisplay.qmlgains the Display card andpanacea/ControlsView.qmla moon button beside brightness. It is off by default, which changes the screen: hyprsunset used to be started at a fixed 5000K, so it was always warm.hypr/hyprsunset.confnow sits at 6000K (the daemon’s own default) and autostart starts it bare, leaving the saved state in charge. The defaults inhypr/lua/keybindings.luabindSUPER+N, as OpenRiot did. Upstream’swlsunset/niri branch and itsnightAvailableprobe are not carried. -
panacea/scripts/brightness.shgets the PATH prelude already used byvoxtype.sh, and itspgrep -x qsguard around the OSD IPC is dropped. The guard could only ever suppress the brightness OSD, and the error it avoided is already thrown away. - Three island fixes ported from the same upstream revision.
shell.qmlguardscollapseTimeronroot.morphing, so the panel no longer collapses on a spurious hover leave while the mask is still morphing; the collapsed length is computed fromcfg.mascotEnabledrather thanmascot.active, which is false exactly when the panel is expanded and so under-reserved the width inpillSideandpillKeepVisible; andhoverPad, an invisible trace of the collapsed pill kept in the window mask, stops the “bar <-> control centre” flicker when a wide pill expands out from under a stationary cursor. hypr/lua/env.luasets the cursor toBibata-Modern-Ice, and so doesHYPRCURSOR_THEME. Upstream setsBibata-Modern-Classic, which is the dark variant, while NixRiot told GTK and the session to use Ice inhome/gtk.nixandmodules/desktop/theme.nix. The two disagreed, so the compositor drew a black cursor over a desktop whose applications drew a white one. OpenRiot uses Ice throughout, which is what this restores.hypr/theme.luaand the fallbackhypr/theme.confframe the active window with OpenRiot’s cyan to blue to purple gradient,#50c9c3,#7aa2f7, and#997DE1. Upstream used a white-to-grey gradient taken from the pill’s own theme (Themes.jsis black and white), which put a white frame on an accent-coloured desktop.panacea/SetSystem.qmlnames NixRiot where upstream names the shell. The System page’s only project link pointed atgithub.com/EnsixD, the shell’s author, so there was no route to NixRiot from the island at all, and the version line renderedPanacea <shell version>with NixRiot’s version demoted to a field labelled “build”. The link now opens the NixRiot repository, the subtitle keeps Panacea’s author as attribution, and the version line readsNixRiot <version>from the updater’s own status, which is the installed version.hypr/lua/lid.luadisables the internal panel while the lid is closed and an external monitor is enabled, and restores it when either condition ends. logind decides whether a closed lid suspends, but it does not manage outputs, so a docked laptop used to keep drawing the internal panel. The existinglidOnandlidOffbindings are now connected to it, andmonitor.addedandmonitor.removedre-evaluate the state, so plugging in an external display with the lid already shut works without a manualhyprctlcommand.- The default wallpaper is
22.webp. The checked-inwallpaper.confandhyprpaper.confsaid16.webp, so the first launch depended on the restore script winning its race with hyprpaper.home/panacea.nixnow seeds both state files from those defaults with~expanded when they are absent; the exclusions remain, so a chosen wallpaper still survives rebuilds. panacea/scripts/themes.sh listbuilds a missing thumbnail synchronously instead of returning the raw image. The shipped Qt has no WebP image plugin, so the wallpaper view errored on any image without a cached JPG.panacea/shell.qmlcaps the collapsed island atpanelW, so the closed pill can no longer be wider than the open panel, and settings pages use a 24px top margin instead of vertical centring.panacea/SetDisplay.qmlsteps the scale by 0.01 andgenmonitors.shrounds it to four decimals. Hyprland quantises 1.7 to 1.6666667 and rejected the stored value.- The pill keeps a 1px border drawn from the foreground colour, including
through the notch corners (
NotchCorner.stroke).
Not yet changed
- Upstream
2d68047also moves the wallpaper crossfade out of the island into its ownWlrLayer.Bottomwindow, so the old wallpaper fades under windows instead of covering them for a second. Cosmetic, and the largest piece of that revision; reviewed and deliberately skipped. The in-islandImageis still there, and the pin is already at that revision, so this is the one hunk left. panacea/scripts/*.shstill assume common Arch tool names in a few places. Audit and patch as each feature is exercised.hypr/scripts/*.shstill write to~/.configdirectly. That is fine: Home Manager now refreshes the tree on every rebuild and those files are regenerated afterwards, in the same activation.