mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2025-12-19 19:20:02 +01:00
uncommon: add versioning tip
This commit is contained in:
parent
404d81e008
commit
bbba409db7
1 changed files with 30 additions and 0 deletions
|
|
@ -367,3 +367,33 @@ hyprctl -q --batch "keyword unbind ALT, TAB ; keyword unbind ALT SHIFT, TAB ; ke
|
|||
#!/usr/bin/env bash
|
||||
hyprctl -q --batch "keyword animations:enabled false ; dispatch exec footclient -a alttab ~/.config/hypr/scripts/alttab/alttab.sh $1 ; keyword unbind ALT, TAB ; keyword unbind ALT SHIFT, TAB ; dispatch submap alttab"
|
||||
```
|
||||
|
||||
## Config versioning
|
||||
|
||||
Some updates add breaking changes, which can be anticipated by looking at the git
|
||||
development branch.
|
||||
|
||||
Since Hyprland 0.53, we export a variable for each major version, that looks like this:
|
||||
```
|
||||
$HYPRLAND_V_0_XX
|
||||
```
|
||||
|
||||
You can make your configs conditional, e.g.:
|
||||
|
||||
```
|
||||
# hyprlang if HYPRLAND_V_0_53
|
||||
|
||||
someValue = 0.53
|
||||
|
||||
# hyprlang endif
|
||||
|
||||
# hyprlang if !HYPRLAND_V_0_53
|
||||
|
||||
someValue = 0.52
|
||||
|
||||
# hyprlang endif
|
||||
```
|
||||
|
||||
The -git branch exports the variable for the next major release.
|
||||
|
||||
All future releases will export all _past_ variables as well, e.g. 0.54 will also export 0.53.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue