docs(binds): persistence warning for hyprctl#1218
Open
sand4rt wants to merge 1 commit intohyprwm:mainfrom
Open
docs(binds): persistence warning for hyprctl#1218sand4rt wants to merge 1 commit intohyprwm:mainfrom
sand4rt wants to merge 1 commit intohyprwm:mainfrom
Conversation
fufexan
reviewed
Sep 9, 2025
| {{< callout type=warning >}} | ||
|
|
||
| Reloading the config removes `hyprctl keyword` commands set in the switches. To make them persistent, add: | ||
| `exec = sh -c 'if [ $(hyprctl monitors | grep -c "Monitor") -gt 1 ]; then hyprctl keyword monitor "eDP-1, disable"; fi'` |
Member
There was a problem hiding this comment.
This should be in a codeblock (```ini)
Contributor
Author
There was a problem hiding this comment.
Vaxerski proposed this solution instead of the exec: hyprwm/Hyprland#11583 (reply in thread):
i have to try it out first:
# settings.conf
$ENABLE_LAPTOP = 1
$ENABLE_DESKTOP =
# hyprland.conf
source = ./settings.conf
# hyprlang if ENABLE_LAPTOP
monitor = eDP-1, ....
# hyprlang endif
# hyprlang if !ENABLE_LAPTOP
monitor = eDP-1, disable
# hyprlang endif
# ... other monitors similarlythen you can have a watcher script / toggle / whatever that writes to settings.conf. These changes will be dynamically picked up
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.
partial fix for: hyprwm/Hyprland#11583 (reply in thread)