aboutsummaryrefslogtreecommitdiff
path: root/niri-config/src
AgeCommit message (Collapse)Author
2024-07-22feat: negative struts (to remove outer gaps)Salman Farooq
2024-07-16Implement gradient color interpolation option (#548)Ivan Molodetskikh
* Added the better color averaging code (tested & functional) * rustfmt * Make Color f32 0..1, clarify premul/unpremul * Fix imports and test name * Premultiply gradient colors matching CSS * Fix indentation * fixup * Add gradient image --------- Co-authored-by: K's Thinkpad <K.T.Kraft@protonmail.com>
2024-07-13Add middle-emulation libinput flagIvan Molodetskikh
2024-07-10Add move-column-{left/right}-or-to-monitor-{left/right} (#528)Winter
* feature added, move-column-left-or-monitor-left and move-column-right-or-monitor-right * fixed stupid mistake * yalter's fixes * fixed names * fixed a stupid mistake --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-07-08screenshot-ui: Animate openingIvan Molodetskikh
2024-07-08bump smithayChristian Meissl
2024-07-07Implement toggling pointer for the screenshot UIIvan Molodetskikh
2024-07-05Implement focus-follows-mouse max-scroll-amountIvan Molodetskikh
2024-07-05Implement key repeat for compositor bindsSalman Farooq
2024-07-05Added Commnads to focus windows or Monitors above/below the active window (#497)TheAngusMcFire
* Implement focus-window-up/down-or-monitor calls * Fixed wrong naming of focus-window-or-monitor commands * fix copy pase errors for focusing direction * Fixed wrong behaviour when the current workspace is empty * Cleanup navigation code to reduce complexity * Fix wrong comments and add testcases for FocusWindowOrMonitorUp/Down --------- Co-authored-by: Christian Rieger <christian.rieger@student.tugraz.at>
2024-07-05Put Outputs config into a dedicated structIvan Molodetskikh
2024-06-28feat: add `focus-column-or-monitor-left`, `focus-column-or-monitor-right` (#456)Filipe Paniguel
* feat: add support for focus-window-or-monitor * addresses output without window case * refactor: reduce verbosity * update this.. * refactor: rename `maybe_focus_window` functions * refactor: flip focus_window_or_output return logic * Update src/layout/mod.rs Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> * refactor: rename to Column * move blocks next to other Column variables --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-06-18config: Remove obsolete FIXMEIvan Molodetskikh
2024-06-18Make scale use FloatOrIntIvan Molodetskikh
2024-06-18Refactor layout to fractional-logicalIvan Molodetskikh
Lets borders, gaps, and everything else stay pixel-perfect even with fractional scale. Allows setting fractional border widths, gaps, struts. See the new wiki .md for more details.
2024-06-17niri-config: Add pretty-assertions to testsIvan Molodetskikh
The config parse test is pretty big and it's impossible to tell the difference from the normal assert.
2024-06-09Add `focus-column-right-or-first`, `focus-column-left-or-last` (#391)James Sully
* add focus-column-right-or-first * add focus-column-left-or-last
2024-05-29Add "off" and "disabled-on-external-mouse" properties to input devicesYuya Nishihara
This is called "events <mode>" in Sway, but we decided to use more abstracted form for consistency with the other config items. "disabled-on-external-mouse" is added only to touchpads, but there might be other devices that support this option. I think "off" also applies to keyboards, but I'm not going to add the one because we don't have libinput machinery for the keyboard config, and it's unlikely that user wants to disable _all_ keyboards. OTOH, pointer devices can be disabled per type. Perhaps, this should be revisited after implementing #371.
2024-05-28Fix copy-paste error in scroll-method error messageYuya Nishihara
2024-05-26Add scroll-method property to pointer devicesYuya Nishihara
My use case is to enable middle-button scroll on my keyboard with pointing stick. The device is recognized as USB mouse.
2024-05-24Added actions to allow focusing up or down as normal but to wrap to the ↵Micah N Gorrell
column to the left or right if there is no window above or below
2024-05-21Add left-handed input propertyIvan Molodetskikh
Closes https://github.com/YaLTeR/niri/issues/366
2024-05-19Add Default impl for niri_config::KeyboardIvan Molodetskikh
Fixes https://github.com/YaLTeR/niri/issues/357
2024-05-16Implement at-startup window ruleIvan Molodetskikh
2024-05-16Fix missing check in Match PartialEqIvan Molodetskikh
2024-05-16Make workspace names case-insensitiveIvan Molodetskikh
2024-05-16Implement named workspacesGergely Nagy
This is an implementation of named, pre-declared workspaces. With this implementation, workspaces can be declared in the configuration file by name: ``` workspace "name" { open-on-output "winit" } ``` The `open-on-output` property is optional, and can be skipped, in which case the workspace will open on the primary output. All actions that were able to target a workspace by index can now target them by either an index, or a name. In case of the command line, where we do not have types available, this means that workspace names that also pass as `u8` cannot be switched to by name, only by index. Unlike dynamic workspaces, named workspaces do not close when they are empty, they remain static. Like dynamic workspaces, named workspaces are bound to a particular output. Switching to a named workspace, or moving a window or column to one will also switch to, or move the thing in question to the output of the workspace. When reloading the configuration, newly added named workspaces will be created, and removed ones will lose their name. If any such orphaned workspace was empty, they will be removed. If they weren't, they'll remain as a dynamic workspace, without a name. Re-declaring a workspace with the same name later will create a new one. Additionally, this also implements a `open-on-workspace "<name>"` window rule. Matching windows will open on the given workspace (or the current one, if the named workspace does not exist). Signed-off-by: Gergely Nagy <niri@gergo.csillger.hu>
2024-05-15Implement custom shader for window-openIvan Molodetskikh
2024-05-12Implement custom shader for window-close animIvan Molodetskikh
2024-05-12Add linear animation curveIvan Molodetskikh
2024-05-11Add is_active_in_columnTheZoq2
Add missing ``` Fix tests
2024-05-11Add a reset-window-height actionIvan Molodetskikh
2024-05-07Implement do-screen-transition actionIvan Molodetskikh
2024-05-05Make missing scale = automatic selectionIvan Molodetskikh
That was the intention, but I missed it before.
2024-05-05Implement niri msg outputIvan Molodetskikh
2024-05-05Don't expand zero radius per cornerIvan Molodetskikh
So that radii like 8 8 0 0 look properly.
2024-05-03Add a semi-working debug-toggle-damage bindingIvan Molodetskikh
2024-05-02Add debug-toggle-opaque-regionsIvan Molodetskikh
2024-05-02Implement rounded window cornersIvan Molodetskikh
2024-04-25Add disable-direct-scanout debug flagIvan Molodetskikh
2024-04-24Implement focus-ring window ruleIvan Molodetskikh
2024-04-24Implement border window ruleIvan Molodetskikh
2024-04-21Implement window-resize custom-shaderIvan Molodetskikh
2024-04-19Add allow-when-locked=true spawn bind propertyIvan Molodetskikh
2024-04-18config: Rearrange animations in structIvan Molodetskikh
2024-04-17Resolve animation defaults during parsingIvan Molodetskikh
2024-04-14Add variable-refresh-rate flagIvan Molodetskikh
2024-04-13Implement window resize animationsIvan Molodetskikh
2024-04-09Implement window closing animationsIvan Molodetskikh
2024-04-09Add ease-out-quad curveIvan Molodetskikh