File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -160,17 +160,17 @@ function sliceTrack()
160
160
161
161
162
162
function remoteControl() {
163
- toggle_button=" $1 "
164
- back_button=" $2 "
165
- next_button=" $3 "
166
- app_controlled=" $4 "
163
+ local toggle_button=" $1 "
164
+ local back_button=" $2 "
165
+ local next_button=" $3 "
166
+ local app_controlled=" $4 "
167
167
168
168
if [[ $app_controlled == " Spotify" ]] || [[ $app_controlled == " Music" ]]; then
169
169
170
170
if [[ $app_controlled == " Music" ]]; then
171
171
back=" osascript -e 'tell application \" $app_controlled \" to back track'"
172
172
else
173
- back=" osascript -e 'tell application \" $app_controlled \" to set player position to 0 '"
173
+ back=" osascript -e 'tell application \" $app_controlled \" to previous track '"
174
174
fi
175
175
176
176
toggle=" osascript -e 'tell application \" $app_controlled \" to playpause'"
You can’t perform that action at this time.
0 commit comments