summaryrefslogtreecommitdiff
path: root/src/helpers/MiscFunctions.hpp
diff options
context:
space:
mode:
authorBrenno Lemos <brenno@syndel.is>2023-10-22 19:11:03 -0300
committerGitHub <noreply@github.com>2023-10-22 23:11:03 +0100
commitb135bd6cd4c27a9fd94dfa084e75188463c2eb3b (patch)
tree74f04ca3dd010c41f0fd323187bfd916747da151 /src/helpers/MiscFunctions.hpp
parent59f27e7f570170783ac01fb46a0ff90e14de53e6 (diff)
workspacerules: Add new optional "default command" for auto-launching apps on new workspaces (#3559)
Diffstat (limited to 'src/helpers/MiscFunctions.hpp')
-rw-r--r--src/helpers/MiscFunctions.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helpers/MiscFunctions.hpp b/src/helpers/MiscFunctions.hpp
index 429f381f..d489a0cd 100644
--- a/src/helpers/MiscFunctions.hpp
+++ b/src/helpers/MiscFunctions.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <optional>
#include <string>
#include <wayland-server.h>
#include <wlr/util/box.h>
@@ -20,6 +21,7 @@ std::string removeBeginEndSpacesTabs(std::string);
bool isNumber(const std::string&, bool allowfloat = false);
bool isDirection(const std::string&);
int getWorkspaceIDFromString(const std::string&, std::string&);
+std::optional<std::string> cleanCmdForWorkspace(const std::string&, std::string);
float vecToRectDistanceSquared(const Vector2D& vec, const Vector2D& p1, const Vector2D& p2);
void logSystemInfo();
std::string execAndGet(const char*);