Is it possible to remove Weston toolbar?
Asked Answered
W

7

7

Weston desktop with toolbar

Is it possible to have weston run without the toolbar at the top and change the background to black. So that when i have a script in init.d it calls weston first than my qt5 app? such as:

weston &
/home/root/app -platform wayland
Warlike answered 2/6, 2015 at 20:27 Comment(0)
S
0

you can change the background settings in weston.ini. For the toolbar you just have to return 0 in want_panel function in clients/desktop_shell.c

Suzan answered 6/4, 2016 at 14:27 Comment(1)
Thank you. i created a git patch yocto and it built without the toolbar.Warlike
D
6

Add panel-location string weston.ini [shell] section like this:

[shell]
panel-location = ""
Diapophysis answered 22/5, 2017 at 8:0 Comment(0)
M
3

I had the same problem. This is solution:

open: /etc/xdg/weston/weston.ini

add:

panel-position=none

to this file

open terminal or debug, type:

systemctl restart weston

reboot

Milepost answered 20/11, 2018 at 4:34 Comment(0)
C
2

Run as weston --shell="kiosk-shell.so"

Weston’s kiosk-shell is a simple shell targeted at single-app/kiosk use cases. It makes all top-level application windows fullscreen, and supports defining which applications to place on particular outputs.

Charest answered 25/12, 2021 at 10:15 Comment(0)
O
1

It is seemed it is determined by the shell/modules loaded when launching weston, by default desktop-shell.so is loaded. You can reference to the man page of weston.ini to try to change it.

Oakland answered 1/2, 2016 at 6:52 Comment(0)
E
1

To combine the possible solutions, just by adding the settings as below to your weston.ini helped me.

[shell]
panel-location=""
panel-position=none

Also, Weston.ini is picked up based on this precedence order:-

$XDG_CONFIG_HOME/weston.ini   (if $XDG_CONFIG_HOME is set)
$HOME/.config/weston.ini      (if $HOME is set)
weston/weston.ini in each
           $XDG_CONFIG_DIR           (if $XDG_CONFIG_DIRS is set)
       /etc/xdg/weston/weston.ini    (if $XDG_CONFIG_DIRS is not set)
       <current dir>/weston.ini      (if no variables were set)

where environment variable $HOME is the user's home directory, and $XDG_CONFIG_HOME is the user specific configuration directory, and $XDG_CONFIG_DIRS is a colon ':' delimited listed of configuration base directories, such as /etc/xdg-foo:/etc/xdg.

Escapee answered 17/5, 2019 at 2:43 Comment(0)
V
1

I fixed same issue on weston version 9 by modifying /etc/xdg/weston/weston.ini

panel-position=none

Villosity answered 26/12, 2022 at 19:44 Comment(1)
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From ReviewTc
S
0

you can change the background settings in weston.ini. For the toolbar you just have to return 0 in want_panel function in clients/desktop_shell.c

Suzan answered 6/4, 2016 at 14:27 Comment(1)
Thank you. i created a git patch yocto and it built without the toolbar.Warlike

© 2022 - 2024 — McMap. All rights reserved.