diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2024-06-11 17:17:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-11 17:17:45 +0200 |
| commit | 8c64a4bad710fb18e9b84812bd680a89d1e93661 (patch) | |
| tree | 2439b8408abd8e14f6af35ef9cfbeb7c51429f99 /src/managers/KeybindManager.cpp | |
| parent | 1f46296ea05f9a8e6020ab694b531c91a1abdfa6 (diff) | |
core: move to hyprutils for utils (#6385)
* core: move to hyprutils for utils
Nix: add hyprutils dep
* Meson: add hyprutils dep
* flake.lock: update
---------
Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 5811f4a1..49ea39a3 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -6,13 +6,16 @@ #include "KeybindManager.hpp" #include "TokenManager.hpp" #include "debug/Log.hpp" -#include "helpers/VarList.hpp" +#include "helpers/varlist/VarList.hpp" #include <optional> #include <iterator> #include <string> #include <string_view> +#include <hyprutils/string/String.hpp> +using namespace Hyprutils::String; + #include <sys/ioctl.h> #include <fcntl.h> #include <vector> @@ -836,7 +839,7 @@ bool CKeybindManager::handleInternalKeybinds(xkb_keysym_t keysym) { void CKeybindManager::spawn(std::string args) { - args = removeBeginEndSpacesTabs(args); + args = trim(args); std::string RULES = ""; |
