wok-next view dwm/stuff/dwm-session @ rev 14024
Up gst-plugins-ugly-dev (0.10.19)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Feb 17 20:06:14 2013 +0100 (2013-02-17) |
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