GcinTablesXcin02: gcin-filter-nobopomofo

File gcin-filter-nobopomofo, 0.5 kB (added by caleb, 1 year ago)

sed "s/xpm/jpg/" ; Version number unchanged.

Line 
1 #! /bin/bash
2 # gcin-filter-nobopomofo version 0.0.4
3   read -r -t 1 aa
4   echo -n $aa
5   if [ "$(echo -n $aa | grep -v -f $0 --)" = "" ]; then
6     declare -i bb=$(date +%N | tr -d 0)%2
7     if [ "$bb" = "1" ]; then
8       gcin-message -icon /usr/share/pixmaps/gcin/SS1135_ST.jpg -duration 1500 &
9     else
10       gcin-message -icon /usr/share/pixmaps/gcin/SS1208_DT.jpg -duration 1500 &
11     fi
12   fi
13   exit
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50