This commit is contained in:
jay committed 2026-04-06 01:21:30 +08:00
1 parent 35abfa07bc
commit 36a51d8127
7 files changed
+93 -15

No files matched your search

@@ -4,12 +4,12 @@ entries=$(swaymsg -t get_tree | jq -r -c '
recurse(.nodes[]?) |
recurse(.floating_nodes[]?) |
select(.type=="con"), select(.type=="floating_con") |
(.id | tostring) + " " + .app_id + ": " + .name')
(.id | tostring) + " " + (.window_properties.class // .app_id) + ": " + .name')
echo "$entries"
selected=$(echo -e "$entries" | wofi --width 450 --height 350 --dmenu --cache-file /dev/null | awk '{print $1}')
if [ -n "$selected" ]; then
swaymsg "[con_id=$selected]" focus
swaymsg "[con_id=$selected]" focus
fi