mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 17:01:29 +00:00
Adding page on setting env vars
parent
7f3f488e80
commit
d72e4dbe0e
16
Home.md
16
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).
|
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
|
## FAQ
|
||||||
|
|
||||||
### Before asking questions...
|
### Before asking questions...
|
||||||
|
@ -634,3 +648,5 @@ bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@
|
||||||
bindsym --locked XF86AudioRaiseVolume 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
|
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