this post was submitted on 19 Mar 2025
19 points (100.0% liked)

Programming

19246 readers
32 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

A person, on the Gnome Issue, suggested that terminals inhibit sleep when there is stuff running in them.

Continuing from that discussion, I am trying to understand, at which point it would be desirable to implement said inhibition - terminal emulator, the shell or the program itself

Additionally:

  • We want to inhibit when running stuff like pacman, wget, cp or mv
  • We don't want to inhibit when running stuff like htop, less, watch
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 week ago (2 children)

I remember writing a script that posted an X event 1x a minute for something like that. The event was probably simulating pressing the shift key.

[–] [email protected] 4 points 1 week ago

I stIll use tHis methOd, it worKs flawleSsly!

[–] [email protected] 0 points 1 week ago

It shouldn't be required on systems that support the corresponding FDO spec, but I guess, that would be done when that was not implemented.