Update envvars (#229)

This commit is contained in:
Simon 2023-05-26 20:33:55 +02:00 committed by GitHub
parent 4cb585cb52
commit ed1325e245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 11 deletions

View File

@ -246,20 +246,13 @@ launched with `exec-once` should fix all issues. Adjust the sleep durations to t
# How do I export envvars for Hyprland?
As with any Display Server, Xorg included, you should probably make a script to
launch it, for example:
See [Environment Variables](../Configuring/Environment-variables.md)
```bash
export AMONG_US=1
exec Hyprland
The `env` keyword is used for this purpose. For example:
```ini
env = XDG_CURRENT_DESKTOP,Hyprland
```
and launch that.
For Display Manager users, you can replace the `exec` entry in
the `.desktop` file to point to your script. You are recommended
to use absolute paths, such as `/home/username/Script` instead of `~/Script`
# How to disable middle-click paste?
The middle-click paste action pastes from a separate buffer (primary buffer) than what the regular clipboard uses (clipboard buffer). Since the primary buffer is unrelated to the clipboard buffer, it's easy to simply keep the primary buffer empty, allowing the middle-click action to retain the rest of its functionality without having anything to paste. Run the following command (in your config with `exec-once`, for example) to achieve this: