Commit Graph

59 Commits

Author SHA1 Message Date
5080f07724
Add cursor warp option 2024-11-02 08:00:50 -07:00
d66decb7c4
Open view relative to mouse, take 2 2024-11-01 22:08:20 -07:00
Aviva Ruben
fd55f51ba1
input: support scroll button lock config 2024-10-03 11:42:21 +02:00
Felix Bowman
ccd676e5a9 completions: zsh click-method option fix
"button-areas" seems to be the argument this command expects instead of
"button-area" -- other shells also have the option as "button-areas".
2024-07-12 09:16:41 +01:00
István Donkó
8a3018a311
input: add scroll-factor configuration 2024-04-16 13:25:40 +02:00
Isaac Freund
ed99d7bc14
docs: migrate to codeberg
wiki and release migration are TODO
2024-03-22 16:49:28 +01:00
Hugo Machet
81f5b970e6
completions: Add missing completions
Added:
  * close (bash)
  * focus-output args: up right down left (bash,fish,zsh)
  * send-to-output args: up right down left (bash,fish,zsh)
  * default-attach-mode (bash,fish)
  * output-attach-mode (bash,fish)
  Zsh only as I don't know how does it works in other shell and so
  it's still need to be done.
    * send-to-output flags: -current-tag
    * keyboard-layout flags: -rules -model -variant -options
    * [un]map-switch, lid -> close|open and tablet -> on|off

Fixed:
  * rule-add|list-rules actions, rename tag to tags (bash,fish,zsh)

Some descriptions probably need to be changed with new args like up,
right..
2024-03-14 11:12:29 +01:00
Peter Kaplan
726ee2e7ca
completions/zsh: Update attach-modes 2024-03-05 17:53:16 +01:00
LordMZTE
0cb7c49cc3
command/input: add map-to-output 2024-02-23 12:22:42 +01:00
Hugo Machet
1d40e5a9ab
InputConfig: Implement disable while trackpointing 2024-02-20 00:21:15 +01:00
István Donkó
927dceb071
keyboard: add the ability to load layout from file 2023-11-09 13:23:07 +01:00
polykernel
2b463c9e4d
river: add fullscreen rule
This commit adds a fullscreen rule for configuring
whether the view should be drawn fullscreen on start up.

The actions "fullscreen" and "no-fullscreen" map to the two
possible state of a view and semantically operate on the same
rule list. The behavior of adding, deleting and listing rules
follows that of float and ssd.
2023-11-08 00:46:56 -05:00
polykernel
a0ea456ab2
river: add position and dimensions rules
This commit adds position and dimensions rules for configuring
the initial position and dimensions of views.

When a view is not matched by any position rules, it is centered
in the avaliable output space matching the current behavior. If
the provided position rule places the view outside of the output,
the view's position is clamped to the output bounds (with respect
to borders).

When a view is not matched by any dimensions rules, no default
dimensions is set by the server. If the provided dimensions rule
exceeds the minimum or maximum width/height constraints of the view,
the view's width/height is clamped to the constraints.

Position and dimensions rules have no effect if a view is started
fullscreen or is not floating. A view must be matched by a float
rule in order for them to take effect.
2023-11-08 00:46:55 -05:00
tiosgz
57366c487f
completions/bash: complete input devices, fix typos 2023-10-25 19:13:53 +02:00
tiosgz
ffe004ecec
completions/fish: partial overhaul
Try to fix -h and -version. Remove seemingly superfluous -x everywhere,
only use one -f. Use -o for options. Update input devices listing.
Deduplicate some args. Try to do better for rule-add and rule-del.
2023-10-25 19:13:20 +02:00
Doclic
bf4154007d river: add outputs rule 2023-10-19 12:58:11 +02:00
Hugo Machet
ad1e0aa752
completions/zsh: Fix incomplete input names
Input name with ':' in it were not suggested entirely.
2023-10-18 13:23:47 +02:00
Hugo Machet
de5f21cbb4
completions: Rewrite zsh
- Fix some completions that never really worked correctly, e.g `riverctl
  input` didn't take the input name into account. Same with rule that
  didn't take into account glob.

- Add a lot of documentation to help people adding new commands.

- Add new rule-[add|del] order.

- `riverctl input` now autocomplete input name from `riverctl
  list-inputs`
2023-10-18 12:17:10 +02:00
tiosgz
d73ef51c89 riverctl: rule-{add,del}: reorder parameters
Previous order was (action, conditions, action argument), current is
(conditions, action, action argument). The old one was an expansion of
(action, conditions), which itself most likely came from the separate
<action>-filter-add commands. On the other hand, the new order keeps
action and its argument together and is in line with the logical flow
(check conditions, apply action).

On shell completions: only bash absolutely needed to be updated. fish
and zsh slightly misbehave regardless of the order.
2023-10-16 17:04:40 +00:00
Leon Henrik Plickat
b35d779122 river: focus-view and swap by spatial direction 2023-07-09 23:20:06 +02:00
Leon Henrik Plickat
0b142bd16b river: add tags rule 2023-06-28 15:38:32 +02:00
Isaac Freund
b2b2c9ed13
river: add rules system
This is a breaking change and replaces the previous
csd-filter-add/remove and float-filter-add/remove commands.

