aboutsummaryrefslogtreecommitdiff
path: root/configs/sysmenu/xinitrc_partymode
blob: 0af0a8b989f51a2b898bbfc2361191fdf74cd993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

xset -dpms
xset s noblank
matchbox-window-manager -use_titlebar no -use_desktop_mode plain -use_cursor no &
pulseaudio --fail=false --start &
projectM-pulseaudio &
sleep 5
sudo /usr/bin/spawn_mp3blaster &
sleep 1
sudo /usr/bin/spawn_mpsyt &
sleep 2

while (`true`); do
	pidof mp3blaster >/dev/null
	if [ $? -ne 0 ]; then
		pulseaudio -k
		killall mpsyt
		exit 0
	fi
	sleep 1
done