summaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2026-05-02 19:23:09 +0100
committerVaxry <vaxry@vaxry.net>2026-05-02 19:23:09 +0100
commit30cd345addf0412baf87b71ad7213508c534e334 (patch)
treee2bcbade706cca3a9df99ea8a7388386c4e07d2d /src/debug
parenta3fa7b49503d8eadd644d68c5bc452b600a11935 (diff)
hyprctl: fix bools in getoption
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/HyprCtl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index e84a5552..b6777de3 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -1632,6 +1632,8 @@ static std::string dispatchGetOption(eHyprCtlOutputFormat format, std::string re
if (format == FORMAT_NORMAL) {
if (TYPE == typeid(Config::INTEGER))
return std::format("int: {}\nset: {}", **rc<Config::INTEGER* const*>(VAL), VAR.setByUser);
+ else if (TYPE == typeid(Config::BOOL))
+ return std::format("bool: {}\nset: {}", **rc<Config::BOOL* const*>(VAL), VAR.setByUser);
else if (TYPE == typeid(Config::FLOAT))
return std::format("float: {:2f}\nset: {}", **rc<Config::FLOAT* const*>(VAL), VAR.setByUser);
else if (TYPE == typeid(Config::VEC2))
@@ -1655,6 +1657,8 @@ static std::string dispatchGetOption(eHyprCtlOutputFormat format, std::string re
} else {
if (TYPE == typeid(Config::INTEGER))
return std::format(R"({{"option": "{}", "int": {}, "set": {} }})", curitem, **rc<Config::INTEGER* const*>(VAL), VAR.setByUser);
+ else if (TYPE == typeid(Config::BOOL))
+ return std::format(R"({{"option": "{}", "bool": {}, "set": {} }})", curitem, (**rc<Config::BOOL* const*>(VAL)) ? "true" : "false", VAR.setByUser);
else if (TYPE == typeid(Config::FLOAT))
return std::format(R"({{"option": "{}", "float": {:2f}, "set": {} }})", curitem, **rc<Config::FLOAT* const*>(VAL), VAR.setByUser);
else if (TYPE == typeid(Config::VEC2))