Skip to content

Conversation

@guttermonk
Copy link

Added two features:

  1. Signal input to toggle idle_inhibitor on and off.
    Fixes: Deactivate idle inhibitor programmatically #690

  2. Activity Detection - bool that defaults to false, but when set to true:

    • stays on while keyboard or mouse activity is detected
    • when no input is detected for the duration of the timeout, the idle_inhibitor will turn off

Example config:

"idle_inhibitor": {
  "format": "{icon}",
  "format-icons": {
    "activated": "",
    "deactivated": ""
  },
  "signal": 6,
  "start-activated": true,
  "timeout": 2,
  "tooltip": true,
  "tooltip-format": "Caffeine: {status}",
  "tooltip-format-activated": "Caffeine {status}",
  "tooltip-format-deactivated": "Caffeine {status}",
  "wait-for-activity": true
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deactivate idle inhibitor programmatically

1 participant