summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rwxr-xr-xzsh/zshrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 7d8915b..5aba1ab 100755
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -272,7 +272,9 @@ alias namecoin="~alan/applications/namecoin/src/namecoind"
 alias e="$EDITOR"
 alias E="SUDO_EDITOR=\emacsclient -c -a emacs\" sudoedit"
 alias aticonfig="DISPLAY=:0 \aticonfig"
-alias wprop="xprop | egrep WM_(CLASS|NAME|WINDOW_ROLE|TYPE)"
+alias wprop='xprop |awk '\''
+    /^WM_CLASS/{sub(/.* =/, "instance:"); sub(/,/, "\nclass:"); print}
+    /^WM_NAME/{sub(/.* =/, "title:"); print}'\'''
 
 alias -g ...='../..'