Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fachschaftsrat
Systemadministration
Ansage Cafete
Commits
be929ebe
Commit
be929ebe
authored
Dec 27, 2018
by
Thomas Eppers
Browse files
added host and port to later execution of mpc
parent
6cc8077d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ansage.sh
View file @
be929ebe
...
...
@@ -13,7 +13,7 @@ MPC_PORT="6600" # default port
# check if mpc is playing
PLAYING
=
`
mpc
-h
$MPC_HOST
-p
$MPC_PORT
status |
awk
'NR==2'
|
grep
playing
`
if
[[
$PLAYING
]]
;
then
mpc pause
# pause mpd
mpc
-h
$MPC_HOST
-p
$MPC_PORT
pause
# pause mpd
fi
# play snippet
...
...
@@ -23,7 +23,7 @@ mpv $SNIPPET --volume=$VOLUME
#resume if was playing
if
[[
$PLAYING
]]
;
then
mpc play
mpc
-h
$MPC_HOST
-p
$MPC_PORT
play
fi
#end script
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment