File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ function remoteControl() {
172
172
else
173
173
back=" osascript -e 'tell application \" $app_controlled \" to set player position to 0'"
174
174
fi
175
+
175
176
toggle=" osascript -e 'tell application \" $app_controlled \" to playpause'"
176
177
next=" osascript -e 'tell application \" $app_controlled \" to play next track'"
177
178
@@ -212,11 +213,13 @@ main() {
212
213
PLAY_PAUSE_BUTTON=$( get_tmux_option " @dracula-mac-player-remote-play-pause" " P" )
213
214
BACK_BUTTON=$( get_tmux_option " @dracula-mac-player-remote-back" " R" )
214
215
NEXT_BUTTON=$( get_tmux_option " @dracula-mac-player-remote-next" " N" )
216
+
215
217
remoteControl " $PLAY_PAUSE_BUTTON " " $BACK_BUTTON " " $NEXT_BUTTON " " $REMOTE_APP "
216
218
fi
217
219
218
220
if [ ! -f " $cache_file " ] || [ $(( $(date +% s) - $(stat - f% c "$cache_file ")) ) -ge " $RATE " ]; then
219
221
local full_track
222
+
220
223
full_track=$( trackStatus " $PAUSE_ICON " " $PLAY_ICON " )
221
224
sliceTrack " $full_track " " $MAX_LENGTH " > " $cache_file "
222
225
fi
You can’t perform that action at this time.
0 commit comments