mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 00:41:28 +00:00
707da6f2d2
The `export` command allows one to set environment variables easily within their configuration. It additionally allows one to get an environment variable using the `$ENV:<name>` syntax. With the configuration snippet listed below, which MUST appear before any `exec` commands -- so that environment variables are all available to these newly launched programs -- set a number of variables used by GTK & Qt for forcing Wayland rendering. ``` export GDK_BACKEND wayland export CLUTTER_BACKEND wayland export MOZ_ENABLE_WAYLAND 1 export QT_QPA_PLATFORM wayland-egl export QT_WAYLAND_DISABLE_WINDOWDECORATION 1 export ELM_DISPLAY wl export _JAVA_AWT_WM_NONREPARENTING 0 export SDL_VIDEODRIVER wayland ``` While the above does not demonstrate reading variables, the example below does demonstrates its use: ``` export PATH $ENV:HOME/bin:$ENV:PATH ``` Signed-off-by: Joseph Benden <joe@benden.us> |
||
---|---|---|
.. | ||
sway | ||
swaybar | ||
swaynag | ||
background-image.h | ||
cairo.h | ||
ipc-client.h | ||
ipc.h | ||
list.h | ||
log.h | ||
loop.h | ||
meson.build | ||
pango.h | ||
pool-buffer.h | ||
stringop.h | ||
util.h |