mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-22 20:55:59 +01:00
Update envvars (#229)
This commit is contained in:
parent
4cb585cb52
commit
ed1325e245
1 changed files with 4 additions and 11 deletions
|
@ -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?
|
# How do I export envvars for Hyprland?
|
||||||
|
|
||||||
As with any Display Server, Xorg included, you should probably make a script to
|
See [Environment Variables](../Configuring/Environment-variables.md)
|
||||||
launch it, for example:
|
|
||||||
|
|
||||||
```bash
|
The `env` keyword is used for this purpose. For example:
|
||||||
export AMONG_US=1
|
```ini
|
||||||
exec Hyprland
|
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?
|
# 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:
|
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:
|
||||||
|
|
Loading…
Reference in a new issue