From Fedora Project Wiki

No edit summary
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 5: Line 5:
= Installation =
= Installation =
<pre> $ dnf install weston weston-demo</pre>
<pre> $ dnf install weston weston-demo</pre>
The <code>demo</code> subpackage provides the clients programs: weston-calibrator, weston-clickdot, weston-cliptest, weston-confine, weston-dnd, weston-editor, weston-eventdemo, weston-flower, weston-fullscreen, weston-image, ...
The <code>demo</code> subpackage provides the clients programs:  
* <code>weston-calibrator</code>, <code>weston-clickdot</code>, <code>weston-cliptest</code>, <code>weston-confine</code>, <code>weston-dnd</code>, <code>weston-editor</code>, <code>weston-eventdemo</code>, <code>weston-flower</code>, <code>weston-fullscreen</code>, <code>weston-image</code>, ...
 
= Starting Weston =
 
== GUI Login with GDM ('''G'''NOME '''D'''isplay '''M'''anager) ==
 
In general you will have the Fedora Workstation Edition installed. Then the graphical login manager allows to choose a Weston session before you enter a password. This is shown in the following picture:
 
[[File:FedoraLogin.png|center|Login with GDM]]
 
== Virtual Console ==
 
On the virtual console entering the command <code>weston</code> or <code>weston-launch</code> starts the weston desktop.


= Configuration =
= Configuration =
Line 47: Line 60:
path=/home/<my_username>/bin/thunderbird-wayland</pre>
path=/home/<my_username>/bin/thunderbird-wayland</pre>


[[File:Weston_DE.png|thumb|center|Weston Desktop Environment]]
For leaving the weston session the <code>~/bin/weston-quit</code> file has this content:
<pre>#!/bin/bash
JID=`pgrep -fl weston | head -1 | awk '{print $1}'`
kill -9 $JID</pre>
 
The file <code>~/bin/thunderbird-wayland</code> for the thunderbird launcher has the following content:
<pre>#!/usr/bin/bash
#
# Run Thunderbird under Wayland
#
 
export MOZ_ENABLE_WAYLAND=1
 
exec /usr/bin/thunderbird "$@"</pre>
 
[[File:Weston_DE.png|center|Weston Desktop Environment]]

Latest revision as of 09:08, 19 February 2020

Weston is the reference implementation of a Wayland compositor. It is completely written in C. Since version 7 it uses the Meson Build system. The Weston compositor is a minimal and fast compositor.

Installation

 $ dnf install weston weston-demo

The demo subpackage provides the clients programs:

  • weston-calibrator, weston-clickdot, weston-cliptest, weston-confine, weston-dnd, weston-editor, weston-eventdemo, weston-flower, weston-fullscreen, weston-image, ...

Starting Weston

GUI Login with GDM (GNOME Display Manager)

In general you will have the Fedora Workstation Edition installed. Then the graphical login manager allows to choose a Weston session before you enter a password. This is shown in the following picture:

Login with GDM

Virtual Console

On the virtual console entering the command weston or weston-launch starts the weston desktop.

Configuration

Weston is configured on a local level with the ~/.config/weston.ini file.

[keyboard]
keymap_layout=de

[shell]
#panel-position=left
#clock-format=none
panel-color=0xff00ff00
#binding-modifier=alt

## button to quit session
[launcher]
icon=/usr/share/icons/HighContrast/24x24/actions/system-shutdown.png
path=/home/<my_username>/bin/weston-quit

## button for weston terminal
[launcher]
#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
icon=/usr/share/icons/HighContrast/24x24/apps/utilities-terminal.png
path=/usr/bin/weston-terminal

## button for gnome terminal
[launcher]
#icon=/usr/share/icons/HighContrast/24x24/apps/utilities-terminal.png
icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
path=/usr/bin/gnome-terminal

## button for firefox
[launcher]
icon=/usr/share/icons/hicolor/24x24/apps/firefox.png
path=/usr/bin/firefox-wayland

## button for thunderbird
[launcher]
icon=/usr/share/icons/hicolor/24x24/apps/thunderbird.png
path=/home/<my_username>/bin/thunderbird-wayland

For leaving the weston session the ~/bin/weston-quit file has this content:

#!/bin/bash
JID=`pgrep -fl weston | head -1 | awk '{print $1}'`
kill -9 $JID

The file ~/bin/thunderbird-wayland for the thunderbird launcher has the following content:

#!/usr/bin/bash
#
# Run Thunderbird under Wayland
#

export MOZ_ENABLE_WAYLAND=1

exec /usr/bin/thunderbird "$@"
Weston Desktop Environment