summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.hpp
Commit message (Collapse)AuthorAgeFilesLines
* core: move all shared_ptrs from the STL to hyprutils (#9143)Vaxry2025-01-231-1/+1
|
* selectors: add a tag: to for matching window tag(s) by regex (#8985)zakk42232025-01-091-0/+1
|
* keybinds: add new window destruction dispatchers (#8962)littleblack1112025-01-081-1/+5
|
* internal: added reference to CTimer class in KeybindManager (#8836)Avi Herman2024-12-251-0/+1
|
* pluginAPI: add register dispatcher v2Vaxry2024-12-191-6/+0
|
* core: drop using deques in favor of vectorsVaxry2024-12-161-28/+28
| | | | No point in most of these.
* core: Add clang-tidy (#8664)Vaxry2024-12-071-3/+4
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* keybinds: move to managed pointersVaxry2024-11-181-5/+5
|
* keybinds: allow repeating multiple binds (#8290)MightyPlaza2024-11-181-4/+3
|
* bind: new long press option (#8302)littleblack1112024-11-151-1/+4
| | | | | --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
* hyprctl: move setprop into dispatchers (#8275)MightyPlaza2024-10-281-0/+1
| | | | | | | | | * move setprop into dispatchers modified: src/debug/HyprCtl.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp * add deprecated modified: src/debug/HyprCtl.cpp
* internal: Move CMonitor to SP (#8178)Vaxry2024-10-191-1/+1
| | | | | * move monitors to sp * XD
* hyprctl: add submap requestvaxerski2024-09-241-0/+1
| | | | fixes #7898
* input: move dmps activation to input listeners (#7721)Maximilian Seidler2024-09-091-0/+1
|
* workspacerules: fix on-created-empty window focus (#7657)Sungyoon Cho2024-09-061-1/+2
|
* keybinds: refactor dispatchers to be better (#7331)Ikalco2024-08-241-82/+89
|
* internal: refactor fullscreen states (#7104)MightyPlaza2024-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor fullscreen modified: src/Compositor.cpp modified: src/Compositor.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/LayerSurface.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/desktop/Workspace.hpp modified: src/events/Windows.cpp modified: src/helpers/Monitor.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/DwindleLayout.hpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp modified: src/layout/MasterLayout.hpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/IdleInhibitor.cpp modified: src/managers/input/InputManager.cpp modified: src/managers/input/Swipe.cpp modified: src/protocols/ForeignToplevelWlr.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * clean up modified: src/config/ConfigManager.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/events/Windows.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/input/Swipe.cpp * fix mapWindow fullscreen modified: src/events/Windows.cpp * fix typo modified: src/desktop/Workspace.cpp * add fullscreenstate modified: src/config/ConfigManager.cpp modified: src/events/Windows.cpp * change syncFullscreen to lower modified: src/config/ConfigManager.hpp * initialize fs state modified: src/desktop/Window.hpp
* input: unify removing currentlyDraggedWindow (#7071)MightyPlaza2024-07-271-1/+2
| | | | | | | | modified: src/desktop/Window.cpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/InputManager.cpp
* keybinds: remove toggleopaque (#7024)MightyPlaza2024-07-241-1/+0
| | | | modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp
* keybinds: add bindp and noshortcutsinhibit (#7017)MightyPlaza2024-07-241-0/+1
|
* Core: Move to aquamarine (#6608)Vaxry2024-07-211-0/+1
| | | | | | | | | | | | | | Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
* keybinds: add custom event dispatcherVaxry2024-06-151-0/+1
| | | | fixes #3439
* binds: Add description to key binds (#6358)Moritz G2024-06-111-17/+19
| | | | | --------- Co-authored-by: Yusuf Duran <firatyusuf.d@gmail.com>
* config: add tag dispacther and window rule (#6211)giskard2024-05-281-0/+1
|
* keybinds: Added new dispatcher (sendshortcut) (#6174)Can2024-05-241-0/+7
|
* keybinds: add keybind combos and add Left and Right mod distinction. (#5966)Gabriel Ford2024-05-161-14/+29
|
* cursor: move to a hyprland implVaxry2024-05-091-3/+4
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* input: Introduce basic hyprland HID classesVaxry2024-05-031-1/+2
| | | | | | Implements an intermediary HID class for mice, keyboards and touch devices, removing the old structs from WLClasses.hpp Yes, virtual ones are duplicated a bit, but will likely be de-duped once wlr_input_device is not used anymore.
* internal: fix a few asan reported leaks on exit of hyprland (#5852)Tom Englund2024-05-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * notifications: free cairo images on destruction asan reports a leak on exit if we dont free the image we created in the draw function. add a destructor and free images on exit. * compositor: destroy wlroots types on exit there are a few types not being destroyed on exit and causing a leak on exit in wlroots reported by asan, add those. * cursormgr: ensure we destroy cursor mgr on exit add a destructor and call wlr_xcursor_manager_destroy on the manager on destruction, leak reported by asan. * keybindmgr: free state and keymap add missing keymap_unref on creation, and add a destructor and free the state on exit. leak reported by asan. * skeyboard: add destructor and free state free the state on destruction of keyboard, reported as leak by asan
* internal: Window storage rework - part 1 (#5762)Vaxry2024-04-271-3/+3
| | | | | | | | | | | | | | | | | * Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks
* shortcuts-inhibitor: move to new implVaxry2024-04-251-1/+0
|
* config: Expand on window matching (#5518)SoSeDiK2024-04-211-1/+4
| | | | | * Expand on window matching * Requested changes
* workspacerules: add back on-created-empty functionality (#5452)staz2024-04-061-0/+1
| | | | | | | | | | | | | | | * workspacerules: add back on-created-empty functionality * clang format * workspacerules: spawn on-created-empty window while initializing CWorkspace * clang format * configManager: fix typo --------- Co-authored-by: Your Name <you@example.com>
* keybinds: fix spammy warningVaxry2024-04-041-2/+0
|
* keybinds: add Dispatchers for "force float" and "force tiling" (non-toggle) ↵djvs2024-03-171-0/+4
| | | | | | | | | (#5137) --------- Co-authored-by: djvs <djvs@users.noreply.github.com>
* keybinds: track submap at press for keypressesVaxry2024-03-091-0/+1
| | | | fixes #5037
* keybinds: Add the 'catchall' keyword that matches all keys (#4930)Tobias Zimmermann2024-03-031-1/+8
| | | | | | | | | | | | | | | | * Add the 'catchall' keyword that matches all keys This keyword can be used to define arbitrary keybinds. The only special behavior that it exhibits is that it matches every key, including modifier keys. Any flags still apply normally. This commit also fixes an issue that keys bound via the code:KEYCODE format were not unbound correctly. * Disallow catchall keybinds outside of submaps A catchall keybind outside a submap would prevent essentially all key events from going through to applications and would be difficult to remove again.
* wayland: implement keyboard_shortcuts_inhibit_v1Vaxry2024-02-271-0/+1
| | | | fixes #4568
* dwindle: add swapsplit dispatcher (#4702)Niklas Haas2024-02-141-0/+1
| | | | | | This is distinct from `swapwindow` in that it allows swapping the entire tree node with its neighbour. Fixes: https://github.com/hyprwm/Hyprland/issues/4701
* keybinds: Add dispatcher for xmonad/qtile-style workspace switching (#4439)virchau132024-01-151-0/+1
| | | | | | | | | | | | | | | * feat: implement xmonad/qtile-style workspace switching Implements the focusWorkspaceOnCurrentMonitor dispatcher and function, which implements XMonad/Qtile-style workspace switching. When called, focusWorkspaceOnCurrentMonitor will: 1. Send the requested workspace to the current monitor, 2. If the workspace was previously active on a different monitor, replace it with the workspace that was previously active on the current monitor, 3. Focus the workspace on the current monitor. * fix: address PR comments
* keybinds: fix tracking of sent key statesvaxerski2024-01-101-0/+1
|
* keybinds: fix keys getting stuck + minor refactor & optimizations to keybind ↵rszyma2024-01-011-23/+30
| | | | handling (#4304)
* style/ci: apply clang-format and verify it in ci (#4039)François Conzelmann2023-12-061-2/+1
| | | | | * style: apply clang-format * ci: add new clang-format job to CI
* binds: add ignoreMods flagVaxry2023-10-171-1/+3
|
* windowrules: add rule `group` to map windows grouped (#3279)memchr2023-09-221-0/+1
| | | | | * windows: add rule group to map windows grouped * group rule: use `invade` to force open a window in a locked group
* keybinds: implement pushactivetobottom dispacher (#3217)alaricljs2023-09-211-0/+1
| | | Co-authored-by: Leeman <lstrout@enlj.com>
* layout: add direction parameter to onWindowCreated and friends (#3269)memchr2023-09-131-1/+1
| | | | | | | | | | | | | | | | | | * feat(layout): add direction parameter to onWindowCreated and friends In addition: - Implement directional moveWindowOutOfGroup for `movewindoworgroup` when using dwindle layout. (augmentation of #3006) - Replace `DWindleLayout::OneTimeFocus` with `IHyprLayout::eDirection`. - Slight formatting change (clang-format). * fix: nullptr dereference in dwindle window creation * refactor: generalized eDirection * refactor: eliminate DIRECTION_NONE * Update IHyprLayout.hpp
* feat: add a new movewindoworgroup dispatcher (#3006)memchr2023-09-101-2/+5
|
* keybinds: track pressed special bindsvaxerski2023-09-101-0/+1
| | | | Ignore mods only if we're processing a special bind, and only if it's pressed. Otherwise we might shadow normal key releases via ignoring mods. Fixes #3240
* refactor: replace lambdas with CKeybindManager::switchToWindow (#3229)memchr2023-09-101-0/+1
| | | | | | | moves `switchToWindow` lambdas to a single private method `CKeybindManager::switchToWindow()`. fixes #3227, as a by-product of the mouse motion simulation at the end of `CKeybindManager::switchToWindow()`.