File: window_shown.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 (11 lines) | stat: -rwxr-xr-x 217 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# This little shell program tests if xmms playlist is displayed,
# Alexandre David

state=$(xprop -name "$1" | grep "window state:" | cut -d\  -f3 )

if [ "$state" = "Normal" ]; then
 exit 0
else
 exit 1
fi