AvengeMedia / AvengeMedia/DankMaterialShell

Keep Awake even when lid is closed

Open
#2,836 0 comments 3 reactions 0 assignees View on GitHub
feature request
Dominant language
QML
Stars
8.1k
Forks
515
Avg merge
1d 9h
Merged PRs (30d)
97

Description

### Feature Description

Add an option to `Keep Awake` to also inhibit sleep when closing the lid. And ideally the screen should still turn off as it will save on battery and doesn't need to be on if the lid is closed.

### Use Case

When I want sleep inhibited, it's usually because I want to close the lid of my laptop and take it to go, while it is still running a long-running command.

### Compositor(s)

All compositors

### If Other, please specify

_No response_

### Proposed Solution

_No response_

### Alternatives/Existing Solutions

Right now, I'm still relying on my systemd-inhibit command (`systemd-inhibit --what=sleep --who="$USER" --why="why not" sleep infinity`) until this gets added.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the existing Keep Awake option and its systemd-inhibit integration. Check how lid-close sleep and screen power behavior are handled across the supported compositors; done means the option prevents sleep with the lid closed while still allowing the screen to turn off.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
desktop, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.