I am trying to read and write the panel configuration file (~/.config/lxpanel/LXDE-pi/panel ).
I was planning to use some dedicated Python library for the purpose but I cannot recognise the file format.
The file starts like:
# lxpanel <profile> config file. Manually editing is not recommended.
# Use preference dialog in lxpanel to adjust config when you can.
Global {
edge=top
allign=left
margin=0
... more properties here ...
background=0
backgroundfile=/usr/share/lxpanel/images/background.png
iconsize=28
monitor=0
}
Plugin {
type=space
Config {
Size=4
}
}
Plugin {
type=menu
Config {
...............
It doesn't look like any YAML, INI, JSON or XML file format I am familiar to work with with python libraries.
I know I can use a Python or bash script with some find/replace strategy but I would like to have a bit more control on the process.
Could someone please tell me the type of format of this file or give me a hint on how to handle it programmatically?