From cf7ee1f7816fead6f11fbda18f980d8d20dec475 Mon Sep 17 00:00:00 2001 From: Torwag Date: Wed, 7 May 2025 14:22:20 +0200 Subject: [PATCH] Update README.md This adds a little top row line to the sway bar entering the present mode, which guides the user through the different available options. Same like it is done for the sway system mode. Helps users, which might not remember the key shortcuts. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e6bdfcb..be84d21 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,8 @@ The [`scripts/`](scripts/) folder contains examples on how `wl-mirror` can be us The following keybindings shortcuts can be used in your sway config. ``` -mode "present" { +set $mode_present Present: (m) start mirror, (o) set-output, (r) set-region, (Shift-r) unset-region, (s) set-scaling, (f) toggle-freeze, (c) custom settings +mode "$mode_present" { # command starts mirroring bindsym m mode "default"; exec wl-present mirror # these commands modify an already running mirroring window @@ -126,7 +127,7 @@ mode "present" { bindsym Return mode "default" bindsym Escape mode "default" } -bindsym $mod+p mode "present" +bindsym $mod+p mode "$mode_present" ``` This requires `wl-mirror`, the `wl-present` script, `pipectl` (optional),