diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index ca08e436..a031eee3 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -79,7 +79,7 @@ std::vector instances() { std::vector result; for (const auto& el : std::filesystem::directory_iterator("/tmp/hypr")) { - if (el.is_directory()) + if (el.is_directory() || !el.path().string().ends_with(".lock")) continue; // read lock