I am creating a post-install bash script to run right after I have installed UB Budgie on any pc. The script contains mostly gsettings set commands and pulls another script to install the Office fonts.
To find the right gsettings, I do the following, for example:
Goal
Move top-panel to left side and set size to 53 (treshold for bigger app icons)
How to figure this out?
Check what settings are modified in the dconf database, then find the right scheme/key/value in gsettings.
Save your .layout file in /usr/share/budgie-desktop/layouts
To apply - set the layout name (layout filename without the .layout extension) in gsettings key âlayoutâ com.solus-project.budgie-panel and then reset your panel
hi,
how can I get current layout from a running panel? If I dump /com/solus-project/budgie-panel/ I get the same thing Iâm using in my customization script, just there isnât any reference to a layout
easier dumping the whole panel and loading it in freshly installed machines via script, then!
I donât fear scripting but if I can do something with a not-so-great effort, why trying to doing it with a horrible effort?
Whatâs missing here :
â themes, icons, fonts ( but these donât need so much time to set as panels and applets )
â maybe sometimes some applets configâ are not passed ( things like custom string format for time in calendar, or the font size in show-time )
Well I made my layout file, it wasnât that difficult only issue: some applets seem to have completely different names!
For example, Workspace Switcher is called Visual Space in the examples on Github.
Mine can be found here, I havenât tested it yet (afraid to mess up my current panel, although it should be 1:1 identical). Unsure also if Seperators should be numbered just like Spacers.
I successfully created the layout file widescreen.layout and placed it in /usr/share/budgie-desktop/layouts.
I changed the gsettings value and checked it:
asterix@Idefix:~$ gsettings get com.solus-project.budgie-panel layout
'widescreen'
Logged out and logged in again, but no change. I checked the Budgie Desktop settings, still only see the default Top Panel shown. How can I reset this?
duh, that was stupid of me. Iâm trying to do this for the current user. It works but I still see all those error messages. Worse, it seems something goes wrong when the Network applet is used.
If I donât have Network applet, my applets are correctly positioned at the start (topside of the Left Panel) and end as stated in my layout file.
However if I only add Network applet start to it and reset, all my start applets are shown in the middle of the Panel.
When I remove Network applet and reset again, all start applets are back at the top of the panel.
Why does this happen? This is the layout file I am testing with.
Is this a bug? Because when I use my layout file without Network and add Network manually via Budgie Settings > Left Panel, it appears in Center. When I move it up, everything at Start comes down, in between top and center.
It makes absolutely no sense what is happening here.
When I remove Network from my layout file and reset, it looks like expected:
In Budgie Desktop Settings it is shown under Start but on the panel itself, everything has shifted to Center. This is not suppose to happen and I canât solve it.
Thanks so much⊠I have spend over an hour trying to figure out the cause and finding out the culprit. Happy to know a solution will be available soonish.
Also, all those errors are warnings from Vala code that seems to make a lot of string == string assertions, it seems? You can ignore them, that always happens.
Unfortunately that string is probably different for every device/install, how can I change this via command line for a post install script? I checked the plugin folder, but it does not contain an editable file other than the .plugin file.
Just fyi, when you run this command budgie-panel --reset --replace & to reset the panel , some Budgie Desktop settings are reset to their default value. The one I found is dark mode. Enable it, run this command and notice how it is disabled.