summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2013-07-29 14:08:04 +0100
committerAlan Pearce2013-07-29 14:08:04 +0100
commitf26545a8cb75a4aeb0773ac309d8145aeb087d1d (patch)
tree443c6077b581fd55dac8cc464e282367e619a5ec
parent5905ec6debb6dcf9df9843b8f166305c849f0e61 (diff)
downloadnixfiles-f26545a8cb75a4aeb0773ac309d8145aeb087d1d.tar.lz
nixfiles-f26545a8cb75a4aeb0773ac309d8145aeb087d1d.tar.zst
nixfiles-f26545a8cb75a4aeb0773ac309d8145aeb087d1d.zip
zshrc: add X11 window role to wprop alias
-rwxr-xr-xzsh/zshrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 938dcbd9..c017029f 100755
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -275,7 +275,8 @@ alias E="SUDO_EDITOR=\emacsclient -c -a emacs\" sudoedit"
 alias aticonfig="DISPLAY=:0 \aticonfig"
 alias wprop='xprop |awk '\''
     /^WM_CLASS/{sub(/.* =/, "instance:"); sub(/,/, "\nclass:"); print}
-    /^WM_NAME/{sub(/.* =/, "title:"); print}'\'''
+    /^WM_NAME/{sub(/.* =/, "title:"); print}
+    /^WM_WINDOW_ROLE/{sub(/.* =/, "role:"); print}'\'''
 
 alias -g ...='../..'