From 67cfedfd13cef12b3fcde2a9822d4c23bdc6c8e1 Mon Sep 17 00:00:00 2001 From: erstarr <253168930+erstarr@users.noreply.github.com> Date: Wed, 29 Apr 2026 03:17:13 +0200 Subject: [PATCH] fix --- .../Advanced and Cool/Expanding-functionality.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/content/Configuring/Advanced and Cool/Expanding-functionality.md b/content/Configuring/Advanced and Cool/Expanding-functionality.md index ba991be9..57d30b99 100644 --- a/content/Configuring/Advanced and Cool/Expanding-functionality.md +++ b/content/Configuring/Advanced and Cool/Expanding-functionality.md @@ -100,7 +100,7 @@ Hyprland exposes a bunch of convenience functions: You can use `hl.get_config()` to get the current value of a config option. Pass a config option like `"general.layout"`. -Pay attention that the return type of `hl.get_config()` will be a table if that variable accepts values of table type. +Pay attention that the return type of `hl.get_config()` will be a representation of the actual underlying type. For example: If your `general.gaps_in` is set as `gaps_in = 3` in `hl.config()`, `hl.get_config()` returns a table of the form: ```lua @@ -121,10 +121,7 @@ hl.bind(mainMod .. " + SHIFT + G", function() local gapsInValueTable = hl.get_config("general.gaps_in") - if gapsInValueTable.top == 3 and - gapsInValueTable.bottom == 3 and - gapsInValueTable.left == 3 and - gapsInValueTable.right == 3 then + if gapsInValueTable.top == 3 then hl.config({ general = {gaps_in = 0} })