blob: 3549f8101529a0d6dc9ea14cf389264b99373e56 (
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
|
#!/bin/sh
#
# Script that starts minimal Midori session on poky
MINI_X_SESSION_DIR=/etc/mini_x/session.d
# Execute session file on behalf of file owner
for SESSIONFILE in $MINI_X_SESSION_DIR/*; do
set +e
USERNAME=`stat -c %U $SESSIONFILE`
sudo -b -i -u $USERNAME $SESSIONFILE&
set -e
done
# 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
|