On Wed, May 31, 2006 08:49:45PM +0200, Heine Andersen wrote:
> Hi,
>
> Is there any easy way to move between named tags.
> I mean somethink like konsole where you can jump between,
> screen's using ctrl + mod + arrow keys ?
I have written this for that purpose:
#select next view to the current from a list of tags
adjacent() {
active_tag=`wmiir read /view/name`
index=1
for i in "$@" ; do
(( index += 1 ))
if [ "$i" == "$active_tag" ]; then
if [ $index -gt $# ]; then
xwrite /ctl view "$1"
else
xwrite /ctl view "${!index}"
fi
return
fi
done
}
next() {
adjacent `wmiir read /tags`
}
prev() {
adjacent `wmiir read /tags | tac`
}
...
$MODKEY-$RIGHT)
next ;;
$MODKEY-$DOWN)
xwrite /view/sel/ctl select next;;
$MODKEY-$UP)
xwrite /view/sel/ctl select prev;;
...
-- Ivan F. Villanueva B. A.I. library: http://www.artificialidea.com <<< The European Patent Litigation Agreement (EPLA) >>> <<< will bring Software patents by the backdoor >>> <<< http://www.no-lobbyists-as-such.com/florian-mueller-blog/epla/ >>> <<< http://wiki.ffii.de/EplaEn >>>Received on Sun Jun 04 2006 - 21:18:27 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:07:46 UTC