diff options
author | Vaxry <[email protected]> | 2024-04-28 22:04:38 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-04-28 22:04:38 +0100 |
commit | 80cff191177a6f1112fb1f49f4dde915cd8de0bc (patch) | |
tree | 4f15a941c7d8e3db6bf34693d21af45a90b23c3c | |
parent | 35cb7f4c3b77850bf4198a34ac9f06dacfba475a (diff) | |
download | Hyprland-80cff191177a6f1112fb1f49f4dde915cd8de0bc.tar.gz Hyprland-80cff191177a6f1112fb1f49f4dde915cd8de0bc.zip |
clang-format
-rw-r--r-- | hyprctl/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index a06a3899..dad49fc4 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -42,7 +42,7 @@ struct SInstanceData { std::vector<SInstanceData> instances() { std::vector<SInstanceData> result; - const std::string USERID = std::to_string(getpwuid(getuid())->pw_uid); + const std::string USERID = std::to_string(getpwuid(getuid())->pw_uid); for (const auto& el : std::filesystem::directory_iterator("/run/user/" + USERID + "/hypr")) { if (!el.is_directory() || !std::filesystem::exists(el.path().string() + "/hyprland.lock")) @@ -166,7 +166,7 @@ void requestHyprpaper(std::string arg) { const std::string USERID = std::to_string(getpwuid(getuid())->pw_uid); - std::string socketPath = "/run/user/" + USERID + "/hypr/" + instanceSignature + "/.hyprpaper.sock"; + std::string socketPath = "/run/user/" + USERID + "/hypr/" + instanceSignature + "/.hyprpaper.sock"; strncpy(serverAddress.sun_path, socketPath.c_str(), sizeof(serverAddress.sun_path) - 1); |