Commit Graph

158 Commits

Author SHA1 Message Date
Thomas Versteeg fb93038bd8 Add center-focused-column setting 2024-01-08 17:37:18 +04:00
Ivan Molodetskikh 71fef2ad2e Add a few mouse libinput settings 2024-01-08 11:53:34 +04:00
Ivan Molodetskikh c6841f19e9 Add touchpad tap-button-map setting 2024-01-08 10:32:04 +04:00
Ivan Molodetskikh e1971c4af5 Add touchpad dwt setting 2024-01-08 10:24:00 +04:00
Ivan Molodetskikh 07b1d0e98d Add touchpad accel-profile setting 2024-01-08 10:23:53 +04:00
Ivan Molodetskikh 4e0aa39113 [cfg-breaking] Move layout settings into their own scope 2024-01-06 13:04:21 +04:00
Ivan Molodetskikh 56174b2c34 Add move-column-to-{first,last} 2023-12-29 08:01:02 +04:00
Ivan Molodetskikh d6c553091f Add focus-column-{first,last} 2023-12-29 07:51:14 +04:00
Ivan Molodetskikh 249f2b7a21 Add disable-power-key-handling option 2023-12-28 09:36:10 +04:00
Ivan Molodetskikh c21805bf70 layout: Refactor to support window decorations, add border and fullscreen backdrop
Windows are now wrapped in Tiles, which keep track of window-specific
decorations. Particularly, I implemented a black fullscreen backdrop,
which finally brings fullscreened windows smaller than the screen in
line with how the Wayland protocol says they should look—centered in a
black rectangle. I also implemented window borders, which are similar to
the focus ring, but always visible (and hence affect the layout and
sizing).
2023-12-27 21:51:42 +04:00
Ivan Molodetskikh 5b1de86d33 Add configurable struts 2023-12-21 08:37:30 +04:00
Matt Cuneo d6b62ad09d Add optional fallback to workspace focus/move for window focus/move (#93)
* Add optional fallback to workspace focus/move for window focus/move commands

* Refactored to separate commands

* fix indentation

* fix white space

* Stylistic fixes

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2023-12-19 00:25:05 -08:00
Ivan Molodetskikh d155f5cd6c Add a config flag to disable an output 2023-12-18 10:27:41 +04:00
Ivan Molodetskikh 69e7afc538 Remove wrong comment
The node is not commented out.
2023-11-26 16:51:13 +04:00
Ivan Molodetskikh 042fd75b0c portals: Set gnome-keyring as the Secrets portal
Without this it doesn't work at all, with this it at least works with
gnome-keyring installed (for example, on my system).
2023-11-26 08:15:29 +04:00
Ivan Molodetskikh 50649ff78b Add more default app binds to the default config 2023-11-25 14:37:59 +04:00
Ivan Molodetskikh f085384bc7 Add and call niri-shutdown.target
Sometimes graphical-session.target lingers on after niri quits, leading
to services not being started on a quick relogin. To work around this,
add and run a systemd target that conflicts with
graphical-session.target and forces its shutdown.
2023-11-25 11:01:23 +04:00
Ivan Molodetskikh 1ce3c1392d Add an action to center column within view bound to Ctrl-C 2023-11-13 19:08:29 +04:00
Ivan Molodetskikh cccc068f98 Add niri-portals.conf
New config file for the new xdg-desktop-portal.
2023-11-09 14:52:04 +04:00
Kirill Chibisov 907e0a03ef Add 'input.keyboard.track_layout' config option
Track layout for each window individually when user requested `Window`
tracking mode, keeping the default as global.
2023-11-08 19:09:11 +04:00
Kirill Chibisov eb7d20c638 Add action to switch layouts
Allow users to trigger layout change with custom bindings.
2023-11-08 19:09:11 +04:00
Ivan Molodetskikh c1060cd26b Add set-window-height action 2023-11-08 11:27:25 +04:00
Ivan Molodetskikh e1bfd981b3 Add default-column-width setting 2023-11-03 20:11:11 +04:00
Ivan Molodetskikh b0af1129c9 Include filename in screenshot-path 2023-10-31 14:23:54 +04:00
Ivan Molodetskikh 02f6b418fe [cfg-breaking] Change colors to 0-255 instead of 0.-1. 2023-10-31 09:07:11 +04:00
Ivan Molodetskikh 8fa5bf9a36 Make screenshot path configurable 2023-10-31 08:57:44 +04:00
Ivan Molodetskikh 073b52c3e6 Implement area selection screenshots 2023-10-30 20:29:03 +04:00
Ivan Molodetskikh 155a239fcc Rename Screenshot to ScreenshotScreen 2023-10-30 14:02:42 +04:00
Kirill Chibisov f3e04981d8 Try to pick user login shell instead of assuming bash
The trick is inspired by `gnome-session`.
2023-10-17 19:05:58 +04:00
Ivan Molodetskikh 58f6b30325 Send tiled state when prefer-no-csd is set 2023-10-16 15:21:43 +04:00
Ivan Molodetskikh f7669a55ad Add binds to move workspaces up and down 2023-10-14 20:42:44 +04:00
Ivan Molodetskikh c8105ae1a6 Add screenshot-window action 2023-10-10 12:42:24 +04:00
Ivan Molodetskikh 189d1bd97b Add power-off-monitors bind
Implements https://github.com/YaLTeR/niri/issues/24
2023-10-09 18:37:43 +04:00
Ivan Molodetskikh 994bc64679 Add gaps setting
The past few refactors have led up to this point, and now it's finally
possible.
2023-10-07 17:45:55 +04:00
Ivan Molodetskikh 6fcdb41922 Refactor layout for configurability, add preset-column-widths option
layout.rs finally gets a struct actually named Layout.
2023-10-05 09:25:07 +04:00
Ivan Molodetskikh 1bcc889e62 Add tablet map-to-output setting 2023-10-03 17:02:07 +04:00
Ivan Molodetskikh 7558ac14e6 Add set-column-width action 2023-10-03 11:38:42 +04:00
Ivan Molodetskikh bb3fbe2e83 Make output modes configurable 2023-10-03 08:35:24 +04:00
Kirill Chibisov d8a511bbac config/input: add cursor section
This should allow users to configure theme and size for the cursor,
as well as automatically set `XCURSOR_THEME` and `XCURSOR_SIZE` env
variables.
2023-10-01 17:50:42 +03:00
Ivan Molodetskikh 21737abbfd Make output position configurable
Implements https://github.com/YaLTeR/niri/issues/14
2023-09-30 11:33:02 +04:00
Ivan Molodetskikh 80928632ba Add prefer-no-csd option 2023-09-26 13:45:03 +04:00
Ivan Molodetskikh a62e1cbef6 Make focus ring configurable 2023-09-26 13:45:03 +04:00
Ivan Molodetskikh a7e338b3c0 Add spawn-at-startup config option
Fixes https://github.com/YaLTeR/niri/issues/12
2023-09-21 19:58:03 +04:00
Ivan Molodetskikh 109668fa30 Add output configuration & integer scaling support 2023-09-21 13:48:50 +04:00
Ivan Molodetskikh e0deea3f68 default-config: Add PgUp/Down for workspace switching 2023-09-18 11:53:44 +04:00
Ivan Molodetskikh 3a52489330 Change default repeat to 600
660 comes from Xorg, but feels kind of slow. The wlroots and sway
default is 600, which is a little better.

The 25 repeat interval matches between Xorg (where it is defined in
terms of interval, rather than rate) and wlroots.
2023-09-16 21:52:25 +04:00
Kirill Chibisov b66b4399ad Add keyboard.repeat-rate and keyboard.repeat-delay
Add option to let the users configure the keyboard repeat delay and
rate. Also change the default values to mimic the Xorg, which is
also the values used by default by the majority of the compositors.

Fixes: #7
2023-09-16 18:13:52 +03:00
Ivan Molodetskikh 37ec524264 Add by-index workspace commands and binds 2023-09-16 12:14:02 +04:00
Ivan Molodetskikh e5d7732880 Use /- in less places in the default config 2023-09-16 10:50:05 +04:00
Ivan Molodetskikh fafe24c499 Mention uncommenting in default-config 2023-09-16 09:06:34 +04:00