-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could --not-when-audio support ALSA ? #37
Comments
Here's the PulseAudio code. I'd be happy to accept a PR adapting it to use ALSA APIs. If neither |
Hmmm... I was afraid that I might have such an answer ; unfortunately, I have no programming knowledge at all, and so I won't be able to help on this. If it would be too much work (I understand it might be the case, of course, I barely have some free time myself) then no problem, let's close this issue. Tell me if you want me to do it, or if you'd prefer to let it open in case someone may find the time to release a PR in the future. Thank you for your search on the Arch wiki ; should I understand that XScreenSaver is involved in the xidlehook code ? Or was it just an example ? (Sorry if this is a dumb question...) My tests with xidlehook did not use XScreenSaver though (in fact, it's not even installed on my PC ; I use a pretty minimalistic Arch Linux installation with Openbox as a simple window manager) ; I was simply using the following code :
Anyway, thanx for your answers ! |
Yeah, better leave it open for anyone looking for ideas :)
xidlehook uses an X extension that's installed by default, XScreenSaver. That's how it checks if you're idle. So yeah, I think you have it installed. And |
No, not installed :
As you can see, it's not marked as "[installed]". |
Can you run |
So, do you mean |
@Dupond Yes, sorry. Can you check if it contains anything related to screen savers? I know you're saying xscreensaver isn't installed, but somehow it must be included in the X build if xidlehook even works in the slightest. Maybe it's only a compile-time dependency? |
Not that I can't see (since Here's the full output of
I don't think xscreensaver has been a compile-time dependency, since I'm 100% sure that I havent uninstalled it since I built xidlehook, and it's not listed on the xidlehook AUR page. |
|
Hello !
First of all, thank you for this really great software. I love it ! Simple and efficient...
xidlehook --help
clearly states that--not-when-audio
is "PulseAudio specific". So, this is a feature request ;) Would it be possible to adapt this module to also work with ALSA-only configurations ?Also, I use mpv as my video player, and have noticed that my xidlehook timers are not triggered when a video is playing, even if it's not fullscreen, and even if I don't use
--not-when-audio
. I've checked (a little) the code, but have not found anything specific to mpv, so I wonder : am I right to assume that xidlehook already knows when a video is played and doesn't trigger its timers when that's the case ? If I do am right, maybe a note could be added in the --help page, or in the README ?Thanx for your help !
The text was updated successfully, but these errors were encountered: