Ivan Molodetskikh
d5cbc35811
Implement ConsumeOrExpelWindow{Left,Right} by id
2024-10-12 09:58:03 +03:00
Winter
e24723125f
added power-on-monitors ( #723 )
2024-10-09 08:50:06 +00:00
yzy-1
42a9daec9d
Implement hide cursor on key press and on timeout
2024-10-06 22:09:19 -07:00
Ivan Molodetskikh
b501a9b303
Upgrade dependencies
2024-09-30 15:27:36 +03:00
Ivan Molodetskikh
6a48728ffb
Bump version to 0.1.9
2024-09-14 11:55:52 +03:00
Ivan Molodetskikh
c3cb42f04d
Add SwitchPresetWindowHeight by id
2024-09-12 02:32:44 -07:00
Christian Rieger
d0e624e615
Implement preset window heights
2024-09-12 02:32:44 -07:00
Ivan Molodetskikh
370fd4e172
ipc: Convert all Action unit variants to unit struct variants
...
This is a breaking change, but likely nobody uses this through raw JSON
yet, and this allows us to add fields to any action later on without
another breaking change.
2024-09-06 18:32:51 +03:00
Ivan Molodetskikh
dcb29efce5
Implement by-id window addressing in IPC and CLI, fix move-column-to-workspace
...
This is a JSON-breaking change for the IPC actions that changed from
unit variants to struct variants. Unfortunately, I couldn't find a way
with serde to both preserve a single variant, and make it serialize to
the old value when the new field is None. I don't think anyone is using
these actions from JSON at the moment, so this breaking change is fine.
2024-09-06 18:32:41 +03:00
Ivan Molodetskikh
608ab7d8b1
Change output sorting to match make/model/serial first
...
We can do this now that we have libdisplay-info.
2024-09-05 20:10:01 +03:00
elkowar
fd8ebb9d06
implement always_center_single_column layout option
2024-09-05 01:01:41 -07:00
Ivan Molodetskikh
f0157e03e7
Use libdisplay-info for make/model/serial parsing, implement throughout
2024-09-03 13:48:08 +03:00
Ivan Molodetskikh
f7181fb066
Implement by-id workspace action addressing
...
It's not added to clap because there's no convenient mutually-exclusive
argument enum derive yet (to have either the current <REFERENCE> or an
--id <ID>). It's not added to config parsing because I don't see how it
could be useful there. As such, it's only accessible through raw IPC.
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
7bfdf87bf0
Implement resize transactions
2024-08-22 15:19:11 +03:00
Ivan Molodetskikh
cf357d7058
Implement window resize throttling
2024-08-22 14:40:40 +03:00
Ivan Molodetskikh
618fa08aa5
Update Smithay (apply state in post commit)
2024-08-22 14:15:04 +03:00
Michael Yang
f1894f6f9a
feature: add on-demand vrr ( #586 )
...
* feature: add on-demand vrr
* Don't require connector::Info in try_to_set_vrr
* Improve VRR help message
* Rename connector_handle => connector
* Fix tracy span name
* Move on demand vrr flag set higher
* wiki: Mention on-demand VRR
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2024-08-22 11:58:07 +03:00
Ivan Molodetskikh
8f71f8958e
Bump version to 0.1.8
2024-08-10 12:55:24 +03:00
Ivan Molodetskikh
a968b1abc0
Fix redundant cast after upgrading csscolorparser
2024-08-08 15:12:48 +03:00
Ivan Molodetskikh
47c964d6fb
Upgrade dependencies
2024-08-08 15:06:55 +03:00
Jeff Peeler
9728dbeeac
add mod3 key binding support ( #565 )
...
* add support for iso_level5_shift modifier
* update Cargo.lock
bumps smithay to de94e8f59e202b605c35dfe1fef1857bad427e8c
2024-07-31 15:00:35 +00:00
Anant Sharma
689338f059
Add background color option for output
2024-07-26 11:51:29 +03:00
Salman Farooq
2a830ed498
feat: negative struts (to remove outer gaps)
2024-07-22 13:12:42 +03:00
Ivan Molodetskikh
3ace97660f
Implement gradient color interpolation option ( #548 )
...
* 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-16 07:22:03 +00:00
Ivan Molodetskikh
8fdea033bc
Fix Clippy warnings
2024-07-13 07:48:07 +03:00
Ivan Molodetskikh
2e906fc5fa
Add middle-emulation libinput flag
2024-07-13 07:34:22 +03:00
Winter
a283c34dbb
Add move-column-{left/right}-or-to-monitor-{left/right} ( #528 )
...
* 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-10 04:52:48 +00:00
Suyashtnt
1af9f9bd95
niri-config: update wiki parses test to test all codeblocks
...
This makes sure the failing codeblocks do fail. This also optimizes the algorithm a bit by removing a `.collect()`
Signed-off-by: Suyashtnt <suyashtnt@gmail.com >
2024-07-08 19:43:07 +03:00
Suyashtnt
7b3bef124d
niri-config: add test to see if all snippets inside of the wiki compile
...
Signed-off-by: Suyashtnt <suyashtnt@gmail.com >
2024-07-08 17:42:09 +03:00
Ivan Molodetskikh
4513663084
screenshot-ui: Animate opening
2024-07-08 11:24:08 +04:00
Christian Meissl
570bf1cb3c
bump smithay
2024-07-08 08:30:00 +03:00
Ivan Molodetskikh
f2766b103d
Implement toggling pointer for the screenshot UI
2024-07-07 09:23:59 +04:00
Ivan Molodetskikh
1da99f4003
Implement focus-follows-mouse max-scroll-amount
2024-07-05 20:53:11 +04:00
Salman Farooq
d3aebdbec4
Implement key repeat for compositor binds
2024-07-05 08:40:25 +03:00
TheAngusMcFire
a56e4ff436
Added Commnads to focus windows or Monitors above/below the active window ( #497 )
...
* 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-05 04:55:04 +00:00
Ivan Molodetskikh
9dcc9160b3
Put Outputs config into a dedicated struct
2024-07-05 07:35:01 +03:00
Ivan Molodetskikh
4fd04951e6
Bump version to 0.1.7
2024-06-29 08:39:13 +04:00
Filipe Paniguel
bdf9894020
feat: add focus-column-or-monitor-left, focus-column-or-monitor-right ( #456 )
...
* 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-28 07:44:24 -07:00
Ivan Molodetskikh
eb59b10050
config: Remove obsolete FIXME
2024-06-18 14:01:34 +03:00
Ivan Molodetskikh
986f2c14ab
Make scale use FloatOrInt
2024-06-18 14:01:34 +03:00
Ivan Molodetskikh
1dae45c58d
Refactor layout to fractional-logical
...
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-18 14:01:28 +03:00
Ivan Molodetskikh
fee72b87cf
niri-config: Add pretty-assertions to tests
...
The config parse test is pretty big and it's impossible to tell the
difference from the normal assert.
2024-06-17 09:02:22 +03:00
Ivan Molodetskikh
22a948cc75
Update dependencies
2024-06-10 18:07:51 +03:00
James Sully
a55e385b12
Add focus-column-right-or-first, focus-column-left-or-last ( #391 )
...
* add focus-column-right-or-first
* add focus-column-left-or-last
2024-06-09 11:14:51 +00:00
Yuya Nishihara
c8e46b9d17
Add "off" and "disabled-on-external-mouse" properties to input devices
...
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-29 16:41:03 +03:00
Yuya Nishihara
f2ce84b243
Fix copy-paste error in scroll-method error message
2024-05-28 15:35:45 +03:00
Yuya Nishihara
4746a0da7d
Add scroll-method property to pointer devices
...
My use case is to enable middle-button scroll on my keyboard with pointing
stick. The device is recognized as USB mouse.
2024-05-26 16:49:40 +03:00
Micah N Gorrell
eb0f7aa429
Added actions to allow focusing up or down as normal but to wrap to the column to the left or right if there is no window above or below
2024-05-24 16:44:20 +04:00
Ivan Molodetskikh
c9d90afe59
Add left-handed input property
...
Closes https://github.com/YaLTeR/niri/issues/366
2024-05-21 10:10:11 +04:00
Ivan Molodetskikh
56e02a398d
Add Default impl for niri_config::Keyboard
...
Fixes https://github.com/YaLTeR/niri/issues/357
2024-05-19 17:55:54 +04:00