https://github.com/oz/dbus_away
An irssi script to change your away status when your screensaver is active (DBus only).
https://github.com/oz/dbus_away
Last synced: about 2 months ago
JSON representation
An irssi script to change your away status when your screensaver is active (DBus only).
- Host: GitHub
- URL: https://github.com/oz/dbus_away
- Owner: oz
- Created: 2013-02-23T04:30:42.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-24T18:44:29.000Z (about 12 years ago)
- Last Synced: 2025-03-26T22:04:51.689Z (about 2 months ago)
- Language: Perl
- Homepage: https://github.com/oz/dbus_away
- Size: 113 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
DBus Away
=========A simple Irssi script that sets your IRC status away when your computer's
screensaver is activated (and resets that once your back).This could be prettier if Irssi would let me use `Net::DBus::Reactor` to attach
code to DBus events. Instead of that, I'm polling every N seconds. That's what
you get for using a modern IRC client, and a modern chat protocol. :)Requirements
============* Irssi compiled with perl support,
* Perl's Net::DBus, and an active DBUS session,
* GNOME's screensaver.Don't worry, you should be able to get all of it from ports, or APT, or... Be
smart.Installation
============Grab the source:
```
curl https://raw.github.com/oz/dbus_away/master/dbus_away.pl > ~/.irssi/scripts/dbus_away.pl
```Optionally, symlink it into irssi's `autorun` directory if you want the script
automatically loaded when irssi starts:```
cd ~/.irssi/scripts/autorun
ln -s ../dbus_away.pl
```Load the script, from irssi:
```
/script load dbus_away.pl
```Configuration
=============Only two settings are configurable:
* `poll_interval` sets how often we poll DBus (in seconds). Defaults to 5.
* `away_message` changes the default away message, which is "AFK".Author and License
==================This script is licensed under the GPL v3.
Blame:
* Arnaud Berthomier - I did Perl a long time ago when you were not born.
Now, it's quite rusty. Sorry. :)