zsh: New version of wprop alias to make class and instance names clearer
Alan Pearce alan@alanpearce.co.uk
Thu, 02 May 2013 09:05:57 +0100
1 files changed, 3 insertions(+), 1 deletions(-)
jump to
M zsh/zshrc → 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 ...='../..'