wok-next annotate dwm/stuff/dwm-session @ rev 17374
Add linux64-aufs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 21 15:31:47 2014 +0100 (2014-11-21) |
parents | |
children |
rev | line source |
---|---|
pankso@2378 | 1 #!/bin/sh |
pankso@2378 | 2 # |
pankso@2378 | 3 # Start dwm X session on SliTaz |
pankso@2378 | 4 # |
pankso@2378 | 5 |
pankso@2378 | 6 CONFIG_DIR="$HOME/.config/dwm" |
pankso@2378 | 7 AUTOSTART_SCRIPT="${CONFIG_DIR}/autostart.sh" |
pankso@2378 | 8 |
pankso@2378 | 9 [ ! -d "$CONFIG_DIR" ] && mkdir -p $CONFIG_DIR |
pankso@2378 | 10 |
pankso@2378 | 11 if [ ! -f "$AUTOSTART_SCRIPT" ]; then |
pankso@2378 | 12 cat > $AUTOSTART_SCRIPT << EOF |
pankso@2378 | 13 # This script is executed before dwm session starts on SliTaz. |
pankso@2378 | 14 # |
pankso@2378 | 15 |
pankso@2378 | 16 # Background color |
pankso@2378 | 17 xsetroot -solid DarkGoldenrod4 & |
pankso@2378 | 18 |
pankso@2378 | 19 # GTK interface to manage session. |
pankso@2378 | 20 dwmbox & |
pankso@2378 | 21 |
pankso@2378 | 22 # Sleep 2 sec to let the terminal use main side. |
pankso@2378 | 23 sleep 2 |
pankso@2378 | 24 |
pankso@2378 | 25 # Launch a X terminal. |
pankso@2378 | 26 xterm -bg black -fg white & |
pankso@2378 | 27 EOF |
pankso@2378 | 28 fi |
pankso@2378 | 29 |
pankso@2378 | 30 # Source autostarted applications. |
pankso@2378 | 31 . $AUTOSTART_SCRIPT |
pankso@2378 | 32 |
pankso@2378 | 33 # Execute the Window manager. |
pankso@2378 | 34 exec dwm |
pankso@2378 | 35 |
pankso@2378 | 36 exit 0 |