summaryrefslogtreecommitdiffstats
path: root/meta-agl-core/recipes-graphics/wayland/Readme.weston-ini-conf
blob: ee75c73356464a383c921e5e2dec4f5ef02a8157 (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

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e }
##Generate a weston.ini file:

To modify any of the default sections (core, shell), add a
do_configure() function to your bbappend, using machine (e.g. h3ulcb)
overrides (i.e. use the MACHINE name where "machine" is used below):

'''
do_configure:machine() {
    echo repaint-window=34 >> ${WORKDIR}/core.cfg

    echo transition-duration=300 >> ${WORKDIR}/ivishell.cfg
    echo cursor-theme=default >> ${WORKDIR}/ivishell.cfg
}
'''
or:
'''
do_configure:machine() {
    sed -i -e 's/drm-backend/fbdev-backend/' ${WORKDIR}/core.cfg
}
'''

To add new non-display sections, just list them in SRC_URI and WESTON_FRAGMENTS:
'''
FILESEXTRAPATHS:prepend:machine := "${THISDIR}/${PN}:"

SRC_URI:append:machine = " file://foo.cfg"
WESTON_FRAGMENTS:append:machine = " foo"

'''

To change the display, for example from the default assumption of an
HDMI-1-A connected screen that needs to be rotated 270 degrees to one
that is rotated 90 degrees, redefine the WESTON_DISPLAYS variable:

'''
WESTON_DISPLAYS:machine = "hdmi-a-1-90"
'''

Note that the weston-ini-conf recipe automatically generates a landscape
orientation version of weston.ini by replacing 90/270 degree rotation
fragments for HDMI-A-1 and the virtual output into 180 and 0 degrees,
respectively.  This landscape configuration can be used in an image by
pulling in weston-ini-conf-landscape instead of weston-ini-conf.
unsigned char is_playing; /* audio is playing: 0(false)/1(true) */ } audioCtxHandleT; #endif /* AUDIO_API_H */