arelange / gnome-shell-extension-hibernate-status

Gnome Shell extension that adds a hibernate/hybrid suspend button in Status menu.
GNU General Public License v2.0
156 stars 58 forks source link

[Feature Request] hybrid sleep optional #78

Closed benintech closed 11 months ago

benintech commented 2 years ago

Please add an option to disable the Hybrid Sleep entry

40417256 commented 2 years ago

Please remove this option, there is nothing such as hybrid sleep in Linux, or make it configurable (option to remove the menu item).

Thank you

40417256 commented 2 years ago

Ok, for those who want do do it manually, edit extension.js line 91, comment out and paste line 89

to become:

/ asyncCallback(result[0] != 'no');/ asyncCallback(false);

Menu entry in not present anymore.

Have a better day, and thanks to the author for this nice extension.

jibsaramnim commented 2 years ago

I dabbled with this a bit, I need to clean up what I made a bit but I'm happy to provide a PR if there's interest in this @p91paul?

p91paul commented 2 years ago

I would gladly accept a PR for this, thanks!