From cb761a3b3268d2eb394bb7392f571b72c3285dda Mon Sep 17 00:00:00 2001
From: Ryan Kavanagh <rak@rak.ac>
Date: Tue, 24 Dec 2024 15:22:46 -0500
Subject: better wofi-window-switcher

---
 bin/executable_wofi-window-switcher | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'bin/executable_wofi-window-switcher')

diff --git a/bin/executable_wofi-window-switcher b/bin/executable_wofi-window-switcher
index 6b9e310..2344093 100644
--- a/bin/executable_wofi-window-switcher
+++ b/bin/executable_wofi-window-switcher
@@ -4,7 +4,7 @@
 swaymsg -t get_tree | \
     jq -r '.nodes[].nodes[] | 
 	if .nodes then [recurse(.nodes[])] else [] end  + .floating_nodes |
-	.[] | select(.nodes==[]) | ((.id | tostring) + " " + .name)' | \
+            .[] | select(.nodes==[]) | ((.id | tostring) + " [" + (.app_id // .window_properties.class) + "] " + .name)' | \
     grep -v __i3_scratch |
     wofi -d -i | {
 	read -r id name
-- 
cgit v1.2.3