Skip to content

peterhass/media-sleep-inhibitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

media-sleep-inhibitor

Most applications inhibit sleep through loginctrl on their own but seems like spotify devs decided against it. This small service waits for the spotify dbus service to appear, inherits sleep when media is playing and releases the sleep lock when it is paused.

Install

# Install deps
sudo pacman -S python-dasbus

# Allow user services
loginctl enable-linger

# Go for gold
make install

Run spotify and check systemd-inhibit --list.

Troubleshooting

Try the journal: journalctl --user -u media-sleep-inhibitor.service -f

About

Inhibits sleep while spotify is playing media

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published