See the riverctl(1) man page for documentation on the new system.
2023-03-12 16:44:19 +01:00
Leon Henrik Plickat
701d16c2ea
completions: add keyboard-layout 2023-01-06 16:36:00 +01:00
shironeko
8036ae2bd1
Cursor: add on-focus-change option
Warp the cursor to the center of the focused view if the cursor is not
in the bounding box of that view already. This helps the user to keep
track of their cursor when they mostly use the keyboard and the cursor
becomes hidden most of the time, also helps trackpad/trackpoint users.
2022-12-01 14:23:02 +01:00
Alexander Courtis
cacc986166
map-pointer: allow running arbitrary commands 2022-11-25 14:05:36 +01:00
Isaac Freund
e35c147cd5
river: refactor keyboard groups implementation
This reduces the impact of keyboard groups on the Keyboard.zig
implementation and otherwise improves consistency with patterns used
elsewhere in rivers code.

There are also two small changes to the riverctl interface:

- keyboard-group-add-keyboard is renamed to keyboard-group-add
- keyboard-group-remove is added to support removing keyboards from a
group.
2022-09-18 15:53:45 +02:00
Leon Henrik Plickat
01f49bbbc1 river: add keyboard groups 2022-09-12 04:12:21 +02:00
Isaac Freund
50c9e3d81b
Cursor: revive 'always' focus-follows-cursor mode
This was removed a while back because it was buggy and I didn't know
of anyone using it. Since refactoring it is now trivial to implement
and I know of at least one person using it, so I don't mind reviving it.
2022-06-03 12:03:08 +02:00
Peter Kaplan
44aaee3a51 command/map: layout-pinned mappings
e.g. `riverctl map -layout 0 normal Super Y spawn foot`

When this mapping is checked against a pressed key, layout 0 will be used to translate the pressed key instead of the currently active layout.

The number denotes to an index of the layouts set with
`XKB_DEFAULT_LAYOUT`.
2022-04-27 18:31:08 +02:00
Daniel Eklöf
8f59075bc5
completions: fish: new completions for the ‘hide-cursor’ command 2022-04-20 20:33:55 +02:00
Daniel Eklöf
3979dd5cf9
completions: bash: new completions for the ‘hide-cursor’ command 2022-04-20 20:33:50 +02:00
Daniel Eklöf
790de95726
completions: zsh: new completions for the ‘hide-cursor’ command 2022-04-20 19:00:26 +02:00
Peter Kaplan
60fdefc3fd
input: add map-switch/unmap-switch commands
This allows running a command on a laptop's lid being opened/closed
or a tablet's button/switch being pressed/toggled.
2022-04-14 12:49:47 +02:00
FollieHiyuki
363fd3f6a4
completions/fish: simplify 2021-11-01 18:27:41 +07:00
Isaac Freund
c9de08fa10
docs: update URLs for migration to riverwm github org 2021-11-01 11:28:43 +01:00
Isaac Freund
8757644b2a
docs: standardize on "layout generator"
This is likely more clear than "layout client" to most users.
2021-10-31 22:32:59 +01:00
Peter Rice
81d103d425 river: add send-to-previous-tags command 2021-09-14 22:57:17 +02:00
novakane
e59c2a73d7 river: implement xdg-activation-v1
- add a new "urgent" border color
- add a new event to river-status-unstable-v1

Co-authored-by: Isaac Freund <ifreund@ifreund.xyz>
2021-08-19 12:58:52 +00:00
Keith Hubbard
2bdf9e20a5
command: support repeating keyboard mappings
Repeating mappings are created using the -repeat option to the map
command:

    % riverctl map normal $mod+Mod1 K -repeat move up 10

- repeating is only supported for key press (not -release) mappings
- unlike -release, -repeat does not create distinct mappings: mapping a
  key with -repeat will replace an existing bare mapping and vice-versa

Resolves #306
2021-08-15 14:49:11 +02:00
novakane
879046ef83 completions: Remove strict in focus-follows-cursor 2021-07-29 17:19:06 +00:00
novakane
22251fa7ed
completions: Update for river-layout-v3 2021-07-20 10:48:48 +02:00
Isaac Freund
96e1082156 river: remove opacity command
This code is complex and increases maintenance burden but doesn't
add any functionality, only eye-candy.

Futhermore, neither I nor any of the core contributors use it.

There may be a place in river for such eye-candy down the line, in which
case this code could be revived. Currently river is early enough in its
development that our focus should be on core functionality instead.
2021-07-20 08:47:02 +00:00
Viktor Nagy
28fc8792d7 river: add focus-previous-tags command 2021-07-15 12:00:22 +00:00
Steef Hegeman
ba6a38f491 completions: typo
focus-follows-cursor instead of focus-follow-cursor
2021-07-02 19:11:36 +02:00
Isaac Freund
df492f83e6 completions: add set-cursor-warp for zsh/fish 2021-06-26 19:03:49 +02:00
Leon Henrik Plickat
61829d82fe completions: Add bash completion for set-cursor-warp commands 2021-06-26 19:03:49 +02:00
FollieHiyuki
12c12c4b6c completions: add fish completion for input command 2021-06-16 09:59:37 -07:00
novakane
db35f700a8 completions/zsh: add input commands 2021-06-16 09:54:07 -07:00
Leon Henrik Plickat
1fd8d4d828 add bash completion for input commands 2021-06-13 10:37:36 -07:00
novakane
2e7c1dbe6a config: make attach-mode global 2021-06-08 18:26:36 +00:00