wok view dwm/stuff/dwm-session @ rev 19497
Up SliTaz projects: cookutils (838), slitaz-base-files (314), tazlito (439 again, seems failure isn't here).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Nov 17 01:33:43 2016 +0200 (2016-11-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