From Fedora Project Wiki

No edit summary
No edit summary
Line 8: Line 8:
* <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>, ...
* <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>, ...


[[File:FedoraLogin.png|thumb|left|Login with GDM]]
[[File:FedoraLogin.png|center|Login with GDM]]


= Configuration =
= Configuration =

Revision as of 11:20, 18 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, ...
Login with GDM
Login with GDM

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 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