From 353a43e2df0b68b37415167ccd2b1b0af369ea11 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 2 May 2013 09:05:57 +0100 Subject: zsh: New version of wprop alias to make class and instance names clearer --- zsh/zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index 7d8915bb..5aba1abf 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 ...='../..' -- cgit 1.4.1