Skip to content

Conversation

nicoestrada
Copy link

No longer have those random key presses to disable sleep enter the hyprlock password fields on wake. Also enable mouse movement to trigger wake

…rd field, as well as mouse movement trigger wake
@dhh dhh changed the base branch from master to dev October 5, 2025 20:11
@dhh
Copy link
Member

dhh commented Oct 5, 2025

This is nice. We need a migration that adds these new rules using sed, so folks with existing configurations don't have them overwritten, but still get these rules.

@nicoestrada
Copy link
Author

Done!

fi

if ! grep -q "key_press_enables_dpms = true" "$CONFIG_FILE"; then
sed -i '$a key_press_enables_dpms = true' "$CONFIG_FILE"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will just append it to the end, so not inside the right listener?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are misc variables and think these should be where the misc hyprland config lives

@nicoestrada nicoestrada force-pushed the fix/key-press-on-wake branch from b730c8e to fdb748f Compare October 6, 2025 20:31
@nicoestrada
Copy link
Author

Since key_press_enables_dpms and mouse_move_enables_dpms are misc variables, I think it might be time to add a misc.conf file for the one place for us to configure misc vars.

Another solution could just add misc{} to another file but think this might be more intuitive down the line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants