-
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
No audio detection (Pipewire support) #62
Comments
Would be nice if someone who uses pipewire could implement a new module. The pulse module should be a useful template for how it could work |
It seems that pipewire now supports this correctly and while audio is playing caffeine activates automatically |
@Meister1593 |
a lot of stuff happened in a while and unfortunately author of this tool passed away |
Thank you. I just read the text from Jackpot51 about it. That is sad. |
Very sad to hear about jD91mZM2 😢 For those who want to keep using
If you run xidlehook --socket /tmp/xidlehook.sock --not-when-audio --timer 600 "$HOME/bin/lock-screen" "" & ... then you could reset the timer checking for running sinks manually: #
# Abort if there are any kind of sinks running (music audio, meetings, etc.)
#
echo "Checking running sinks..."
RUNNING_SINKS=$(pactl list short sinks | grep -c RUNNING)
if [ $RUNNING_SINKS -gt 0 ]; then
echo "There are $RUNNING_SINKS running sinks. Aborting lock screen."
xidlehook-client --socket /tmp/xidlehook.sock reset-idle
else
echo "No running sinks. Locking screen..."
# lock screen using i3lock or whatever program you would normally use
fi The important piece here is the use of |
So issue is explained by title,
xidlehook
can't work withpipewire
and simply does not detect any audio.Pipewire
has pulse module, most likely issue is that it haven't implemented 100% of pulse api.I don't know exactly what would be better: to
pipewire
handle pulse methods properly or to implementpipewire
support inxidlehook
.In first case, i think would be nice to know what part of
libpulse
has to be implemented to work properly with audio levels (or what is used insidexidlehook
to detect audio)In second case, there is two options: either to implement it through
libpipewire
, or to implement it through something that works with bothpulse
and withpipewire
throughlibpulse
(which is implemented in pipewire throughpipewire-pulse
).Either way, it would be nice to have such support.
The text was updated successfully, but these errors were encountered: