dots: public mirror (history reset after licence cleanup)
This commit is contained in:
commit
693822ad5f
226 files changed
+22502
No files matched your search
@@ -0,0 +1,32 @@
|
||||
## gui package — pin which config Hyprland starts with.
|
||||
##
|
||||
## Points HYPRLAND_CONFIG at HyDE's Lua entry point, explicitly. The Lua chain
|
||||
## loads HyDE's lua/ modules and then the user override
|
||||
## ~/.config/hypr/hyprland.lua (repo: gui/.config/hypr/hyprland.lua, which pulls
|
||||
## in the per-host host.lua). None of the old hyprlang .conf files are read in
|
||||
## Lua mode. See LUA-PORT.md.
|
||||
##
|
||||
## Why it is set from *fish* of all places: HyDE's untracked
|
||||
## ~/.config/fish/conf.d/hyde.fish exports it, and fish sources every
|
||||
## conf.d/*.fish at startup. SDDM launches the session through the login shell
|
||||
## (/usr/bin/start-hyprland, the `hyprland.desktop` entry — not
|
||||
## `hyprland-uwsm.desktop`), so the compositor inherits whatever fish exported.
|
||||
## HyDE's snippet only assigns `if test -z "$HYPRLAND_CONFIG"`, and conf.d files
|
||||
## load in alphabetical order, so this file's `00-` prefix means ours is already
|
||||
## set by the time hyde.fish looks — do not rename it above `hyde.fish`.
|
||||
##
|
||||
## The uwsm twin lives in gui/.config/uwsm/env-hyprland.d/10-dots.sh and covers
|
||||
## the `hyprland-uwsm.desktop` session entry. Both are needed; neither is
|
||||
## sufficient alone. Keeping the pins alive (instead of trusting HyDE's default)
|
||||
## preserves the invariant that the dots repo decides the config, and makes any
|
||||
## rollback a one-line edit. Takes effect at session start — relogin, not
|
||||
## `hyprctl reload`.
|
||||
##
|
||||
## ROLLBACK to hyprlang (the chain was retired at LUA-PORT.md step 8,
|
||||
## 2026-09-10): restore gui/.config/hypr, wm/.config/hypr, lw/.config/hypr and
|
||||
## gui/.local/share/hyde from bddbbf3 (the last pre-step-8 commit), ./install.sh, point both
|
||||
## pins back at "$HOME/.config/hypr/hyprland.conf" and relogin. d851213 is the
|
||||
## last hyprlang `main` (the port merged 2026-11-09).
|
||||
set -l hypr_data "$XDG_DATA_HOME"
|
||||
test -n "$hypr_data"; or set hypr_data "$HOME/.local/share"
|
||||
set -gx HYPRLAND_CONFIG "$hypr_data/hypr/hyde.lua"
|
||||
@@ -0,0 +1,9 @@
|
||||
## gui package — put HyDE's script dir on the *session* PATH: the compositor and
|
||||
## everything it spawns directly (raw exec binds, terminals) resolve bare hyde
|
||||
## script names through it. Nothing else adds it — HyDE only self-bootstraps PATH
|
||||
## inside its own wrappers (hyde-shell/app.sh), so a bare script name execed
|
||||
## outside that lineage is "command not found" (TROUBLESHOOTING.md symptom 8).
|
||||
## The systemd-unit side is covered by the twin
|
||||
## gui/.config/environment.d/10-hyde-path.conf — both are needed.
|
||||
## No ordering constraint vs hyde.fish (it never touches this dir).
|
||||
fish_add_path --global ~/.local/lib/hyde
|
||||
@@ -0,0 +1,25 @@
|
||||
## gui package — undo the starship prompt that HyDE's fish snippet installs.
|
||||
##
|
||||
## The HyDE 26.x update dropped an untracked ~/.config/fish/conf.d/hyde.fish that
|
||||
## runs `starship init fish | source`. That eagerly defines fish_prompt AND
|
||||
## fish_right_prompt, which shadows our own functions/fish_prompt.fish: fish only
|
||||
## autoloads a function that is not already defined, so ours never loaded and
|
||||
## every new shell came up with starship's prompt.
|
||||
##
|
||||
## conf.d is sourced alphabetically, so this file must sort AFTER hyde.fish to
|
||||
## undo it — hence zz-.
|
||||
##
|
||||
## Note it *sources* our prompts rather than erasing starship's: `functions --erase`
|
||||
## on an autoloadable name also suppresses the autoload, which leaves the shell
|
||||
## with no fish_prompt at all ("Unknown command: fish_prompt"). Defining ours over
|
||||
## the top is what actually wins — for fish_right_prompt too, since common ships
|
||||
## functions/fish_right_prompt.fish (the git-status right prompt).
|
||||
##
|
||||
## Nothing else from hyde.fish is undone here: its aliases lose to config.fish,
|
||||
## which fish loads after conf.d, and its `df` wrapper is a function we do not
|
||||
## otherwise define. Delete this file if you ever decide you want starship.
|
||||
for f in fish_prompt fish_right_prompt fish_mode_prompt
|
||||
if test -r $__fish_config_dir/functions/$f.fish
|
||||
source $__fish_config_dir/functions/$f.fish
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,3 @@
|
||||
function fish_mode_prompt --description "Displays the current vi mode"
|
||||
fish_default_mode_prompt
|
||||
end
|
||||
Reference in new issue
Block a user