From 792e009e37c42fe46fde8d20e392097393c0571d Mon Sep 17 00:00:00 2001 From: Sander Date: Sun, 7 Sep 2025 16:55:57 +0200 Subject: [PATCH] docs(binds): persistence warning for hyprctl --- content/Configuring/Binds.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/Configuring/Binds.md b/content/Configuring/Binds.md index 5a8bc598e..0ffd13bb9 100644 --- a/content/Configuring/Binds.md +++ b/content/Configuring/Binds.md @@ -212,6 +212,13 @@ bindl = , switch:on:[switch name], exec, hyprctl keyword monitor "eDP-1, disable bindl = , switch:off:[switch name], exec, hyprctl keyword monitor "eDP-1, 2560x1600, 0x0, 1" ``` +{{< 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'` + +{{< /callout >}} + {{< callout type=info >}} You can view your switches with `hyprctl devices`.