install/uninstall: write windowrules to hyprland.conf
Walker would launch NO-CODER fullscreen instead of floating because the windowrules block was written to ~/.config/hypr/windows.conf — a file Hyprland never sources. Omarchy's hyprland.conf only sources the *system* windows.conf under ~/.local/share/omarchy/default/hypr/, so any rules in a user-level windows.conf were silently ignored. Point HYPR_CONF at ~/.config/hypr/hyprland.conf instead. The marker-block append/strip logic stays the same and remains idempotent across re-runs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b6e741da02
commit
7d66dcac87
2 changed files with 9 additions and 2 deletions
|
|
@ -22,7 +22,14 @@ BIN_DIR="$HOME/.local/bin"
|
||||||
DESKTOP_DIR="$HOME/.local/share/applications"
|
DESKTOP_DIR="$HOME/.local/share/applications"
|
||||||
HICOLOR_DIR="$HOME/.local/share/icons/hicolor"
|
HICOLOR_DIR="$HOME/.local/share/icons/hicolor"
|
||||||
INSTALL_DIR="$HOME/.local/share/nocoder"
|
INSTALL_DIR="$HOME/.local/share/nocoder"
|
||||||
HYPR_CONF="$HOME/.config/hypr/windows.conf"
|
# Append the windowrules block to hyprland.conf because that's the file
|
||||||
|
# Hyprland actually reads. Omarchy's `~/.config/hypr/hyprland.conf` sources
|
||||||
|
# its own defaults plus the user's `bindings.conf` / `monitors.conf` / etc.,
|
||||||
|
# but it does NOT auto-source a `~/.config/hypr/windows.conf` — Omarchy's
|
||||||
|
# windows.conf lives under `~/.local/share/omarchy/default/hypr/windows.conf`,
|
||||||
|
# which we must not modify (it's overwritten by `omarchy-update`). Writing
|
||||||
|
# our rules to the user's hyprland.conf is the simplest, idempotent path.
|
||||||
|
HYPR_CONF="$HOME/.config/hypr/hyprland.conf"
|
||||||
|
|
||||||
MARK_BEGIN="# >>> nocoder windowrules begin"
|
MARK_BEGIN="# >>> nocoder windowrules begin"
|
||||||
MARK_END="# <<< nocoder windowrules end"
|
MARK_END="# <<< nocoder windowrules end"
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ DESKTOP_DIR="$HOME/.local/share/applications"
|
||||||
HICOLOR_DIR="$HOME/.local/share/icons/hicolor"
|
HICOLOR_DIR="$HOME/.local/share/icons/hicolor"
|
||||||
INSTALL_DIR="$HOME/.local/share/nocoder"
|
INSTALL_DIR="$HOME/.local/share/nocoder"
|
||||||
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/nocoder"
|
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/nocoder"
|
||||||
HYPR_CONF="$HOME/.config/hypr/windows.conf"
|
HYPR_CONF="$HOME/.config/hypr/hyprland.conf"
|
||||||
|
|
||||||
MARK_BEGIN="# >>> nocoder windowrules begin"
|
MARK_BEGIN="# >>> nocoder windowrules begin"
|
||||||
MARK_END="# <<< nocoder windowrules end"
|
MARK_END="# <<< nocoder windowrules end"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue