fix: correct hypridle dispatch syntax and swaybg path in hyprland configs#60
Closed
stanfish06 wants to merge 1 commit into
Closed
fix: correct hypridle dispatch syntax and swaybg path in hyprland configs#60stanfish06 wants to merge 1 commit into
stanfish06 wants to merge 1 commit into
Conversation
…figs
hyprland/hypridle.conf: `hyprctl dispatch 'hl.dsp.dpms({...})'` passes
Lua API syntax as a shell argument — hyprctl dispatch only accepts keyword
commands. Replace with `hyprctl dispatch dpms off/on`.
hyprland/hyprland.lua: swaybg autostart had a double `-i swaybg -i ...`
typo and hardcoded `Git/my-configs/` path. Use stable `~/.config/hypr/wallpaper.jpg`
(symlink once at deploy time: `ln -sf ~/Git/my-configs/img/bw_geometry.png ~/.config/hypr/wallpaper.jpg`).
https://claude.ai/code/session_01ME1dkChBv2iqPdD1ZGPoVz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two bugs introduced in the May 15 hyprland Lua migration.
1.
hyprland/hypridle.conf— wrong dispatch syntax (compatibility break)hyprctl dispatchtakes keyword-based commands (dpms off,dpms on), not Lua API expressions. Thehl.dsp.dpms({...})syntax only works insidehyprland.luaitself — passing it as a shell argument tohyprctl dispatchwould silently fail, leaving DPMS non-functional.2.
hyprland/hyprland.lua— double-itypo + hardcoded repo pathThe swaybg autostart line had
-i swaybg -i Git/my-configs/img/bw_geometry.png— "swaybg" was being passed as the image path (copy-paste artifact from the command name), and the path assumed the repo is cloned at~/Git/my-configs/.~/.config/hypr/wallpaper.jpgis a stable, location-independent path. Wire it up once at deploy time:(Same pattern used in PR #47 for the i3 wallpaper path.)
Test plan
hyprctl dispatch dpms off— display turns offhyprctl dispatch dpms on— display turns onhypridlerunning — display turns off after 10 min idle~/.config/hypr/wallpaper.jpghttps://claude.ai/code/session_01ME1dkChBv2iqPdD1ZGPoVz
Generated by Claude Code