shell
shell copied to clipboard
Suspend screen below 5% battery & improve idle/wake behavior
Request the following feature and behavior improvements:
- Battery Level Handling When the battery level drops below 5%, the system should: Suspend the screen automatically to conserve power. Notify the user with a warning that the battery is critically low.
- Idle Screen Suspension The screen should automatically suspend when the user is idle for a configurable period of time.
- Wake Behavior There should be an option to always allow wake from suspended screen (via keyboard, mouse, power button, etc.). A toggle to enable or disable the "always wake" feature from settings.
- Icon Behavior in the panel The relevant icon (e.g., screen/power/wake status) should be disabled or hidden when "always wake" is enabled to reduce confusion or clutter.
Request the following feature and behavior improvements:
1. Battery Level Handling When the battery level drops below 5%, the system should: Suspend the screen automatically to conserve power. Notify the user with a warning that the battery is critically low. 2. Idle Screen Suspension The screen should automatically suspend when the user is idle for a configurable period of time. 3. Wake Behavior There should be an option to always allow wake from suspended screen (via keyboard, mouse, power button, etc.). A toggle to enable or disable the "always wake" feature from settings. 4. Icon Behavior in the panel The relevant icon (e.g., screen/power/wake status) should be disabled or hidden when "always wake" is enabled to reduce confusion or clutter.
- This is planned
- This should actually be the case right now, it's just that if you have
sway-audio-idle-inhibit-gitinstalled and running (which the config autostarts), it will take thecavaprocess that the shell spawns to be an audio source and therefore inhibit idle behaviour. This is an upstream issue withsway-audio-idle-inhibit. I put in a PR to fix it, but it hasn't been merged yet. 3 & 4. Could you please elaborate on what you mean by these? I don't really get it
Request the following feature and behavior improvements:
1. Battery Level Handling When the battery level drops below 5%, the system should: Suspend the screen automatically to conserve power. Notify the user with a warning that the battery is critically low. 2. Idle Screen Suspension The screen should automatically suspend when the user is idle for a configurable period of time. 3. Wake Behavior There should be an option to always allow wake from suspended screen (via keyboard, mouse, power button, etc.). A toggle to enable or disable the "always wake" feature from settings. 4. Icon Behavior in the panel The relevant icon (e.g., screen/power/wake status) should be disabled or hidden when "always wake" is enabled to reduce confusion or clutter.1. This is planned 2. This should actually be the case right now, it's just that if you have `sway-audio-idle-inhibit-git` installed and running (which the config autostarts), it will take the `cava` process that the shell spawns to be an audio source and therefore inhibit idle behaviour. This is an upstream issue with `sway-audio-idle-inhibit`. I put in a PR to fix it, but it hasn't been merged yet. 3 & 4. Could you please elaborate on what you mean by these? I don't really get it
2nd didn't work for me, that's why I suggested it
What I meant is similar to how caffeine-ng works — when enabled, it prevents the screen from suspending and keeps the system awake.
So for the "Wake Behavior" part:
I was suggesting a toggle to always allow wake from suspend (via keyboard, mouse, etc.), and
An option similar to caffeine-ng, where you can prevent suspend entirely when needed.
And for the "Icon Behavior in the panel":
I meant that when the "always wake" or "keep awake" feature is enabled, the UI could hide or disable certain screen/power-related icons to reduce confusion (like not showing a “suspend” icon if suspend is disabled).