icewm/CHANGES | 2 ++ icewm/doc/icewm.sgml | 34 +++++++++++++++++++++++----------- icewm/src/wmapp.cc | 8 ++++++++ 3 files changed, 33 insertions(+), 11 deletions(-) diff --git a/icewm/CHANGES b/icewm/CHANGES index a2db695..8aee934 100644 --- a/icewm/CHANGES +++ b/icewm/CHANGES @@ -92,6 +92,8 @@ 1.2.28pre2: 2006-08-31 - fix smart placement - warning fixes + - added "restart" script that is executed each time icewm is restarted + (Manuel Carrasco) 1.2.28pre1: 2006-08-24 - start menu pixmap now named: taskbar/start.xpm diff --git a/icewm/doc/icewm.sgml b/icewm/doc/icewm.sgml index 79aa88f..5002d9e 100644 --- a/icewm/doc/icewm.sgml +++ b/icewm/doc/icewm.sgml @@ -138,23 +138,35 @@ check it's manpage for the correct place to start the window manager Startup and shutdown scripts

-After initialization IceWM-Session will search the resource path () -for a startup script. If this file is found to exist and to be executeable -IceWM-Session will run the script. On startup IceWM-Session will search for a script -called "startup". And during the termination of icewm, the -"shutdown" script is executed. +After initialization IceWM-Session will search the script called "startup". +If this file exists and is executable, IceWM-Session will run the script.

+When icewm is restarted or the theme is changed, icewm will run a script called "restart".

+During the termination of icewm, IceWM-Session will run the "shutdown" script.

-Additionally the flag "--with-gnome" is passed if a GNOME session -manager is detected. +These scripts are searched in the resource path () and they must to have the proper execution permissions.

Example (startup): -#!/bin/bash +#!/bin/sh +# Launch the screensaver +xscreensaver & +# Gnome applications need this to correctly display fonts +[ -x /usr/libexec/gnome-settings-daemon ] && /usr/libexec/gnome-settings-daemon & + -[ -x ~/.icewm/restart ] && source ~/.icewm/restart +Example (restart): + +#!/bin/sh +# Send the HUP signal to icewmtray so it reloads the new theme configuration +killall -HUP icewmtray +# Reload icewm background configuration +icewmbg -r + -gnome-terminal --geometry 80x25+217+235 & -xscreensaver & +Example (shutdown): + +#!/bin/sh +[ -x /usr/libexec/gnome-settings-daemon ] && killall -TERM gnome-settings-daemon