File: rhythmbox.en_US.sh

package info (click to toggle)
eiskaltdcpp 2.4.2-1.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 25,676 kB
  • sloc: cpp: 97,597; ansic: 5,004; perl: 1,897; xml: 1,440; sh: 1,313; php: 661; javascript: 257; makefile: 39
file content (17 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# This script shows that are now played in Rhythmbox

## Author: none
## License: Public Domain

## Depends: sh, rhythmbox

## Examples:
# output in console:
# /me Rhythmbox playing now: Rammstein - Sonne
# output in eiskaltdcpp chat:
# [10:57:01] * Ben_Vladen Rhythmbox playing now: Rammstein - Sonne

rh="$(rhythmbox-client --print-playing)"
echo "/me Rhythmbox playing now: ${rh}"