Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
apps:screensaver:dbus [2018/11/22 14:17] – created bluesabre | apps:screensaver:dbus [2019/11/21 21:51] – added bottom of page navigation kevinbowen | ||
---|---|---|---|
Line 86: | Line 86: | ||
^ Direction ^ Type ^ Description ^ | ^ Direction ^ Type ^ Description ^ | ||
| out | unsigned integer | Active time in seconds | | | out | unsigned integer | Active time in seconds | | ||
- | |||
- | '' | ||
- | |||
- | Returns the value of the current state of session idleness. | ||
- | |||
- | ^ Direction ^ Type ^ Description ^ | ||
- | | 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 111: | Line 97: | ||
^ Direction ^ Type ^ Description ^ | ^ Direction ^ Type ^ Description ^ | ||
| out | boolean | Returns the value of the current state of activity. | | | out | boolean | Returns the value of the current state of activity. | | ||
- | |||
- | '' | ||
- | |||
- | See method GetActive(). | ||
- | |||
- | ^ Direction ^ Type ^ Description ^ | ||
- | | out | boolean | Returns the value of the current state of activity. | | ||
- | |||
- | '' | ||
- | |||
- | Emitted before an authentication request | ||
- | |||
- | '' | ||
- | |||
- | Emitted after an authentication request | ||
===== 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: | ||
Line 161: | Line 120: | ||
</ | </ | ||
- | Or watch for a specific | + | [[|Back To Top]] |
+ | ---- | ||
+ | [[ :apps:screensaver: | ||
- | < | ||
- | dbus-monitor --session \ | ||
- | " | ||
- | </ |