Omahub
← All plugins
H

Idle

by Hao Dong

Set screensaver and lock timeouts for plugged-in and battery, then apply them from the current power source.

Security review

No obvious issues detected

Deterministic scan — not a security guarantee

None
Risk level
None
Analyzed commit
7123449
Scanned
1 month ago

No potentially dangerous behavior detected in the analyzed commit.

Automated analysis only — not a security guarantee.

AI advisory review

No obvious issues detected

Language-model assessment · ~deepseek/deepseek-v4-flash-latest — advisory only

None
AI risk level
None
Recommendation
install
Model
~deepseek/deepseek-v4-flash-latest
Analyzed commit
7123449
Reviewed
1 month ago

Manual review found no malicious or dangerous behavior: the plugin only reads UPower state and mutates Omarchy idle/screensaver settings in the shell config, with no shell commands, network access, persistence, or obfuscation. The deterministic scan also found no issues, and the sampled code matches the documented functionality.

How this check works

This review combines the deterministic scan (the rule-based results above) with an independent look at the plugin's code by a language model. The model reads a trimmed sample of the repository's files, the manifest, and the README, then gives a plain-language risk level and a recommendation: install (no notable danger), review (look closer first), or avoid (clearly dangerous).

It runs on the same analyzed commit as the deterministic scan and is strictly advisory — it is not a security guarantee and never blocks a plugin by itself. A human moderator still reviews plugins before they are listed.

AI advisory only — automated analysis, not a security guarantee.

Install
$ omarchy plugin add https://github.com/h-dong/omarchy-idle --enable
Widgets #bar #power-management

Idle

An Omarchy Quattro plugin that lets you configure idle timeouts on AC power and shorter ones on battery.

Default Settings
Default view Settings

Omarchy itself only has single idle.screensaver and idle.lock values. This plugin keeps a bar icon in the top right and a headless service inside omarchy-shell. The service watches UPower and writes those values from:

  • idle.screensaverOnAc / idle.lockOnAc when plugged in
  • idle.screensaverOnBattery / idle.lockOnBattery when on battery

Lock and screensaver defaults match Omarchy: 300 seconds (5 minutes) to lock, 150 seconds to screensaver, for both plugged-in and battery until you change them in the panel.

Enabling the plugin is consent for it to update idle.screensaver and idle.lock when the power source changes. It does not start a second Quickshell process.

Install

omarchy plugin add https://github.com/h-dong/omarchy-idle.git --enable

The icon lands in the bar's right section. Move it with:

omarchy bar move h-dong.idle --section right

If you already had the service enabled before the bar icon existed:

omarchy bar put h-dong.idle --section right

Usage

The bar shows an icon for the next screensaver or lock. Click it to open the panel. Use the gear for settings: a bar countdown toggle (off by default), screensaver toggles, and lock times. When the bar countdown is on, it shows as a leading minus, like -1:00:00. Escape goes back, then closes the panel. Plug in or unplug and the matching timeouts apply automatically. Stay awake hides the countdown because neither event will fire.

Configure

The panel writes seconds into ~/.config/omarchy/shell.json:

{
  "idle": {
    "screensaverEnabledOnAc": true,
    "screensaverEnabledOnBattery": true,
    "showCountdownOnBar": false,
    "screensaverOnAc": 150,
    "screensaverOnBattery": 150,
    "lockOnAc": 300,
    "lockOnBattery": 300
  }
}

Turning screensaver off keeps the saved delay and skips the screensaver until lock. While it is on, screensaver can match lock; it is applied one second before lock so they do not fire together.

If a change does not apply immediately, run omarchy restart shell.

Update

omarchy plugin update h-dong.idle

Remove

omarchy plugin remove h-dong.idle

Removal disables the service, removes the bar icon, and deletes ~/.config/omarchy/plugins/h-dong.idle/. It also restores Omarchy's stock idle.screensaver (150 seconds) and idle.lock (300 seconds) and drops this plugin's extra idle.* keys.

License and dependencies

MIT. See LICENSE.

This plugin does not need extra packages, sudo, pkexec, installers, or a second Quickshell process. It uses Quickshell's bundled UPower integration, which ships with Omarchy.

Plugins run as unsandboxed code inside omarchy-shell. Review third-party plugin code before enabling it.

Development

omarchy plugin validate .
qmllint -I "$OMARCHY_PATH/shell" ./Service.qml ./Panel.qml