File: play_pause.sh

package info (click to toggle)
xmmsctrl 1.9-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 140 kB
  • ctags: 79
  • sloc: ansic: 882; sh: 86; makefile: 77
file content (12 lines) | stat: -rwxr-xr-x 193 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# Simple switch between pause and play, Alexandre David

if xmmsctrl running; then
 if xmmsctrl playing; then
  xmmsctrl pause
 else
  xmmsctrl play
 fi
else
 xmmsctrl launch play
fi