blob: 0632caa2e96340ab2f16843c5304f126ee73884e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
#
# Script that starts minimal Midori session on poky
MIDORI_SESSION_DIR=/etc/mini_x/session.d
# Execute session file on behalf of file owner
if [ -d $MIDORI_SESSION_DIR ]; then
for SESSIONFILE in $MIDORI_SESSION_DIR/*; do
set +e
USERNAME=`stat -c %U $SESSIONFILE`
sudo -b -i -u $USERNAME $SESSIONFILE&
set -e
done
fi
# Modify here for the desired resolution
# Full HD - 1920 x 1080
#xrandr -s 1920x1080
#sleep 2
# Disable Screen saver and blanking
xset s off
xset s noblank
xset -dpms
/usr/bin/auto_restart_with_new_config.sh &
sleep 2
/usr/bin/change_midori_url.sh http://www.yoctoproject.org
exec matchbox-window-manager
|