hyprland-wiki/pages/Configuring/Variables.md

279 lines
16 KiB
Markdown
Raw Normal View History

For basic syntax info, see [Configuring Hyprland](../Configuring-Hyprland).
2022-08-12 20:46:36 +02:00
This page documents all the "options" of Hyprland. For binds, monitors, animations,
etc. see the sidebar. For anything else, see [Keywords](../Keywords).
2022-08-12 20:46:36 +02:00
2022-08-13 01:47:48 +02:00
Please keep in mind some options that are layout-specific will be documented in
the layout pages and not here. (See the Sidebar for Dwindle and Master layouts)
2022-08-12 20:46:36 +02:00
# Variable types
2022-08-13 17:49:05 +02:00
| type | description |
|---|---|
| int | integer |
2023-02-10 01:43:20 +01:00
| bool | boolean, `true` or `false` (`yes` or `no`, `on` or `off`, `0` or `1`) - any numerical value that is not `0` or `1` will cause undefined behaviour. |
2022-08-13 17:49:05 +02:00
| float | floating point number |
2022-10-16 23:25:54 +02:00
| color | color (see hint below for color info) |
2022-08-13 17:49:05 +02:00
| vec2 | vector with 2 values (float), separated by a space (e.g. `0 0` or `-10.9 99.1`) |
2022-10-16 23:03:01 +02:00
| MOD | a string modmask (e.g. `SUPER` or `SUPERSHIFT` or `SUPER + SHIFT` or `SUPER and SHIFT` or `CTRL_SHIFT` or empty for none. You are allowed to put any separators you please except for a `,`) |
2022-10-01 20:21:14 +02:00
| str | a string |
2022-11-26 18:56:29 +01:00
| gradient | a gradient, in the form of `color color ... [angle]` where `color` is a color (see above) and angle is an angle in degrees, in the format of `123deg` e.g. `45deg` (e.g. `rgba(11ee11ff) rgba(1111eeff) 45deg`) Angle is optional and will default to `0deg` |
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
{{< hint type=info >}}
2022-08-12 20:46:36 +02:00
**_Colors:_**
2022-10-16 23:25:54 +02:00
You have 3 options:
rgba(), e.g. `rgba(b3ff1aee)`
rgb(), e.g. `rgb(b3ff1a)`
legacy, e.g. `0xeeb3ff1a` -> ARGB order
**_Mod list:_**
2022-10-16 23:25:54 +02:00
2022-09-24 16:03:37 +02:00
```ini
2022-08-12 20:46:36 +02:00
SHIFT CAPS CTRL/CONTROL ALT MOD2 MOD3 SUPER/WIN/LOGO/MOD4 MOD5
```
2022-08-13 17:49:05 +02:00
{{< /hint >}}
2022-08-12 20:46:36 +02:00
# Sections
## General
2022-08-13 17:49:05 +02:00
| name | description | type | default |
|---|---|---|---|
2022-08-24 11:11:31 +02:00
| sensitivity | mouse sensitivity (legacy, may cause bugs if not 1, prefer `input:sensitivity`) | float | 1.0 |
| border_size | size of the border around windows | int | 1 |
2022-08-13 17:49:05 +02:00
| no_border_on_floating | disable borders for floating windows | bool | false |
| gaps_in | gaps between windows | int | 5 |
| gaps_out | gaps between windows and monitor edges | int | 20 |
| col.inactive_border | border color for inactive windows | gradient | 0xffffffff |
| col.active_border | border color for the active window | gradient | 0xff444444 |
| col.group_border | inactive (out of focus) group border color | gradient | 0x66777700 |
| col.group_border_active | active group border color | gradient | 0x66ffff00 |
2022-08-13 17:49:05 +02:00
| cursor_inactive_timeout | in seconds, after how many seconds of cursor's inactivity to hide it. Set to `0` for never. | int | 0 |
| layout | which layout to use. (Available: `dwindle`, `master`) | str | dwindle |
| no_cursor_warps | if true, will not warp the cursor in many cases (focusing, keybinds, etc) | bool | false |
| apply_sens_to_raw | if on, will also apply the sensitivity to raw mouse output (e.g. sensitivity in games) **NOTICE:** ***really*** not recommended. | bool | false |
| resize_on_border | enables resizing windows by clicking and dragging on borders and gaps | bool | false |
| extend_border_grab_area | extends the area around the border where you can click and drag on, only used when `general:resize_on_border` is on. | int | 15 |
| hover_icon_on_border | show a cursor icon when hovering over borders, only used when `general:resize_on_border` is on. | bool | true |
2022-08-12 20:46:36 +02:00
2022-08-24 11:11:31 +02:00
{{< hint type=warning >}}
Prefer using `input:sensitivity` over `general:sensitivity` to avoid bugs, especially with Wine/Proton apps.
{{< /hint >}}
2022-08-12 20:46:36 +02:00
## Decoration
2022-08-13 17:49:05 +02:00
| name | description | type | default |
|---|---|---|---|
2022-08-31 11:17:26 +02:00
| rounding | rounded corners' radius (in layout px) | int | 0 |
2022-08-13 17:49:05 +02:00
| multisample_edges | enable antialiasing (no-jaggies) for rounded corners | bool | true |
| active_opacity | opacity of active windows. (0.0 - 1.0) | float | 1.0 |
| inactive_opacity | opacity of inactive windows. (0.0 - 1.0) | float | 1.0 |
| fullscreen_opacity | opacity of fullscreen windows. (0.0 - 1.0) | float | 1.0 |
2022-08-13 17:49:05 +02:00
| blur | enable kawase window background blur | bool | true |
| blur_size | blur size (distance) | int | 8 |
| blur_passes | the amount of passes to perform | int | 1 |
| blur_ignore_opacity | make the blur layer ignore the opacity of the window | bool | false |
2022-12-02 19:35:13 +01:00
| blur_new_optimizations | whether to enable further optimizations to the blur. Recommended to leave on, as it will massively improve performance. | bool | true |
| blur_xray | if enabled, floating windows will ignore tiled windows in their blur. Only available if blur_new_optimizations is true. Will reduce overhead on floating blur significantly. | bool | false |
2022-08-13 17:49:05 +02:00
| drop_shadow | enable drop shadows on windows | bool | true |
| shadow_range | Shadow range ("size") in layout px | int | 4 |
| shadow_render_power | (1 - 4), in what power to render the falloff (more power, the faster the falloff) | int | 3 |
| shadow_ignore_window | if true, the shadow will not be rendered behind the window itself, only around it. | bool | true |
| col.shadow | shadow's color. Alpha dictates shadow's opacity. | color | 0xee1a1a1a |
| col.shadow_inactive | inactive shadow color. (if not set, will fall back to col.shadow) | color | unset |
| shadow_offset | shadow's rendering offset. | vec2 | [0, 0] |
2022-11-07 23:52:21 +01:00
| shadow_scale | shadow's scale. 0.0 - 1.0 | float | 1.0 |
2022-08-30 12:48:00 +02:00
| dim_inactive | enables dimming of inactive windows | bool | false |
| dim_strength | how much inactive windows should be dimmed, 0.0 - 1.0 | float | 0.5 |
2022-12-28 15:19:10 +01:00
| dim_special | how much to dim the rest of the screen by when a special workspace is open. 0.0 - 1.0 | float | 0.2 |
2022-12-28 15:41:24 +01:00
| dim_around | how much the `dimaround` window rule should dim by. 0.0 - 1.0 | float | 0.4 |
2022-12-01 14:38:00 +01:00
| screen_shader | a path to a custom shader to be applied at the end of rendering. See `examples/screenShader.frag` for an example. | str | \[EMPTY\] |
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
{{< hint type=info >}}
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
`blur_size` and `blur_passes` have to be at least 1.
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
Increasing `blur_passes` is necessary to prevent blur looking wrong on higher `blur_size` values,
but remember that higher `blur_passes` will require more strain on the GPU.
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
It will, however, cause zero overhead on tiled windows if using `blur_new_optimizations`.
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
{{< /hint >}}
2022-08-12 20:46:36 +02:00
# Animations
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
| name | description | type | default |
|---|---|---|---|
2022-08-13 17:49:05 +02:00
| enabled | enable animations | bool | true |
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
{{< hint type=info >}}
2022-08-12 20:46:36 +02:00
2022-09-24 16:37:22 +02:00
_[More about Animations](../Animations)._
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
{{< /hint >}}
2022-08-12 20:46:36 +02:00
# Input
2022-08-12 20:46:36 +02:00
## Input
2022-08-13 17:49:05 +02:00
| name | description | type | default |
|---|---|---|---|
| kb_model | Appropriate XKB keymap parameter. See the note below. | str | \[EMPTY\] |
2022-08-13 17:49:05 +02:00
| kb_layout | Appropriate XKB keymap parameter | str | us |
| kb_variant | Appropriate XKB keymap parameter | str | \[EMPTY\] |
| kb_options | Appropriate XKB keymap parameter | str | \[EMPTY\] |
| kb_rules | Appropriate XKB keymap parameter | str | \[EMPTY\] |
| kb_file | If you prefer, you can use a path to your custom .xkb file. | str | \[EMPTY\] |
| numlock_by_default | Engage numlock by default. | bool | false |
| repeat_rate | The repeat rate for held-down keys, in repeats per second. | int | 25 |
| repeat_delay | Delay before a held-down key is repeated, in milliseconds. | int | 600 |
| sensitivity | Sets the mouse input sensitivity. Value will be clamped to the range -1.0 to 1.0. [libinput#pointer-acceleration](https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html#pointer-acceleration) | float | 0.0 |
| accel_profile | Sets the cursor acceleration profile. Can be one of `adaptive`, `flat`. Leave empty to use `libinput`'s default mode for your input device. [libinput#pointer-acceleration](https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html#pointer-acceleration) | str | \[EMPTY\]
| force_no_accel | Force no cursor acceleration. This bypasses most of your pointer settings to get as raw of a signal as possible. **Enabling this is not recommended due to potential cursor desynchronization.** | bool | false |
| left_handed | Switches RMB and LMB | bool | false |
| scroll_method | Sets the scroll method. Can be one of `2fg` (2 fingers), `edge`, `on_button_down`, `no_scroll`. [libinput#scrolling](https://wayland.freedesktop.org/libinput/doc/latest/scrolling.html) | str | \[EMPTY\]
2022-11-22 00:27:51 +01:00
| scroll_button | Sets the scroll button. Has to be an int, cannot be a string. Check `wev` if you have any doubts regarding the ID. 0 means default. | int | 0 |
| natural_scroll | Inverts scrolling direction. When enabled, scrolling moves content directly instead of manipulating a scrollbar. | bool | false |
| follow_mouse | (0/1/2/3) Specify if and how cursor movement should affect window focus. See the note below. | int | 1 |
| float_switch_override_focus | If enabled (1 or 2), focus will change to the window under the cursor when changing from tiled-to-floating and vice versa. If 2, focus will also follow mouse on float-to-float switches. | int | 1 |
2022-08-13 17:49:05 +02:00
{{< hint type=info >}}
## XKB Settings
You can find a list of models, layouts, variants and options in [`/usr/share/X11/xkb/rules/base.lst`](file:///usr/share/X11/xkb/rules/base.lst).
Alternatively, you can use the `localectl` command to discover what is available on your system.
2022-08-13 17:49:05 +02:00
For switchable keyboard configurations, take a look at [the uncommon tips & tricks page entry](../Uncommon-tips--tricks/#switchable-keyboard-layouts).
2022-08-12 20:46:36 +02:00
{{< /hint >}}
{{< hint type=info >}}
## Follow Mouse Cursor
- 0 - Cursor movement will not change focus.
- 1 - Cursor movement will always change focus to the window under the cursor.
- 2 - Cursor focus will be detached from keyboard focus. Clicking on a window will move keyboard focus to that window.
- 3 - Cursor focus will be completely separate from keyboard focus. Clicking on a window will not change keyboard focus.
{{< /hint >}}
## Touchpad
2022-08-12 20:46:36 +02:00
2022-08-13 14:55:15 +02:00
_Subcategory `input:touchpad:`_
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
| name | description | type | default |
|---|---|---|---|
| disable_while_typing | Disable the touchpad while typing. | bool | true |
| natural_scroll | Inverts scrolling direction. When enabled, scrolling moves content directly instead of manipulating a scrollbar. | bool | false |
| scroll_factor | Multiplier applied to the amount of scroll movement. | float | 1.0
| middle_button_emulation | Sending LMB and RMB simultaneously will be interpreted as a middle click. This disables any touchpad area that would normally send a middle click based on location. [libinput#middle-button-emulation](https://wayland.freedesktop.org/libinput/doc/latest/middle-button-emulation.html) | bool | false |
2023-02-05 21:17:05 +01:00
| tap_button_map | Sets the tap button mapping for touchpad button emulation. Can be one of `lrm` (default) or `lmr` (Left, Middle, Right Buttons). | str | \[EMPTY\] |
| clickfinger_behavior | Button presses with 1, 2, or 3 fingers will be mapped to LMB, RMB, and MMB respectively. This disables interpretation of clicks based on location on the touchpad. [libinput#clickfinger-behavior](https://wayland.freedesktop.org/libinput/doc/latest/clickpad-softbuttons.html#clickfinger-behavior) | bool | false |
| tap-to-click | Tapping on the touchpad with 1, 2, or 3 fingers will send LMB, RMB, and MMB respectively. | bool | true |
| drag_lock | When enabled, lifting the finger off for a short time while dragging will not drop the dragged item. [libinput#tap-and-drag](https://wayland.freedesktop.org/libinput/doc/latest/tapping.html#tap-and-drag) | bool | false |
2022-08-12 20:46:36 +02:00
2022-08-31 11:10:49 +02:00
{{< hint type=important >}}
A subcategory is a nested category:
```ini
2022-08-31 11:10:49 +02:00
input {
# ...
# ...
touchpad {
# ...
# ...
}
}
```
Doing `input:touchpad {` is **invalid**!
{{< /hint >}}
## Touchdevice
_Subcategory `input:touchdevice:`_
| name | description | type | default |
|---|---|---|---|
| transform | transform the input from touchdevices. The possible transformations are the same as [those of the monitors](../Monitors/#rotating-and-the-default-workspace) | int | 0 |
2022-10-14 13:40:01 +02:00
| output | the output to bind touch devices. Empty means unset and will use the current / autodetected. | string | \[EMPTY\] |
## Per-device input config
2022-08-13 14:55:15 +02:00
2022-09-24 16:37:22 +02:00
Described [here](../Keywords#per-device-input-configs).
2022-08-12 20:46:36 +02:00
# Gestures
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
| name | description | type | default |
|---|---|---|---|
2022-08-13 17:49:05 +02:00
| workspace_swipe | enable workspace swipe gesture | bool | false |
| workspace_swipe_fingers | how many fingers for the gesture | int | 3 |
| workspace_swipe_distance | in px, the distance of the gesture | int | 300 |
| workspace_swipe_invert | invert the direction | bool | true |
| workspace_swipe_min_speed_to_force | minimum speed in px per timepoint to force the change ignoring `cancel_ratio`. Setting to `0` will disable this mechanic. | int | 30 |
| workspace_swipe_cancel_ratio | (0.0 - 1.0) how much the swipe has to proceed in order to commence it. (0.7 -> if > 0.7 * distance, switch, if less, revert) | float | 0.5 |
2022-10-20 15:56:15 +02:00
| workspace_swipe_create_new | whether a swipe right on the last workspace should create a new one. | bool | true |
2022-11-03 14:35:14 +01:00
| workspace_swipe_forever | if enabled, swiping will not clamp at the neighboring workspaces but continue to the further ones. | bool | false |
2022-12-25 16:43:04 +01:00
| workspace_swipe_numbered | if enabled, swiping will swipe on consecutive numbered workspaces. | bool | false |
2022-08-12 20:46:36 +02:00
# Misc
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
| name | description | type | default |
|---|---|---|---|
2022-08-13 17:49:05 +02:00
| disable_hyprland_logo | disables the hyprland logo background. :( | bool | false |
| disable_splash_rendering | disables the hyprland splash rendering. (requires a monitor reload to take effect) | bool | false |
2023-02-14 18:16:36 +01:00
| vfr | controls the VFR status of hyprland. Heavily recommended to leave on true to conserve resources. | bool | true |
| vrr | controls the VRR (Adaptive Sync) of your monitors. 0 - off, 1 - on, 2 - fullscreen only | int | 0 |
2022-08-13 17:49:05 +02:00
| mouse_move_enables_dpms | If DPMS is set to off, wake up the monitors if the mouse moves. | bool | false |
| always_follow_on_dnd | Will make mouse focus follow the mouse when drag and dropping. Recommended to leave it enabled, especially for people using focus follows mouse at 0. | bool | true |
| layers_hog_keyboard_focus | If true, will make keyboard-interactive layers keep their focus on mouse move (e.g. wofi, bemenu) | bool | true |
2023-02-28 23:15:47 +01:00
| animate_manual_resizes | If true, will animate manual window resizes/moves | bool | true |
| animate_mouse_windowdragging | If true, will animate windows being dragged by mouse, note that this can cause weird behavior on some curves | bool | true |
| disable_autoreload | If true, the config will not reload automatically on save, and instead needs to be reloaded with `hyprctl reload`. Might save on battery. | bool | false |
2022-10-01 20:21:14 +02:00
| enable_swallow | Enable window swallowing | bool | false |
| swallow_regex | The *class* regex to be used for windows that should be swallowed (usually, a terminal) | str | \[EMPTY\] |
| focus_on_activate | Whether Hyprland should focus an app that requests to be focused (an `activate` request) | bool | false |
2022-11-05 14:23:22 +01:00
| no_direct_scanout | Disables direct scanout. Direct scanout attempts to reduce lag when there is only one fullscreen application on a screen (e.g. game) | bool | false |
2023-01-17 11:49:00 +01:00
| hide_cursor_on_touch | Hides the cursor when the last input was a touch input until a mouse input is done. | bool | true |
2023-02-09 16:31:00 +01:00
| mouse_move_focuses_monitor | Whether mouse moving into a different monitor should focus it | bool | true |
2022-08-12 20:46:36 +02:00
# Binds
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
| name | description | type | default |
|---|---|---|---|
2022-09-22 17:34:12 +02:00
| pass_mouse_when_bound | if disabled, will not pass the mouse events to apps / dragging windows around if a keybind has been triggered. | bool | false |
2022-08-13 17:49:05 +02:00
| scroll_event_delay | in ms, how many ms to wait after a scroll event to allow to pass another one for the binds. | int | 300 |
| workspace_back_and_forth | If enabled, an attempt to switch to the currently focused workspace will instead switch to the previous workspace. Akin to i3's *auto_back_and_forth*. | bool | false |
| allow_workspace_cycles | If enabled, workspaces don't forget their previous workspace, so cycles can be created by switching to the first workspace in a sequence, then endlessly going to the previous workspace. | bool | false |
2023-01-26 15:38:54 +01:00
| focus_preferred_method | sets the preferred focus finding method when using `focuswindow`/`movewindow`/etc with a direction. 0 - history (recent have priority), 1 - length (longer shared edges have priority) | int | 0 |
2022-08-12 20:46:36 +02:00
# Debug
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
{{< hint type=warning >}}
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
Only for developers.
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
{{< /hint >}}
2022-08-12 20:46:36 +02:00
2022-08-13 17:49:05 +02:00
| name | description | type | default |
|---|---|---|---|
2022-08-13 17:49:05 +02:00
| overlay | print the debug performance overlay. Disable VFR for accurate results. | bool | false |
| damage_blink | (epilepsy warning!) flash areas updated with damage tracking | bool | false |
| disable_logs | disable logging | bool | false |
2022-08-13 17:49:05 +02:00
| disable_time | disables time logging | bool | true |
2022-11-02 11:12:51 +01:00
| damage_tracking | redraw only the needed bits of the display. Do **not** change. (default: full - 2) monitor - 1, none - 0 | int | 2 |
2022-08-12 20:46:36 +02:00
# More
2022-08-12 20:46:36 +02:00
There are more config options described in other pages, which are layout- or
2022-08-13 14:55:15 +02:00
circumstance-specific. See the sidebar for more pages.