summaryrefslogtreecommitdiff
path: root/hyprctl/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* hyprctl: Fix `hyprctl` batch JSON command (#8749)Khalid2024-12-171-1/+3
|
* core: Move regex from stdlib to re2 (#8736)Vaxry2024-12-161-5/+5
| | | Moves the regex handling from stdlib to re2
* core: drop using deques in favor of vectorsVaxry2024-12-161-4/+3
| | | | No point in most of these.
* hyprctl: avoid crash on null pwuidVaxry2024-12-131-3/+9
| | | | fixes #8693
* hyprctl: verify runtime dir exists in instances()Vaxry2024-11-251-0/+5
| | | | ref #8579
* hyprctl: convert std::cout and std::cerr to std::println()Toni500git2024-10-131-18/+19
|
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-261-2/+2
| | | now we roll loops at blazing constified speed.
* core: Include cstring whenever strncpy is used (#7267)Zach DeCook2024-08-101-0/+1
| | | Fixes ppc64le build in alpine
* internal: introduce new types to avoid unsigned int rollover and signed int ↵Tom Englund2024-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | overflow (#7216) * framebuffer: avoid gluint overflow GLuint was being initialized to -1 and rolling over to unsigned int max, its defined behaviour but very unnecessery. add a bool and use it for checking if allocated or not. * opengl: avoid gluint rollover -1 rolls over to unsigned int max, use 0xFF instead. * core: big uint64_t to int type conversion there were a few uint64_t to int implicit conversions overflowing int and causing UB, make all monitor/workspaces/windows use the new typedefs. also fix the various related 64 to 32 implicit conversions going around found with -Wshorten-64-to-32
* hyprctl: increase hyprctl timeout to 5s to fix #6801 (#7152)Tuur Vanhoutte2024-08-021-1/+1
|
* hyprctl: add a newline after log()Vaxry2024-06-241-1/+1
|
* hyprctl: make recv timeout bigger and give error message if it does timeout ↵Ikalco2024-06-221-1/+3
| | | | (#6621)
* hyprctl: added --follow option to rolliglog (#6325)Alexander2024-06-141-8/+63
| | | Co-authored-by: Крылов Александр <aleksandr.krylov@hyperus.team>
* core: move to hyprutils for utils (#6385)Vaxry2024-06-111-6/+2
| | | | | | | | | | | | | * 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>
* hyprctl: add --quiet flag (#6380)diniamo2024-06-091-19/+29
|
* hyprctl: Add Config Flag to `hyprctl systeminfo` (#6160)Gabriel Ford2024-05-251-0/+2
|
* hyprctl: return exitStatus in requestHyprpaper() and request() (#6083)Raphael Tannous2024-05-151-27/+31
|
* hyprctl: fix instances pathVaxry2024-05-011-1/+1
| | | | fixes #5831
* hyprctl: use XDG_RUNTIME_DIR if availableVaxry2024-04-301-5/+14
| | | | fixes #5813
* core: Move /tmp/hypr to $XDG_RUNTIME_DIR/hypr (#5788)Vaxry2024-04-281-8/+14
| | | | | | Moves the directory containing sockets and logs. Also restructures lockfiles a bit. For consumers, check if `$XDG_RUNTIME_DIR/hypr` exists. If so, use it. If not, use the old `/tmp/hypr`.
* compositor: more fs safety around tmp directoriesVaxry2024-04-281-1/+1
| | | | HIS now includes a random bit, and hyprland will bail if /tmp/hypr is not a directory or if /tmp/hypr/his exists
* hyprctl: improve help pages (#5385)Micovec2024-04-031-49/+27
|
* hyprctl: output json with `--batch` if requested (#5277)Khalid2024-03-261-3/+9
|
* hyprctl: add missing commands to usage (#5211)Andrey Donets2024-03-211-0/+3
|
* hyprctl: hide unmapped windows without -aVaxry2024-03-081-0/+2
|
* notifs: Implement notification dimissing (#4790)ItsDrike2024-03-021-0/+3
|
* hyprctl: add missing newline in error case of missing ↵Sergei Trofimovich2024-02-241-1/+1
| | | | | | | | | | | | | | | | | `HYPRLAND_INSTANCE_SIGNATURE` (#4832) Before the change running a `hyprctl` in incomplete `Hyprland` environment merged error message and prompt for me as: $ hyprctl activewindow HYPRLAND_INSTANCE_SIGNATURE not set! (is hyprland running?)$ (note trailing `$` prompt). After the change the newline is present as expected: $ hyprctl activewindow HYPRLAND_INSTANCE_SIGNATURE not set! (is hyprland running?) $
* hyprctl: ignore non-lock files for instancesVaxry2024-02-241-1/+1
|
* hyprctl: fix showing invalid instancesVaxry2024-02-241-2/+2
|
* hyprctl: add -r argumentVaxry2024-02-241-0/+3
|
* hyprctl: more safety around stoullVaxry2024-02-181-2/+6
|
* hyprctl: remove hardcoded hyprctl commands. (#4671)Alessio Molinari2024-02-121-44/+3
| | | | | | | * fix: remove hardcoded hyprctl commands. This allows plugin to properly register hyprctl commands. * fix: restore commands with min args
* hyprctl: add systeminfovaxerski2024-01-011-0/+3
|
* hyprctl: add decorations (#4275)MightyPlaza2023-12-281-0/+3
| | | | | | | | | | | | | | | | | | * add hyprctl decorations modified: hyprctl/main.cpp modified: src/debug/HyprCtl.cpp modified: src/render/decorations/CHyprBorderDecoration.cpp modified: src/render/decorations/CHyprBorderDecoration.hpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprDropShadowDecoration.hpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.hpp modified: src/render/decorations/IHyprWindowDecoration.cpp modified: src/render/decorations/IHyprWindowDecoration.hpp * fixes modified: hyprctl/main.cpp modified: src/render/decorations/IHyprWindowDecoration.cpp
* hyprctl: allow instances without HISVaxry2023-12-081-2/+6
|
* hyprctl: order commands alphabetically (#4061)Tungsten8422023-12-051-17/+17
|
* hyprctl: Add 'layouts' command (#3895)zakk42232023-11-211-0/+3
| | | | | | | | | | | * Add hyprctl 'layouts' command formatting * Add getAllLayoutNames(), move m_vLayouts back to private Formatting * clang-format
* logging: move to an internal rolling log bufferVaxry2023-11-141-0/+2
| | | | disables logging to the logfile by default
* hyprctl: Fix build warnings (#3821)Greatly Pleased2023-11-101-3/+2
|
* hyprctl: add a query for workspace rules (#3630)Roberto Previdi2023-10-211-0/+3
|
* logging/format: use std::format_string to catch formatting string errors at ↵memchr2023-09-201-23/+10
| | | | | | | compile time (#3377) * fix(log): use constexpr format string * deprecate getFormat
* hyprctl: fix hyprpapervaxerski2023-08-131-8/+6
|
* hyprctl: remove logvaxerski2023-08-091-2/+0
|
* hyprctl: fix old request methodsvaxerski2023-08-081-85/+7
|
* hyprctl: add --instancevaxerski2023-08-081-53/+96
|
* internal: add lock files and hyprctl instancesvaxerski2023-08-081-0/+92
|
* Add `activeworkspace` hyprctl command (#2202)Yavor Kolev2023-05-021-1/+6
| | | | | | | | | | | * Add `activeworkspace` hyprctl command * fix format in hyprctl * Make stuff more shared in workspace hyprctl --------- Co-authored-by: vaxerski <43317083+vaxerski@users.noreply.github.com>
* internal: unhardcode sun_path size after a6cfe7042897 (#2137)Jan Beich2023-04-231-2/+2
| | | | | | | | | | | hyprctl/main.cpp:83:5: warning: 'strncpy' size argument is too large; destination buffer has size 104, but size argument is 107 [-Wfortify-source] strncpy(serverAddress.sun_path, socketPath.c_str(), 107); ^ hyprctl/main.cpp:146:5: warning: 'strncpy' size argument is too large; destination buffer has size 104, but size argument is 107 [-Wfortify-source] strncpy(serverAddress.sun_path, socketPath.c_str(), 107); ^ src/managers/EventManager.cpp:70:9: warning: 'strncpy' size argument is too large; destination buffer has size 104, but size argument is 107 [-Wfortify-source] strncpy(SERVERADDRESS.sun_path, socketPath.c_str(), 107); ^
* hyprctl: allow spaces in cursor themesvaxerski2023-04-201-1/+4
|
* internal: avoid buffer overflows with socket pathsvaxerski2023-04-171-2/+2
|