wok-current view dwm/stuff/dwm-session @ rev 4555
Add cndrvcups-common, dev (canon printer drivers)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Fri Dec 04 13:30:07 2009 +0000 (2009-12-04) |
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