From d9657a95cb6706860332ff47dad444a96bcc874a Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Thu, 4 Dec 2025 17:59:47 +0000 Subject: hyprctl: use new hyprpaper ipc format (#12537) --------- Co-authored-by: Mihai Fufezan --- hyprctl/src/Strings.hpp | 183 ++++++++++++ hyprctl/src/helpers/Memory.hpp | 11 + hyprctl/src/hyprpaper/Hyprpaper.cpp | 148 ++++++++++ hyprctl/src/hyprpaper/Hyprpaper.hpp | 8 + hyprctl/src/main.cpp | 539 ++++++++++++++++++++++++++++++++++++ 5 files changed, 889 insertions(+) create mode 100644 hyprctl/src/Strings.hpp create mode 100644 hyprctl/src/helpers/Memory.hpp create mode 100644 hyprctl/src/hyprpaper/Hyprpaper.cpp create mode 100644 hyprctl/src/hyprpaper/Hyprpaper.hpp create mode 100644 hyprctl/src/main.cpp (limited to 'hyprctl/src') diff --git a/hyprctl/src/Strings.hpp b/hyprctl/src/Strings.hpp new file mode 100644 index 00000000..549d84bb --- /dev/null +++ b/hyprctl/src/Strings.hpp @@ -0,0 +1,183 @@ +#pragma once + +#include + +const std::string_view USAGE = R"#(usage: hyprctl [flags] [args...|--help] + +commands: + activewindow → Gets the active window name and its properties + activeworkspace → Gets the active workspace and its properties + animations → Gets the current config'd info about animations + and beziers + binds → Lists all registered binds + clients → Lists all windows with their properties + configerrors → Lists all current config parsing errors + cursorpos → Gets the current cursor position in global layout + coordinates + decorations → Lists all decorations and their info + devices → Lists all connected keyboards and mice + dismissnotify [amount] → Dismisses all or up to AMOUNT notifications + dispatch [args] → Issue a dispatch to call a keybind + dispatcher with arguments + getoption