mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 08:51:27 +00:00
Adding page on setting env vars
parent
7f3f488e80
commit
d72e4dbe0e
18
Home.md
18
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
|
||||
```
|
||||
```
|
||||
|
||||
[SetEnvPage]: https://github.com/swaywm/sway/wiki/Setting-Environmental-Variables
|
||||
|
|
Loading…
Reference in a new issue