From 949eb426136aef2690c31acc6389016aa8755ac8 Mon Sep 17 00:00:00 2001 From: Micovec <30734146+Micovec@users.noreply.github.com> Date: Wed, 3 Apr 2024 22:41:10 +0200 Subject: [PATCH] hyprctl: improve help pages (#5385) --- hyprctl/Strings.hpp | 158 ++++++++++++++++++++++++++++++++++++++++++++ hyprctl/main.cpp | 76 ++++++++------------- 2 files changed, 185 insertions(+), 49 deletions(-) create mode 100644 hyprctl/Strings.hpp diff --git a/hyprctl/Strings.hpp b/hyprctl/Strings.hpp new file mode 100644 index 000000000..951c6a7fe --- /dev/null +++ b/hyprctl/Strings.hpp @@ -0,0 +1,158 @@ +#pragma once + +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