From 12d68bbd01f0129a6037c83b8cbc0a621aa65668 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Tue, 3 Mar 2020 00:48:35 -0800 Subject: [PATCH] Added - escapes --- man/wofi.7 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/man/wofi.7 b/man/wofi.7 index 72f80cd..9a3db17 100644 --- a/man/wofi.7 +++ b/man/wofi.7 @@ -80,13 +80,13 @@ Caching cannot be disabled however the cache file can be set to /dev/null to eff Wofi does not have the ability to do window switching on its own as there is no way to do this with wayland/wlroots protocols however if you're using sway you can use swaymsg with dmenu mode to accomplish it. The following script can be used to do window switching: -swaymsg -t get_tree | +swaymsg \-t get_tree | .br - jq -r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) + "\t" + .name)' | + jq \-r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) + "\t" + .name)' | .br - wofi --show dmenu | { + wofi \-\-show dmenu | { .br - read -r id name + read \-r id name .br swaymsg "[con_id=$id]" focus .br