dutaahmad/nothing-on-lid-close ? reverse-engineered prompt

Reverse engineered prompt

Build me a GNOME 50 extension that lets me switch my laptop lid close behavior between the normal suspend action and do nothing, so it keeps running with the lid closed.

I want a simple toggle in the top right system menu, and when it’s turned on it should fully disable lid close behavior by setting the power setting to do nothing, turning off screen locking, and blocking logind from handling the lid switch. When it’s turned off, it should go back to the default suspend behavior and restore locking.

If it makes sense, also include a small command line helper so I can run commands like on, off, toggle, and status from the terminal. Keep it easy to install and use, and make sure it works cleanly on GNOME Shell 50+. If you need to check current GNOME extension docs or APIs, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab