Finish Hyprland Lua migration, untrack generated config outputs
Complete the move from the old .conf-style Hyprland config to Lua: - Drop base.conf, hyprland.conf, monitors.conf and the empty workspaces.conf; base.lua + colors.lua are now the sources. - gen-colors emits hypr/colors.lua globals, build.sh cats it with base.lua into hyprland.lua. - Add .luarc.json so the editor picks up Hyprland's Lua stubs. - Correct the DP-2 monitor position and drop the stale transform. Untrack the build outputs that were gitignored yet still committed (i3/config, sway/config, waybar/style.css, wofi/style.css) so the ignore rules take effect; install.sh already runs gen-colors and each build.sh, so a fresh clone regenerates them. Also regroup .gitignore by what produces each file, refresh the docs for the Lua layout, and drop a stray scratch dump. Carries along in-progress config tweaks: pin the i3 keyboard layout, make the nerd-dictation toggle match on the full command, drop the X11-only DP-2 rotate, and add a clangd LSP setup for nvim. Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
+5
-4
@@ -16,15 +16,16 @@ while IFS='=' read -r key value; do
|
||||
eval "color_$key=$value"
|
||||
done <"$SRC"
|
||||
|
||||
# Hyprland: $color_name = rgb(HEXVAL) format (no #)
|
||||
# Hyprland (Lua): color_name = "rgb(HEXVAL)" globals (no #)
|
||||
{
|
||||
echo "-- Generated by sh/gen-colors from colors.conf. Do not edit."
|
||||
while IFS='=' read -r key value; do
|
||||
case "$key" in \#* | "") continue ;; esac
|
||||
hex="${value#\#}"
|
||||
echo "\$color_$key = rgb($hex)"
|
||||
echo "color_$key = \"rgb($hex)\""
|
||||
done <"$SRC"
|
||||
} >"$SCRIPT_DIR/hypr/colors.conf"
|
||||
echo "Wrote hypr/colors.conf"
|
||||
} >"$SCRIPT_DIR/hypr/colors.lua"
|
||||
echo "Wrote hypr/colors.lua"
|
||||
|
||||
# Sway: set $color_name #HEXVAL
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user