I have these lines in my i3 config right now:
# Play/pause, prev, next bindcode 172 exec "/opt/playerctl/bin/playerctl play-pause" bindcode 173 exec "/opt/playerctl/bin/playerctl previous" bindcode 171 exec "/opt/playerctl/bin/playerctl next"
This makes the media buttons on my keyboard play/pause audio players supported by playerctl, like Spotify.
The issue is that the play/pause media button now no longer works in my video player (SMPlayer).
Is it possible to make the key bindings only take effect when the focused window is not SMPlayer?
To summarize what I'm trying to do: I want the key bindings above to always be in effect, except for when the SMPlayer window (class: "Smplayer") is focused.
Is this possible?