~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to scripts/misc/osd-notify

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2004-05-28 13:10:01 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040528131001-yj2m9qcez4ya2w14
Tags: upstream-1.4.2
ImportĀ upstreamĀ versionĀ 1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# **********************************************************#
 
3
# osd-notify: script to make On Screen Display notification #
 
4
# **********************************************************#
 
5
# Copyright 2003 - Arnaud Quette                            #
 
6
# Distributed under the GNU GPL v2                          #
 
7
# See attached file (osd-notify.txt) for usage information  #
 
8
# **********************************************************#
 
9
 
 
10
# select your font with xfontsel
 
11
# ******************************
 
12
FONT="-adobe-courier-bold-*-*-*-34-*-100-*-*-*-*-*"
 
13
 
 
14
# Position
 
15
# ********
 
16
POSITION="-p middle -A center"
 
17
 
 
18
# Delay in seconds
 
19
# ****************
 
20
DELAY="10"
 
21
 
 
22
# Color
 
23
# *****
 
24
COLOR="red"
 
25
 
 
26
# You can use a combination of valid message values:
 
27
#               $* => for full text
 
28
#               $UPSNAME => for ups name
 
29
#               $NOTIFYTYPE => depending on event (ONLINE, ONBATT, ...)
 
30
# *********************************************************************
 
31
MESSAGE="$*"
 
32
 
 
33
# Processing part
 
34
# ***************
 
35
echo $MESSAGE | osd_cat - -c $COLOR -f $FONT -d $DELAY $POSITION