aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2024-12-24 15:22:46 -0500
committerRyan Kavanagh <rak@rak.ac>2024-12-24 15:22:46 -0500
commitcb761a3b3268d2eb394bb7392f571b72c3285dda (patch)
treebcbd22c53d5bf6704a8a8b2e5eab22e61f9e30f1
parentresign ssh (diff)
better wofi-window-switcher
-rw-r--r--bin/executable_wofi-window-switcher2
1 files changed, 1 insertions, 1 deletions
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