Commit graph

7 commits

Author SHA1 Message Date
Josh Megnauth
bb087578df
Prevent screen turning off during playback
Closes: #157

XDG portals expose a D-Bus interface allowing apps to prevent screen
idling, user switching, and other actions. That interface,
org.freedesktop.portal.Inhibit, does all of the heavy lifting here.

Idling = the screen dimming or shutting off.

Idling is inhibited when a video is actively playing.
Idling is NOT inhibited when videos aren't playing - this includes
paused or stopped videos.
2025-11-13 13:26:23 -05:00
Josh Megnauth
27ea8d2770
Clean up dependencies, lints
`lazy_static` and `smol_str` weren't used. COSMIC Player used `dirs`
once to find the user's home directory. Rust fixed and undeprecated its
`home_dir` function in 1.85, which released earlier this year and is the
MSRV of libcosmic.
2025-11-03 16:12:38 -05:00
Josh Megnauth
04c354584d
Clear recent media button
Closes: #141
2025-10-12 20:28:55 -04:00
Jeremy Soller
841816e8d1
Add tree view, fixes #52, fixes #53 2025-01-24 14:05:50 -07:00
Jeremy Soller
0169cccfa2
Add recent media, part of #53 2025-01-24 12:49:02 -07:00
Jeremy Soller
b26005d780
Move language selection to bottom bar, implement volume 2024-12-05 13:41:58 -07:00
Jeremy Soller
7f9d56ae0c
Add file menu, improve naming of subtitles 2024-12-05 12:20:37 -07:00