Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] sway: add wrapper scripts
@ 2021-01-19 15:31 gspe
  2021-01-19 15:42 ` ericonr
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: gspe @ 2021-01-19 15:31 UTC (permalink / raw)
  To: ml

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-01-31 20:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-19 15:31 [ISSUE] sway: add wrapper scripts gspe
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

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