summaryrefslogtreecommitdiff
path: root/src/config/lua
Commit message (Collapse)AuthorAgeFilesLines
* algo/scrolling: various scrolling view related bugfixes (#13974)erstarr2026-05-082-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix scrolling view move when a grouped window is closed - prevent redundant space assignment for a grouped window that's about to be unmapped, add a `FOCUS_REASON` for unmapping grouped windows * fix focus_fallback after unmapping a window floating moving view * fix view change when changing workspaces (special and normal). add an optional `RECALCULATE_REASON` parameter to `recalculate()` calls of all algorithms. add an optional `RECALCULATE_MONITOR_REASON` parameter to `recalculateMonitor()` calls. add 2 new `FOCUS_REASON`s, for workspace change and special workspace toggle * Fix hyprctl keyword causing scrolling view move. rename INPUT_MODE_KB to INPUT_MODE_HARD since it seems to have little to do with keybinds * fix fullscreen/maximise moving the scrolling view * fix opening of layer 3 programs moving scrolling view * refactor, clean up and clang-format * fix bad decisions * fix includes, clang-format. * remove TODO * `focuswindow` no longer moves scrolling view when `follow_focus = 0` * fix: changes in a group's current window no longer casues scrolling view shift when `follow_focus = 0` * fix: `moveintogroup`, `movewindoworgroup` no longer causes scrolling view change if `follow_focus = 0` * clang-format * add `RECALCULATE_REASON_UNKNOWN`, `RECALCULATE_MONITOR_REASON_UNKNOWN`, `REMOVE_FROM_GROUP_REASON_UNKNOWN` remove optional wrapper from their enums, refactor code to work with the change * dispatches that call `switchtoWindow()` in CKeybindManager no longer cause scrolling view to move if `follow_focus = 0`. They still cause the move if `follow_focus = 1` Dispatches effected by this: `movefocus`, `cyclenext`, `focuscurrentorlast`, `focuscurrentorurgent` * Fix for Lua: switchToWondow * Fix for Lua: focus({window}) * Fix for Lua: Move Window Into Group * clang-format * Drop `hyprctl keyword` change * test: `focus({window})` with `follow_focus = false` * test: `focus({window})` with `follow_focus = true` * test: test Focus Fallback * test: Focus Fallback with groups * test: workspace change * test: special workspace toggle * test: workspace change - special to special also minor refactoring * test: close window in a group * test: move window into group `follow_focus = false` minor fix in test: expect -> assert * test: move window into group `follow_focus = true` * test: new layer * test: maximise fix in test: expect to assert. * test: fullscreen * test: `dispatch window.focus({ direction })` when `follow_focus = false` * test: `dispatch window.focus({ direction })` when `follow_focus = true` test-fix: expect -> assert * test: move focus within group when `follow_focus = false` * test: move focus within group when `follow_focus = true` * test-fix: kill all layers before killing all windows in layers test. prevents internal post test cleanup function failing to kill all layers test-fix: maximized and fullscreen swapped between their tests test-fix: testScrollingViewBehaviourMoveFocusInGroupFollowFocusTrue missing layout initialization test-fix: testScrollingViewBehaviourWorkspaceChange, testScrollingViewBehaviourCloseWindowInGroup have stale window class in a comment clang-format * catch up with main: move to new test function * clean-up the clean-up part of the tests: redundant * clang-format * pain * suffering: fix rebase fail * test: manually kill all layers since the cleanup function fails * remove test: fullscreen and maximise. scrolling has its own behaviour now
* config: allow hashes for parsing colors (#14337)Vaxry2026-05-084-4/+11
|
* config: always call refresh after config reload (#14346)Vaxry2026-05-081-2/+1
|
* gestures: add scroll_move (#14063)Vaxry2026-05-071-2/+5
|
* config: use lua by default, generate lua if no config presentVaxry2026-05-072-6/+6
|
* config: fix propRefresher to not run on first launchVaxry2026-05-061-41/+1
|
* config/lua: fix device bool int reads (#14313)ImperishableSecret2026-05-0614-9/+60
| | | | | * config/lua: fix device bool int reads * config/lua: fix device typed reads
* config/lua: add simple layout API (#14258)Vaxry2026-05-0612-30/+705
| | | Adds a simple layout lua api
* config/refresher: refresh watcher state properly (#14307)Vaxry2026-05-061-2/+0
| | | ref #14301
* config/refresher: fix refreshing of cursor zooms (#14283)Vaxry2026-05-061-8/+2
|
* config: add device tags (#13728)ArchSav2026-05-051-0/+1
| | | | | --------- Co-authored-by: Mio Argillander <mio@argillander.me>
* config/lua: add clear tag api (#14273)Lichie2026-05-031-0/+11
|
* config/lua: fix dispatcher shapes to not be callable (#14268)Vaxry2026-05-035-10/+155
| | | this would only lead to abuse, explicitly forbid it
* desktop/windowRule: add `confine_pointer` window rule (#13379)fazzi2026-05-021-0/+1
|
* keybinds: fix keycode matching on lua (#14254)Vaxry2026-05-021-6/+17
|
* config/lua: workspace.move/rename should accept "workspace" instead of "id" ↵Gregor2026-05-021-3/+3
| | | | as a parameter (#14232)
* tests: fix gtests crashing (#14244)Vaxry2026-05-012-4/+7
|
* config/lua: add noopVaxry2026-05-011-0/+10
|
* binds: add an auto_consuming flag (#13919)MightyPlaza2026-04-302-0/+3
|
* config/lua: expand properties in the workspace object (#14194)ImperishableSecret2026-04-295-34/+188
|
* desktop/window: refactor over fullscreen stateVaxry2026-04-291-1/+1
|
* desktop/window: expand hidden into proper statesVaxry2026-04-291-0/+4
|
* animations: add springs (#14171)Vaxry2026-04-293-42/+124
|
* config/lua: fix unbind behavior (#14199)Vaxry2026-04-291-16/+2
|
* config/lua: add ExpressionVec2, allow using a table for vec2 rules (#14197)Vaxry2026-04-285-39/+163
|
* desktop/layerRule: use variants for storage internallyVaxry2026-04-281-3/+8
| | | | Improves storage: less dynamic parsing, immediate config errors, faster.
* desktop/windowRule: use variants for storage internallyVaxry2026-04-282-13/+34
| | | | Improves storage: less dynamic parsing, immediate config errors, faster.
* config/errors: Report and categorize errors properly for actions (#14192)Vaxry2026-04-287-183/+255
| | | | Makes all errors categorized, some not displayed, some displayed. All errors can be obtained after hl.dispatch()
* config/lua: fix window object to selector logicVaxry2026-04-261-1/+1
|
* config/lua: don't pop up an error if no target was found (#14175)Vaxry2026-04-261-2/+2
|
* config/lua: init lua config manager, use lua if available (#13817)Vaxry2026-04-2659-0/+8717
Adds a new lua config manager, which will automatically be used if there is a lua config present.