From Fedora Project Wiki

No edit summary
(change weston-quit script)
Line 50: Line 50:
For leaving the weston session the <code>~/bin/weston-quit</code> file has this content:
For leaving the weston session the <code>~/bin/weston-quit</code> file has this content:
<pre>#!/bin/bash
<pre>#!/bin/bash
JID=`ps ax | grep gdm-wayland-session | head -1 | awk '{print $1}'`
JID=`pgrep weston | head -1 | awk '{print $1}'`
kill -9 $JID</pre>
kill -9 $JID</pre>



Revision as of 10:55, 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, ...

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