HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
pirj
noclamshell
Shell2022–2026
pirj / noclamshell

noclamshell

Sleep despite annoying clamshell mode

2Distinct people
2Mentions
0Explicit recommenders
578GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Sleep despite annoying clamshell mode

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year2 dated mentions

Observed mentions: 2022-02-05 20:28:39 UTC to 2026-07-12 22:11:47 UTC.

012022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20242025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC101
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC000
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC000
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC110

What Hacker News says

2 sources

Show HN: Sleep external displays connected to a MacBook after closing lid

LidWatch listens to the lid state of your laptop and does not allow the default clamshell behaviour where external displays stay awake if connected to a power source. My previous solution included yanking the display cable out every time I wanted to close the lid and then plugging it back in. After looking for an easy solution, I tried https://github.com/pirj/noclamshell but I didn't like the approach it took where it basically polled every 2 seconds and reacted to the lid state at the time of the poll. This + using a stale state reading led to a bug where it activated sleep mode with the lid open. I also did not want to install an app as I see this as a lightweight utility your turn on and forget, not something taking up menu bar space. The way it works is by listening to native macOS state for power, external displays and the lid positi
Read the rest
on, resulting in a noop if no power of external display is connected or sending the external display to sleep if all conditions are met. The cable still continues to charge the battery even with the lid closed.
3 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.