diff --git a/example/hyprland.conf b/example/hyprland.conf index 244f46e7..156192ca 100644 --- a/example/hyprland.conf +++ b/example/hyprland.conf @@ -3,7 +3,7 @@ # # Refer to the wiki for more information. -monitor=,1280x720@60,0x0,0.5,1 +monitor=,1280x720@60,0x0,1 workspace=DP-1,1 input { diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index c4977518..64da8039 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -185,10 +185,6 @@ void CConfigManager::handleMonitor(const std::string& command, const std::string nextItem(); - newrule.mfact = stof(curitem); - - nextItem(); - newrule.scale = stof(curitem); // overwrite if exists @@ -547,7 +543,7 @@ SMonitorRule CConfigManager::getMonitorRuleFor(std::string name) { Debug::log(WARN, "No rules configured. Using the default hardcoded one."); - return SMonitorRule{.name = "", .resolution = Vector2D(1280, 720), .offset = Vector2D(0, 0), .mfact = 0.5f, .scale = 1}; + return SMonitorRule{.name = "", .resolution = Vector2D(1280, 720), .offset = Vector2D(0, 0), .scale = 1}; } std::vector CConfigManager::getMatchingRules(CWindow* pWindow) { diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp index 4c2c5660..044b9751 100644 --- a/src/config/ConfigManager.hpp +++ b/src/config/ConfigManager.hpp @@ -22,7 +22,6 @@ struct SMonitorRule { std::string name = ""; Vector2D resolution = Vector2D(1280,720); Vector2D offset = Vector2D(0,0); - float mfact = 0.5; float scale = 1; float refreshRate = 60; int defaultWorkspaceID = -1; diff --git a/src/config/defaultConfig.hpp b/src/config/defaultConfig.hpp index 98e32d33..2f7937d7 100644 --- a/src/config/defaultConfig.hpp +++ b/src/config/defaultConfig.hpp @@ -11,7 +11,7 @@ OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS. autogenerated=1 # remove this line to get rid of the warning on top. -monitor=,1920x1080@60,0x0,0.5,1 +monitor=,1920x1080@60,0x0,1 input { kb_layout=