wok-6.x diff dwm/stuff/dwm-session @ rev 19158
mesa*: fix build
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed May 25 23:07:05 2016 +0200 (2016-05-25) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dwm/stuff/dwm-session Wed May 25 23:07:05 2016 +0200 1.3 @@ -0,0 +1,36 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# Start dwm X session on SliTaz 1.7 +# 1.8 + 1.9 +CONFIG_DIR="$HOME/.config/dwm" 1.10 +AUTOSTART_SCRIPT="${CONFIG_DIR}/autostart.sh" 1.11 + 1.12 +[ ! -d "$CONFIG_DIR" ] && mkdir -p $CONFIG_DIR 1.13 + 1.14 +if [ ! -f "$AUTOSTART_SCRIPT" ]; then 1.15 + cat > $AUTOSTART_SCRIPT << EOF 1.16 +# This script is executed before dwm session starts on SliTaz. 1.17 +# 1.18 + 1.19 +# Background color 1.20 +xsetroot -solid DarkGoldenrod4 & 1.21 + 1.22 +# GTK interface to manage session. 1.23 +dwmbox & 1.24 + 1.25 +# Sleep 2 sec to let the terminal use main side. 1.26 +sleep 2 1.27 + 1.28 +# Launch a X terminal. 1.29 +xterm -bg black -fg white & 1.30 +EOF 1.31 +fi 1.32 + 1.33 +# Source autostarted applications. 1.34 +. $AUTOSTART_SCRIPT 1.35 + 1.36 +# Execute the Window manager. 1.37 +exec dwm 1.38 + 1.39 +exit 0