Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
apps:screensaver:dbus [2018/11/22 14:17] – created bluesabre | apps:screensaver:dbus [2018/11/22 16:55] – bluesabre | ||
---|---|---|---|
Line 93: | Line 93: | ||
^ Direction ^ Type ^ Description ^ | ^ Direction ^ Type ^ Description ^ | ||
| out | boolean | If the session is idle | | | out | boolean | If the session is idle | | ||
- | |||
- | '' | ||
- | |||
- | Returns the number of seconds that the session has been idle. Returns zero if the session is not idle. | ||
- | |||
- | ^ Direction ^ Type ^ Description ^ | ||
- | | out | unsigned integer | Idle time in seconds | | ||
===== Signals ===== | ===== Signals ===== | ||
Line 128: | Line 121: | ||
===== Examples ===== | ===== Examples ===== | ||
- | |||
- | You can get the number of seconds the screensaver has been active by running the following: | ||
- | |||
- | < | ||
- | dbus-send --session \ | ||
- | --dest=org.xfce.ScreenSaver \ | ||
- | --type=method_call \ | ||
- | --print-reply \ | ||
- | --reply-timeout=20000 \ | ||
- | / | ||
- | org.xfce.ScreenSaver.GetSessionIdleTime | ||
- | </ | ||
| | ||
You can activate the screensaver like so: | You can activate the screensaver like so: |