summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* master: Fix master layout window focus and scroll (#5074)thejch2024-03-131-1/+5
| | | | | | | | | | | * fix master switch window scrolling * fix some more dispatchers and remove some duplicate code * refactor and remove duplicate code * fix focusmonitor: https://github.com/hyprwm/Hyprland/issues/5006#issuecomment-1986977255 * change check
* keybinds: Fix typo (#5081)Ikko Eltociear Ashimine2024-03-121-1/+1
| | | minor fix
* core: Fix typo and check grandchild PID in spawn() (#5070)Lucas Reis2024-03-111-2/+2
|
* deps: update wlrootsVaxry2024-03-091-8/+8
|
* keybinds: track submap at press for keypressesVaxry2024-03-091-1/+3
| | | | fixes #5037
* keybinds: Allow fullscreen/maximize in special workspace (#4921)thejch2024-03-041-3/+0
| | | | | | | | | | | | | | | * allow fullscreen/maximize in special workspace * remove duplicate code * hide top layer * fix special fullscreen deco * edit * fix fade top layer when toggle special * remove double render
* keybinds: Better handling of workspace_back_and_forth (#4952)Tom Benham2024-03-041-11/+24
| | | | | | | | | | | * Removed redundant boolean condition * Better handling of workspace_back_and_forth when using focusworkspaceoncurrentmonitor dispatcher * Fixed config acquisition --------- Co-authored-by: Tom Benham <tom.benham@quadrille.fr>
* config: improve config value infrastructureVaxry2024-03-031-62/+63
|
* keybinds: Add the 'catchall' keyword that matches all keys (#4930)Tobias Zimmermann2024-03-031-11/+5
| | | | | | | | | | | | | | | | * 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.
* animations: Refactor AnimatedVariable (#4911)GartoxFR2024-03-021-26/+26
| | | | | | | | | | | | | | | | | | | | | | | * animation: Refactor AnimatedVariable This commit decomposes the AnimatedVariable class into a base class with the common attribute to all variable types and a templated derived type containing strongly typed info on the type being animated. Access to the typed version is perfomed using the visitor pattern. A utility is provided to build a visitor on the fly using lambdas. Adding a new type to be animated should just be a matter of adding the typed in the list defined by the ANIMABLE_TYPES macro The size of the commit is justified by the API change in the AnimatedVariable class. No more vec(), fl() or col() method but a unified value() method. * animation: Remove visitor pattern * animation: Fix coding style * animation: Fix coding style
* keybinds: unconstrain mouse on focusmonitor and cyclenext (#4863)JManch2024-02-281-9/+4
|
* config: Add option to resolve keybinds by sym instead of code (#4851)Tobias Zimmermann2024-02-271-1/+1
| | | | | | | | | | | | | | This commit adds the new configuration option 'resolve_binds_by_sym' which can be set globally or per-device. It is off by default, which preserves the current behavior. This setting only affects the behavior of keybinds that are defined via key symbols, not those defined via keycode. Binds defined by symbols currently activate if the keycode pressed would generate the specified symbol on the first layout specified in the input section. If enabled, keys pressed on the relevant device will instead match keybinds by the symbols they produce with their current layout. Closes #1881.
* wayland: implement keyboard_shortcuts_inhibit_v1Vaxry2024-02-271-0/+9
| | | | fixes #4568
* input: Map touch devices and tablets bound to an output (#3544)Philip Damianik2024-02-271-1/+1
| | | | | | | | | | | * Map bound touch devices and tablets to an output * Add "[[Auto]]" default option for auto detecting outputs for touch inputs * Bind new monitors to configured touch and tablet devices * Use Monitor::matchesStaticSelector in CConfigManager::getMonitorRuleFor * Use Monitor::matchesStaticSelector in CCompositor::getMonitorFromString
* keybinds: fix movewindoworgroup onto empy workspace on next monitor (#4486)Bernd Müller2024-02-261-1/+5
| | | | | | | | | * fix: movewindoworgroup when no window or group is in desired direction, e.g. move window onto empty workspace on next monitor * fix: movewindoworgroup when no window or group is in desired direction, e.g. move window onto empty workspace on next monitor * reset flake.nix * add: changes mentioned in review of #4486
* keybinds: focus floating on top of fsVaxry2024-02-261-7/+16
|
* keybinds: fix focuswindow for fullscreen (#4840)shezdy2024-02-261-6/+20
| | | | | | | | | * focuswindow fix * fix format --------- Co-authored-by: ddmetz <77217897+ddmetz@users.noreply.github.com>
* keybinds: fix keys without keysyms triggering random binds (#4739)rszyma2024-02-191-1/+13
|
* Migrate the config to hyprlang (#4656)Vaxry2024-02-181-46/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Migrate to hyprlang * pop up errors * fix swapped args * Meson & Nix: build with hyprlang * CI: add hyprlang to setup action * add infra for plugin stuff * fix hyprctl getoption * fix hyprctl getoption with json * format * fix post parse logic * fix autogen config * oops missed exec-once * fmt * fix ws rules * require 0.3.0 for hyprlang * nix: flaek * minor type fixes * fix cfg usages in swipe * use cvarlist for ws rules * fix throw in addPluginConfigVar * Nix: update hyprlang * minor fixes * fix disableLogs * mention hyprlang docs * bump hyprlang dep in cmake * Meson: bump min hyprlang version Nix: update hyprlang * minor fix * Nix: update meson patch --------- Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
* keybinds: Add an option to pass a window argument to moveoutofgroup (#4724)Federico Maria Morrone2024-02-171-3/+8
| | | | | * keybinds: allow passing window to moveoutofgroup * keybinds: cleaner handling of certain args
* dispatchers: add Fullscreen without sending fullscreen to application (#4720)epicgamer2567052024-02-171-0/+3
| | | | | | | | | | | * Add extra option to fullscreen * Remove useless branch fixes #1817 --------- Co-authored-by: matteo bob <matteo4375@gmail.com>
* dwindle: add swapsplit dispatcher (#4702)Niklas Haas2024-02-141-0/+16
| | | | | | 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: Fix focus not moving along when moving workspace (#4660)Sefa Eyeoglu2024-02-091-2/+6
| | | | | --------- Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
* keybinds: focusWorkspaceOnCurrentMonitor: use focused monitor instead (#4625)Epilepsy Gatherings2024-02-051-1/+1
|
* input: focus window on mouse down on decoration (#4514)MightyPlaza2024-02-041-4/+5
| | | Also unifies vectorToWindow funcs
* keybinds: fix ignoremods with releaseVaxry2024-02-021-1/+1
|
* monitor: wrap usage of wlr_output_stateVaxry2024-01-281-2/+2
| | | | | | for better control and convenience in usage. fixes #4546
* deps: update wlrootsVaxry2024-01-271-2/+2
| | | | drops requirement for WLR_DRM_NO_ATOMIC provided kernel >= 6.8
* keybinds: avoid duplicated held keys, only use last, remove allvaxerski2024-01-191-2/+0
| | | | ref #4471
* core: improve cleanup logicvaxerski2024-01-191-1/+1
|
* keybinds: Add dispatcher for xmonad/qtile-style workspace switching (#4439)virchau132024-01-151-58/+101
| | | | | | | | | | | | | | | * 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-20/+25
|
* keybinds: Refocus only if the silently moved window had the focus (#4328)dranull2024-01-021-4/+6
|
* keybinds: fix keys getting stuck + minor refactor & optimizations to keybind ↵rszyma2024-01-011-49/+111
| | | | handling (#4304)
* input: Ignore some input events when focus is on a layer surface (#4306)dranull2024-01-011-4/+6
| | | | | * No motion events with focus on LS on workspace change * Don't check scroll events on decorations with focus on LS
* deco: fix missing border on togglefloating (#4305)MightyPlaza2023-12-301-0/+1
| | | modified: src/managers/KeybindManager.cpp
* internal: Unify input handling on decorations (#4280)dranull2023-12-281-11/+2
| | | | | | | * Unify input handling on decorations * Make input methods private * Optional data
* dispatchers: add tiled/floating to cyclenextvaxerski2023-12-241-3/+11
|
* internal: fix interactions with fakefullscreen (#4113)François Conzelmann2023-12-111-2/+1
| | | | | - In a maximized window, unstuck fakefullscreen from on state - In a fakefullscreen window, going in and out of fullscreen state keep the fakefullscreen state rendered
* README: add note about hyprpm + clang-formatVaxry2023-12-071-3/+3
|
* keybinds: check for null last monitor in changeworkspace (#4077)ddmetz2023-12-071-0/+4
|
* managers: fix debug log using printf format (#4007)François Conzelmann2023-11-301-2/+2
| | | | Some debug messages where using printf format style to print variable content instead of std::format format.
* monitor: remove comma from monitor description (#3996)François Conzelmann2023-11-301-1/+1
| | | | | | this allows for monitor specific rules to work on monitor with comma on their description fixes #2457
* exec: remove redundant environment variables from spawn (#3923)thejch2023-11-241-5/+0
|
* internal: Allow floating windows on special (#3872)Vaxry2023-11-181-6/+2
| | | | | | | * allow floating on special * fix mistake * fix clipbox
* keybinds: Close special workspace after moving windows out of it (#3649)thejch2023-11-151-0/+5
| | | | | * use old monitor * use pMonitor for for special workspace
* internal: make getPlusMinusKeywordResult return optionalVaxry2023-11-121-17/+9
|
* internal: replace INT_MAX with WORKSPACE_INVALIDVaxry2023-11-121-6/+6
|
* decorations: Decoration Positioner (#3800)Vaxry2023-11-111-4/+4
|
* binds: add movefocus_cycles_fullscreenVaxry2023-11-041-2/+3
| | | | fixes #3738