Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (7 sloc) 275 Bytes
#!/bin/bash
#xprop |awk '
# /^WM_CLASS/{sub(/.* =/, "instance:"); sub(/,/, "\nclass:"); print}
# /^WM_NAME/{sub(/.* =/, "title:"); print}'
xprop | sed -n '
/^WM_CLASS/s/.* = "\(.*\)", "\(.*\)"/instance: \1\nclass: \2/p;
/^WM_NAME/s/.* = "\(.*\)"/title: \1/p'