···33Uses the [idle-inhibit-unstable-v1](https://wayland.app/protocols/idle-inhibit-unstable-v1) Wayland protocol in order
44to inhibit the idle behavior of the compositor when a media player is playing.
5566+## Usage
77+88+1. Add the flake to your flake inputs (other packaging formats just uh build it yourself idk)
99+2. Add the package to your environment.systemPackages
1010+3. Call the command, once you know which options you like best (see below), you can add it to your compositor's config.
1111+1212+Ex for Hyprland:
1313+1414+```
1515+exec-once = "wayland-mpris-idle-inhibit"
1616+```
1717+1818+Now whenever a player is playing media the program will inhibit the compositor's idle (e.g. hypridle), and will resume idle when the player is stopped or paused.
1919+2020+### Note for KDE Connect
2121+2222+You probably still want your PC to fall asleep if your phone is playing media, so you can add these two options to the command call to make it ignore kdeconnect when scanning for active players:
2323+2424+```
2525+--ignore=kdeconnect --ignore=playerctld
2626+```
2727+2828+The `playerctld` part is because for some reason playing media through kdeconnect registers *two* players, one with the right name and one with playerctld.
2929+630## Options
731832- `--poll-interval <interval>`: The interval in seconds at which the program will poll MPRIS for player information, default is `10`