We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40ce9b7 commit fe7ec70Copy full SHA for fe7ec70
scripts/mac-player.sh
@@ -215,6 +215,14 @@ main() {
215
NEXT_BUTTON=$(get_tmux_option "@dracula-mac-player-remote-next" "N")
216
217
remoteControl "$PLAY_PAUSE_BUTTON" "$BACK_BUTTON" "$NEXT_BUTTON" "$REMOTE_APP"
218
+ else
219
+ # Clean up when remote is disabled
220
+ tmux set -g @dracula-mac-player-remote-play-pause ""
221
+ tmux set -g @dracula-mac-player-remote-back ""
222
+ tmux set -g @dracula-mac-player-remote-next ""
223
+ tmux unbind-key "$PLAY_PAUSE_BUTTON" 2>/dev/null
224
+ tmux unbind-key "$BACK_BUTTON" 2>/dev/null
225
+ tmux unbind-key "$NEXT_BUTTON" 2>/dev/null
226
fi
227
228
if [ ! -f "$cache_file" ] || [ $(($(date +%s) - $(stat -f%c "$cache_file"))) -ge "$RATE" ]; then
0 commit comments