Regenerated
This commit is contained in:
@@ -3,7 +3,13 @@
|
||||
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
||||
clients=$(hyprctl clients -j | jq -r \
|
||||
".[] | select(.workspace.id==$active_ws) | \"\(.address)|\(.title)\"")
|
||||
choice=$(echo "$clients" | cut -d'|' -f2 | wofi -dmenu -j -p "Active apps" --style ~/.config/wofi/style.css)
|
||||
|
||||
choice=$(echo "$clients" | cut -d'|' -f2 \
|
||||
| wofi --dmenu \
|
||||
--style ~/.config/wofi/style.css \
|
||||
--allow-images=false \
|
||||
--prompt "Active apps")
|
||||
|
||||
[ -z "$choice" ] && exit 0
|
||||
addr=$(echo "$clients" | grep "|$choice" | head -n1 | cut -d'|' -f1)
|
||||
hyprctl dispatch focuswindow address:$addr
|
||||
hyprctl dispatch focuswindow address:"$addr"
|
||||
|
||||
Reference in New Issue
Block a user