Skip to content

u/antidense

In this archive from Jul 2008 to Nov 2026

30
posts
174
comments
3
media
2.2k
score

Top posts

My custom sleep script.

Earlier I posted about a custom sleep script so that my laptop would suspend for a few hours and then automatically wake up and hibernate to disk if not woken up. I was still struggling writing it in bash, so I tried writing in python, and finally got it to work! Here's the script below. I added the...

34 points18 comments
Open on Reddit

Top comments

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.