ewancoder / wmii

Automatically exported from code.google.com/p/wmii
MIT License
0 stars 0 forks source link

some ideas #236

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Is there a possibility to set geometry positions through wmiir?

------

I thought it could be usefull to post some ideas from my wmiirc

# MAKE APP STICKY
STICKY_TAG="s"
Event CreateTag
       echo "$WMII_NORMCOLORS" "$@" | wmiir create "/lbar/$@"
       if [ $@ != "$STICKY_TAG" ]; then
               for win in `wmiir read "/tag/${STICKY_TAG}/index" | sed '/^#/d' |
awk '{print $2}'`;
               do
                       wmiir xwrite "/client/${win}/tags" $(wmiir read "/client/${win}/tags") "+$@"
               done
       fi

Key $MODKEY-Shift-s
       wmiir xwrite /client/sel/tags "$(read_tags | tr '\n' '+')" "$STICKY_TAG"

# NOTICE
noticetimeout=10
noticename=!notice
noticebar="/rbar/$noticename"
noticepid="$(wmiir namespace)/notice.pid"
[ -f $noticepid ] && rm $noticepid

Event Notice
       [ -f $noticepid ] && kill `cat $noticepid` >/dev/null 2>&1
       if [ $1 != "!" ]; then
               wmiir xwrite $noticebar $wi_arg
               {
                       sleep $noticetimeout;
                       wmiir xwrite $noticebar ' '
                       [ -f $noticepid ] && rm $noticepid
               } &
               echo $! > $noticepid
       else
               # message starting with ! is permanent
               shift
               wmiir xwrite $noticebar "$@"
       fi

Original issue reported on code.google.com by kernys...@gmail.com on 8 May 2011 at 1:24