wok view dwm/stuff/dwm-session @ rev 21339

updated gnuradio (3.7.10.1 -> 3.7.13.4)
author Hans-G?nter Theisgen
date Sat Apr 20 11:34:23 2019 +0100 (2019-04-20)
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