From d72e4dbe0ecfde79c4d5da8fcf1d324af2314ccf Mon Sep 17 00:00:00 2001 From: RJDan <43909727+RJDan@users.noreply.github.com> Date: Thu, 20 Jan 2022 14:03:41 -0600 Subject: [PATCH] Adding page on setting env vars --- Home.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Home.md b/Home.md index 473931e..e690eb9 100644 --- a/Home.md +++ b/Home.md @@ -309,6 +309,20 @@ Also, see [[ https://github.com/swaywm/sway/wiki/Useful-add-ons-for-sway ]] for Not yet possible with swaywm/wlroots. Please [look / get involved here](https://github.com/swaywm/sway/issues/2781). + +### Setting Environmental Variables + +How you set variables will depend on how sway was started. + +Environment variables are inherited from the process that starts sway. You need to set variables there. + +Some of the possible options are: +- login manager: check the documentation. +- login shell: export them there before launching sway. +- user service: use the EnvironmentFile= key and an environment file. + +More details [here.][SetEnvPage] + ## FAQ ### Before asking questions... @@ -633,4 +647,6 @@ bindsym --locked XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle -``` \ No newline at end of file +``` + +[SetEnvPage]: https://github.com/swaywm/sway/wiki/Setting-Environmental-Variables