zlacker

[parent] [thread] 1 comments
1. Doohic+(OP)[view] [source] 2025-07-31 16:05:07
I'm using this instead: https://gist.github.com/mijorus/b9fabea963fabd435139654c6ebe...

Turn off WiFi when going to sleep, turn it back on on wake.

I don't need my laptop to be doing things when it's in my bag. It's not a phone, unlike what Apple seems to think...

replies(1): >>vinnym+Uu
2. vinnym+Uu[view] [source] 2025-07-31 19:02:12
>>Doohic+(OP)
Nice, I might consider forking yours to only do this if the lid is closed, as I leave my laptop open but locked doing things all the time at my desk.

> ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState | head -1

[go to top]