Parent Directory | Revision Log
two script to implmenet pop-up terminal window in dwm
1 | #!/bin/sh -x |
2 | |
3 | name="wmrxvt-popup" |
4 | term="rxvt -geometry 100x30+100-0 -name $name -fn neep-alt-iso8859-2-24 -rv +sb -n $name -ls -e dwm-popup-term" |
5 | |
6 | if [ ! -e /tmp/popup.id ] ; then |
7 | $term |
8 | else |
9 | id=`cat /tmp/popup.id` |
10 | info=`xwininfo -id $id` |
11 | echo "*** $id ***" |
12 | test ! -z "$info" && ( |
13 | op="-unmap" |
14 | echo $info | grep 'Map State: IsViewable' > /dev/null || op="-pop" |
15 | xwit $op -id $id |
16 | ) || $term |
17 | fi |
Name | Value |
---|---|
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.26 |