From 0d54e5ea4448bac961a66669324616c94ee2e85f Mon Sep 17 00:00:00 2001 From: riChar Date: Sun, 8 Jan 2023 23:35:51 +0800 Subject: [PATCH] Update docs about the bind of switch (#97) --- pages/Configuring/Binds.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/Configuring/Binds.md b/pages/Configuring/Binds.md index a2ff1cd..4b2306d 100644 --- a/pages/Configuring/Binds.md +++ b/pages/Configuring/Binds.md @@ -100,7 +100,12 @@ bind=SUPER,mouse_down,workspace,e-1 Useful for binding e.g. the lid close/open event: ```ini +# trigger when the switch is toggle bindl=,switch:[switch name],exec,swaylock +# trigger when the switch is turning on +bindl=,switch:on:[switch name],exec,hyprctl keyword monitor "eDP-1, 2560x1600, 0x0, 1" +# trigger when the switch is turning off +bindl=,switch:off:[switch name],exec,hyprctl keyword monitor "eDP-1, disable" ``` check out your switches in `hyprctl devices`.