SHARE
TWEET

.xinitrc

a guest Sep 16th, 2018 122 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. matchbox-window-manager -use_cursor no -use_titlebar no -use_desktop_mode no -use_lowlight no &
  4.  
  5. # set the keyboard
  6. systemsetting="python /usr/lib/python2.7/site-packages/configgen/settings/recalboxSettings.pyc"
  7. settings_lang="`$systemsetting -command load -key system.language`"
  8.  
  9. # not always true (en_US for us), but it's really better than always english
  10. map_name=$(echo $settings_lang | cut -c 1-2)
  11. setxkbmap "${map_name}"
  12.  
  13. # disable dpms to prevent screen from blanking
  14. xset -dpms
  15. xset s off
  16.  
  17. #
  18. export HOME=/recalbox/share/system
  19. export LC_ALL="${settings_lang}.UTF-8"
  20. export LANG=${LC_ALL}
  21.  
  22. # because of xinerama braking es, enable only one screen at a time
  23. systemsetting="python /usr/lib/python2.7/site-packages/configgen/settings/recalboxSettings.pyc"
  24. settings_output="`$systemsetting -command load -key global.videooutput`"
  25. /recalbox/scripts/recalbox-config.sh setoutput "${settings_output}"
  26.  
  27. #####################
  28. ## CUSTOMISATIONS ###
  29. # to customize your display, you can copy this file to ~/.xinitrc and then modify it
  30.  
  31. # rotate the screen
  32. # xrandr -o left
  33. # xrandr -o right
  34. # xrandr -o inverted
  35.  
  36. # change the resolution
  37. xrandr -s 1920x1080
  38.  
  39. # change the resolution and the Hz
  40. # xrandr -s 640x480 -r 60
  41.  
  42. #####################
  43. #####################
  44.  
  45. # without windowed, time must be sleeped to wait that matchbox ended to initialize :-(
  46. exec emulationstation --windowed
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top