You are not logged in.

#1 2013-07-08 09:13:38

farmerdave
Member
Registered: 2011-11-23
Posts: 114

Pidgin away-on-lock for xscreensaver

I am using pidgin and xscreensaver, and I want the behaviour that when I lock the screen with "$ xscreensaver-command -lock" (which I have assigned to a custom keystroke) that pidgin first sets my status to "away". Second, when I unlock the screen my pidgin status becomes "available". I currently have the custom keystroke to simply execute a script with

#!/bin/sh
sh -c "/usr/bin/purple-remote setstatus?status=away && xscreensaver-command -lock"

The trouble with this is that it does nothing for when I unlock the screen, I must manually set pidgin status to "available".

This wiki entry for pidgin suspend makes me think that the systemd unit file could be modified so that instead of setting your status offline before suspending or hibernating, it could do it just before xscreensaver locks the screen. Trouble is, I don't think there is an equivalent "sleep.target" for xscreensaver.

Is it possible to modify this systemd unit file to achieve what I want?

Offline

#2 2013-07-08 10:18:22

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: Pidgin away-on-lock for xscreensaver

Dunno about modding the service file but what you're asking for seems to be a gap in the upstream code for pidgin.  Have you considered opening a bug report upstream?

Offline

#3 2013-07-08 10:34:45

farmerdave
Member
Registered: 2011-11-23
Posts: 114

Re: Pidgin away-on-lock for xscreensaver

There is a plugin called away-on-lock but it only works for gnome-screensaver and kscreensaver. Apparently it relies on dbus to advertise the system status.

Offline

Board footer

Powered by FluxBB