summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorItsOhen <TNordfeldt@gmail.com>2025-09-20 17:42:02 +0200
committerGitHub <noreply@github.com>2025-09-20 17:42:02 +0200
commit6a88f2e8800d4540ecbbb0d5b3d7f85a05387300 (patch)
treedba47dd224b0a7d0fdc19496e225098167fc5a97 /src/config
parent88326075743a677e76645ff163b392490419d4de (diff)
monitors: auto apply suggested scale and notify the user. (#11753)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/ConfigDescriptions.hpp6
-rw-r--r--src/config/ConfigManager.cpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp
index 70d3dfc9..f2d384b2 100644
--- a/src/config/ConfigDescriptions.hpp
+++ b/src/config/ConfigDescriptions.hpp
@@ -1327,6 +1327,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
.type = CONFIG_OPTION_BOOL,
.data = SConfigOptionDescription::SBoolData{true},
},
+ SConfigOptionDescription{
+ .value = "misc:disable_scale_notification",
+ .description = "disables notification popup when a monitor fails to set a suitable scale and falls back to suggested",
+ .type = CONFIG_OPTION_BOOL,
+ .data = SConfigOptionDescription::SBoolData{false},
+ },
/*
* binds:
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 5cfd47f2..bf94152d 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -522,6 +522,7 @@ CConfigManager::CConfigManager() {
registerConfigVar("misc:enable_anr_dialog", Hyprlang::INT{1});
registerConfigVar("misc:anr_missed_pings", Hyprlang::INT{1});
registerConfigVar("misc:screencopy_force_8b", Hyprlang::INT{1});
+ registerConfigVar("misc:disable_scale_notification", Hyprlang::INT{0});
registerConfigVar("group:insert_after_current", Hyprlang::INT{1});
registerConfigVar("group:focus_removed_window", Hyprlang::INT{1});