wok annotate dwm/stuff/dwm-session @ rev 14835
xfce4-session: remove wrong trigger
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 17 15:47:34 2013 +0200 (2013-07-17) |
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 |