clean up window titles

This commit is contained in:
John Mertz 2022-09-23 18:25:32 -04:00
parent c1e205b251
commit 49925afc61
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
#!/bin/bash
swaymsg -t get_tree |
jq -r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | .[] | select(.nodes==[]) | if .app_id then ((.app_id | tostring) + " -- " + .name) else .name end' |
grep -v '__i3_scratch' |
sed -e 's/\([^\-]\)\- *[^\-]*$/\1/' |
grep -v __i3_scratch |
sed -e 's/^.*\-\- \(.*\)$/\1/' |
sed -e 's/^\(.*\) [—-] .*$/\1/'|
sed -e 's/^\([0-9]*\)\t*\(.*\)/\2 \1/' |
wofi -I -s /home/jpm/.dotfiles/wofi/style.css -c \
$HOME/.dotfiles/wofi/sidebar --show dmenu | {