# Simple configuration file for notifyme.
# Please edit this file - it is just an example. 
#
# Each directive in separate line, except '{' that can be
# proceeded with some identifier.
# "users:" "hosts:" and "ttys:" are reserved words.
#
# In messages following characters can be used:
# %u - username, %h - hostname, %t - tty
#
# Extended regular expressions can be used to specify
# user, host or tty
#
# General rule: first match wins.
# For example if "johnny" is in users section (which is first) and
# some.host.org is in host section and johnny just logged in
# from some.host.org then settings from "johnny" will be used.

######
# Global configuration. 
# Each directive listed below can also be used in 
# users/hosts/ttys sections and entry section, and it will override 
# previous settings.
# 

Logins 		yes	# report logins
Logouts 	yes	# and logouts
LoginBeep	yes	# make sound if login
LogoutBeep	yes	# make sound if logout
PrintWelcome	yes	# report logged users at program's start
CenterMsg	no	# center messages

LoginMsg	"%u from %h arrived!"	
LogoutMsg	"%u logged out."

# message printed if it was last login
LastMsg		"%u - no more logins."	

# number of seconds to hold a message on the screen
HoldMsg		5

######
# Watch following users
#

users:
	# Only example. Doesn't change anything because it was set in globals
	Logouts yes
	
	john
	betty {
		# Don't report logouts for this particular user
		Logouts no
		LogoutMsg "My SweetHeart just left"
		LoginMsg "Betty came from %h"
		LastMsg "How pity, I'm alone"
		LogoutBeep no
		LoginBeep no
	}
	# Don't have to use braces here because it is only one directive    
	peter 	LoginMsg "Watch out! Boss is here!"
	badboy {
		PrintWelcome no
		CenterMsg yes
		HoldMsg 30
		LoginMsg "Alert! BADBOY from %h on %t!"
	}

######
# Watch logins and logouts made from following hosts

hosts:
	Logouts no
	.+.some.domain {
		# It overrides previous setting  
		Logouts yes
		LoginMsg "%u from %h is here."
	}
#####
# Watch following terminals

ttys: 
	# Some of these settings are pointless because they were
	# set in global configuration to the same values.
	LoginBeep	yes
	LogoutBeep	no
	PrintWelcome	yes	
	
	tty[1-9] { 
		LoginMsg "%u is on the CONSOLE (%t)."
	} 
	
# that's all.