workspacerules: Add new optional "default command" for auto-launching apps on new workspaces (#3559)
This commit is contained in:
parent
59f27e7f57
commit
b135bd6cd4
8 changed files with 100 additions and 30 deletions
|
|
@ -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*);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue