Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some ideas #236

Open
GoogleCodeExporter opened this issue Jul 16, 2015 · 0 comments
Open

some ideas #236

GoogleCodeExporter opened this issue Jul 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 8 May 2011 at 1:24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant