Commit Graph

44 Commits

Author SHA1 Message Date
Marten Ringwelski
870f0b746e Implement pointer-gestures-unstable-v1 2021-02-15 18:18:18 +01:00
Isaac Freund
18bab45d4c riverctl: implement river-options interface
To make this cleaner, introduce some arg-parsing infrastructure that
will useful when porting riverctl to river-control-v2 in the future as
well.
2021-01-18 22:30:52 +01:00
Isaac Freund
8cbccbfb6e river-options: implement 2021-01-16 23:51:15 +01:00
Alex Mohr
75588a553c build: derive default config path from install prefix
- Add `default_config_path` build option for the river executable
2021-01-01 23:23:44 +01:00
Isaac Freund
c7bc47d6d4 build: install example config to /etc/river/init 2020-12-30 20:29:28 +01:00
Isaac Freund
20d804cdb5 code: switch to custom wlroots/libwayland bindings
This is a big step up over @cImport() for ergonomics and type safety.
Nearly all void pointer casts have been eliminated!
2020-12-13 22:53:33 +01:00
Isaac Freund
dae6c06e0c screencopy: add workaround for wlroots bug
Currently screencopy's copy_with_damage request is broken for
compositors not submitting damage. As a workaround simply damage
the whole output each frame.
2020-12-05 01:10:06 +01:00
Isaac Freund
fc83510a16 build: don't link pixman
River doesn't require any symbols from pixman (yet) and zig doesn't
seem to have an issue finding the headers anymore.
2020-11-04 15:16:05 +01:00
Isaac Freund
6c52f9cc2b code: use std.ascii.spaces 2020-11-03 00:36:53 +01:00
Marten Ringwelski
624a5c3e7a code: Replace deprecated std.fmt.trim with std.mem.trim 2020-11-02 17:45:20 +01:00
Isaac Freund
a7459026f6 code: port riverctl to zig-wayland 2020-11-02 13:59:59 +01:00
Marten Ringwelski
d821f6b0dc Implement wlr-output-power-management-unstable-v1 protocol 2020-10-31 19:11:22 +01:00
Isaac Freund
27b666dbba code: update to zig master in prep for 0.7.0
This commit makes the minimal necessary changes to get things working,
there are further changes which can be made to take advantage of new
features.
2020-10-02 20:34:24 +02:00
Isaac Freund
989e7aaeda config: implement map-pointer command
This command takes a mode, modifiers, button/event name, and pointer
action as arguments. It stores these in the config data structure.

The currently available pointer actions are move-view and resize-view,
which replace the previously hard-coded functionality.

Closing the hovered view with middle click has temorarily been removed
until it is decided if we wish to make this another special pointer
action or perhaps allow running any arbitrary command (which would of
course include close).
2020-08-24 18:57:43 +02:00
Isaac Freund
341fe1e977 code: handle out of memory as well as possible 2020-07-05 22:49:17 +02:00
Lennard Hofmann
1cc02603b2 docs: small man pages fixes and updates
- Previous hard-coded settings can be now be changes with riverctl or
  via environment variables
- Update "See also"
- Mod → Mod1
2020-06-17 12:14:23 +02:00
Isaac Freund
751760287c docs: add rivertile man page 2020-06-16 17:06:24 +02:00
Isaac Freund
e2c034b76a rivertile: create default layout generator 2020-06-16 15:48:50 +02:00
Leon Henrik Plickat
ec0631dcef Doc: Add layout documentation 2020-06-16 15:48:53 +02:00
Isaac Freund
ecc000b1ec build: allow disabling man-pages if scdoc is found 2020-06-15 14:22:09 +02:00
Isaac Freund
602693bbbe build: add scdoc step to generate man pages 2020-06-15 13:23:17 +02:00
Isaac Freund
51b00ac6a9 build: install man pages
No gzip, let distros compress if they want to
2020-06-05 13:48:07 +02:00
Isaac Freund
83d2a8be5f river-status: implement example client 2020-06-05 00:24:46 +02:00
Isaac Freund
5aa7fe8af8 river-status: implement protocol 2020-06-04 16:56:58 +02:00
Isaac Freund
fcea0863f2 build: scan river-status protocol 2020-06-03 13:25:17 +02:00
Isaac Freund
939beef168 Split river and riverctl directories 2020-06-01 15:56:50 +02:00
Isaac Freund
d83cbf55d1 Split control into separate protocol 2020-05-24 21:01:11 +02:00
Isaac Freund
569308d91b Implement sending command from riverctl
These commands are successfully received by the server, but not yet
executed.
2020-05-19 20:53:26 +02:00
Isaac Freund
7cb6c5d75a Add riverctl binary to build.zig 2020-05-19 13:43:41 +02:00
Isaac Freund
0904dc5346 Create WindowManagement struct 2020-05-19 13:25:16 +02:00
Isaac Freund
71d580b811 Add xwayland build option 2020-05-04 11:10:23 +02:00
Isaac Freund
ce05dddea3 Fix ensure pixman located
Zig was having trouble finding the proper headers on void, likely
because pixman is linked as pixman-1.
2020-05-02 16:04:14 +02:00
Isaac Freund
b02f660475 Rename render.[hc] to bindings.[hc] 2020-04-15 12:49:19 +02:00
Isaac Freund
f254217d2c Eliminate some code duplication 2020-04-12 13:54:03 +02:00
Isaac Freund
57a811583c Move protocol scanning to build.zig 2020-04-12 13:37:18 +02:00
Isaac Freund
236c0102e1 Remove unneeded pixman linking 2020-04-11 23:10:56 +02:00
Isaac Freund
6c23f3eefd Properly specify pixman include 2020-04-09 00:05:28 +02:00
Isaac Freund
6cb9f6ac04 Add a data structure to manage the view stack 2020-04-04 16:51:02 +02:00
Isaac Freund
69220d3c92 Rename to river 2020-03-27 11:58:59 +01:00
Isaac Freund
57ab110f43 Hack around @cImport() not handling flexible arrays 2020-03-21 16:55:42 +01:00
Isaac Freund
e1d1683c3f Spawn a child 2020-03-21 02:34:59 +01:00
Isaac Freund
5ca93a57ba Fix build.zig 2020-03-20 22:52:03 +01:00
Isaac Freund
7b735f690c cleanup 2020-03-19 21:35:01 +01:00
Isaac Freund
6646826386 Initial commit 2020-03-19 16:29:22 +01:00