Keep MacBook on when closed without keyboard and mouse
22545
Prevent Mac to sleep when lid closed on Mojave / Catalina
16921
How to turnoff screen / lock Macbook Pro with touch bar using keyboard?
59149
Keyboard shortcut to lock the screen on macOS 10.14 Mojave?
156053
How to force Mac window to foreground?
92207
GNOME: disable sleep on lid close
75106
is it safe to unplug a USB drive while Windows is in sleep/hibernate/off mode?
11497
How can I tell Ubuntu to do nothing when I close my laptop lid?
6341
Ubuntu 17.10 and later: Don't suspend when lid is closed, just lock screen
102982
How can I prevent my computer from waking up accidentally?
91893
Run VirtualBox in background, without a window?
57925
How do I lock my screen without making it sleep on macOS 10.11.3?
37017
How can I put the computer to sleep from Command Prompt/Run menu?
138665
How to run a command before the machine automatically shuts down?
61779
Disable mouse (not touchpad!) in Xorg while idle
55977
How often should one shutdown a MacBook instead of just closing the lid?
18593
Binding a keyboard shortcut to shut down
53562
Force "low power mode" on mac