ErikReider / SwayAudioIdleInhibit

GNU General Public License v3.0
160 stars 14 forks source link

feat request: Idle inhibit for source or sink but not both #17

Open stacyharper opened 11 months ago

stacyharper commented 11 months ago

Hey there,

I'm trying to implement this, but I struggle cause all the code is structured in a way that this change isn't trivial to do.

Ideally the final usage log should looks like:

Usage:                                                                                                                                             
        sway-audio-idle-inhibit <OPTION>                                                                                                           
Options:                                                                                                                                           
         sway-audio-idle-inhibit         Inhibits idle if either any sink or any source is running
         -h, --help              Show help options
         --sink                  Inhibit idle only if sink is running
         --source                Inhibit idle only if source is running
         --dry-print             Don't inhibit idle and just print
         --dry-print-waybar      Same as --dry-print-both but outputs in a waybar friendly manner

Is that something doable in this project?

5p4r74cu5 commented 8 months ago

@stacyharper

I'd like this feature as well.