summaryrefslogtreecommitdiff
path: root/recipes/scummvm/files/shr/openmoko-scummvm
blob: 58eb2bbded49dee8143c13049e3e191bcfb45657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# Save current AUX Key mapping
SAVE_KEY="$(xmodmap -pke | grep 'keycode 177')"

# Map AUX Key to F5
xmodmap -e "keycode 177 = F5"

# Turn LCD feft
xrandr -o left

# Start the scummvm in fullscreen mode
scummvm --fullscreen --themepath=/usr/share/scummvm/

# Turn LCD normal
xrandr -o normal

# Restore the AUX Key mapping
xmodmap -e "$SAVE_KEY"