wok-stable view dwm/stuff/dwm-session @ rev 4773

Up: dnsmasq (2.51)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Jan 13 00:38:26 2010 +0100 (2010-01-13)
parents
children
line source
1 #!/bin/sh
2 #
3 # Start dwm X session on SliTaz
4 #
6 CONFIG_DIR="$HOME/.config/dwm"
7 AUTOSTART_SCRIPT="${CONFIG_DIR}/autostart.sh"
9 [ ! -d "$CONFIG_DIR" ] && mkdir -p $CONFIG_DIR
11 if [ ! -f "$AUTOSTART_SCRIPT" ]; then
12 cat > $AUTOSTART_SCRIPT << EOF
13 # This script is executed before dwm session starts on SliTaz.
14 #
16 # Background color
17 xsetroot -solid DarkGoldenrod4 &
19 # GTK interface to manage session.
20 dwmbox &
22 # Sleep 2 sec to let the terminal use main side.
23 sleep 2
25 # Launch a X terminal.
26 xterm -bg black -fg white &
27 EOF
28 fi
30 # Source autostarted applications.
31 . $AUTOSTART_SCRIPT
33 # Execute the Window manager.
34 exec dwm
36 exit 0