KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   


- Content .- Fans  .- Knowledge Base  . 

Kopete Away Message Updater


KDE Other Software

Score 64%
Link:  http://
Minimum required   KDE 3.5.x
Downloads:  757
Submitted:  Jul 22 2006
Updated:  Jan 14 2007


Call this script from the Autostart folder, and it will update Kopete's away message for each interval (requires Kopete 0.12 or higher). The away messages are by default defined in ~/.kopete-away-msgs . Each line can contain either:

- a comment (starting with a #)
- flags message

The flags define some properties to each away message. Flags are defined
only at the start of the line, beginning and ending with a %. The following
flags are supported.

[0-9]*[smhd] Determines how long this message should be shown before a
new one is chosen. This is the sleep(1) syntax.
a Only show this message when you're away.
c This line is a command, use it's output as away message.
f Fortune mode. Picks a random line from a file and displays it.
i Show the contents of a file, line by line. The message should
contain the path to the file. Do not use ~ but use /home/$USER instead.
Empty lines in the included file are skipped.
n Use the next message in the file for the next iteration.
o Only show this message when you're online.
x Don't use this message when looking for a random message. This
means this line is only accessible when the former line contains
the n flag.
- Show the message less than normal times
-- Show the message even more less
--- Show the message sometimes

Example ~/.kopete-away-msgs file:

# Sometimes, show uptime for one minute
%1mc--% uptime

# Fortune rocks, but don't pick too long messages (the length of away
# messages is limited).
%2mc% fortune -s -n 120

# just show Hello world for the default interval
Hello world

# Show a away message for 60 seconds.
%a60% I'm away now.

# Ask people to say something when you're online
%o% Please message me!

# Show all contents of the Linux README line by line. Show each line for
# 3 seconds.
%3i% /usr/src/linux/README

# Tell a little story when I'm away. These lines must emerge in the
# right order, so mind the n and x flags! The x flags make sure we don't
# start in the middle of the story. And, show each line for about 5
# seconds.
%na5% Goodbye, all you people,
%nax5% There's nothing you can say
%nax5% To make me change my mind.
%ax5% Goodbye.


There are two ways of determining your online status:

1) Patched Kopete (direct status check)
Apply the patch in KDE Bug 117962
(http://bugs.kde.org/attachment.cgi?id=18979&action=view) to the Kopete source
in the KDE 3.5 branch. This will add DCOP calls used by this script to
directly query your online status.

2) Webstatus Plugin (indirect status check)
To determine your online status, you need to have the Web Presence plugin
enabled. By default, it reads the file ~/.webstatus.xml. Adapt the variable
below if you store the file somewhere else. The script won't do anything when
you're offline or partially away (that is, some protocols are Away, some
protocols are Online).
Because the web status plugin is used, the process of retrieving the current
webstatus is not really reliable. It may happen that you turn back to online
when you set the status on Away in a short time. If this doesn't happen in
about 10 seconds after the status change, you may consider the status change
as successful.


o Ability to query the online/away status directly from Kopete (DCOP). This requires a patched Kopete, see the description for more details on how to proceed.
o Fortune mode: Pick a random line from a given text file.
o First check the online/away status to prevent unnecessary command calls.
o Various bugfixes

(Patch for Kopete 0.12.3)
Send to a friend
Other  Apps  from bram85
Report inappropriate content

Add commentBack

How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

 Who we are
More about us
Frequently Asked Questions
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Sponsor us
Report Abuse

Copyright 2003-2016 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.