Github messages for voidlinux
 help / color / mirror / Atom feed
From: gspe <gspe@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] sway: add wrapper scripts
Date: Tue, 19 Jan 2021 16:31:39 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-28036@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]

New issue by gspe on void-packages repository

https://github.com/void-linux/void-packages/issues/28036

Description:
@olafmersmann I'd like to ask you what do you think about adding some wrapper scripts to help user with the problem of setting enviromental variable correctly in sway and wayland in general.
I'm thinking about this:
https://man.sr.ht/%7Ekennylevinsen/greetd/#how-to-set-xdg_session_typewayland
https://en.opensuse.org/Portal:OpenSUSEway/Configuration


Based on OpenSuse configuration I'm thinking about having:

- a file to store enviromental variables  `/etc/sway/env` :
```
# recomended enviroment variables for sway based desktop
MOZ_ENABLE_WAYLAND=1
QT_QPA_PLATFORM=wayland-egl
CLUTTER_BACKEND=wayland
ECORE_EVAS_ENGINE=wayland-egl
ELM_ENGINE=wayland_egl
SDL_VIDEODRIVER=wayland
_JAVA_AWT_WM_NONREPARENTING=1
NO_AT_BRIDGE=1

# QT theme
QT_QPA_PLATFORMTHEME=qt5ct
```

- a wrap script to run sway `/usr/bin/sway-run.sh` :
```
#!/bin/sh

# Session
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export XDG_CURRENT_DESKTOP=sway

# this file imports sway desktop enviroments
set -a
. /etc/sway/env
set +a

sway $@

```
- a desktop file to run sway from login manager `/usr/share/wayland-sessions/sway.desktop` :

```
[Desktop Entry]
Name=Sway
Comment=An i3-compatible Wayland compositor
Exec=sway-run.sh
Type=Application
```

             reply	other threads:[~2021-01-19 15:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-19 15:31 gspe [this message]
2021-01-19 15:42 ` ericonr
2021-01-19 16:26 ` gspe
2021-01-19 20:00 ` ericonr
2021-01-19 20:00 ` ericonr
2021-01-19 20:08 ` olafmersmann
2021-01-19 22:15 ` gspe
2021-01-21 18:21 ` kkga
2021-01-21 18:22 ` kkga
2021-01-22 10:33 ` travankor
2021-01-22 10:38 ` travankor
2021-01-31 16:21 ` gspe
2021-01-31 20:30 ` ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-28036@inbox.vuxu.org \
    --to=gspe@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).