2025-02-10 10:20:13 +01:00
2024-10-20 01:24:09 +02:00
2025-02-10 10:20:13 +01:00
2024-08-04 03:13:10 +02:00
2025-01-31 13:01:41 +01:00
2025-01-31 13:01:41 +01:00
2025-01-10 22:42:59 +01:00
2024-10-20 19:48:04 +02:00
2024-10-30 01:53:36 +01:00
2024-04-14 00:57:21 +02:00
2025-01-31 13:01:41 +01:00
2025-02-03 16:54:38 +01:00

Greg-ng

New implementation of https://github.com/Programvareverkstedet/grzegorz

Test it out

# NixOS
nix run "git+https://git.pvv.ntnu.no/Grzegorz/greg-ng#" -- --mpv-socket-path /tmp/mpv.sock

# Other (after git clone and rust toolchain has been set up)
cargo run -- --mpv-socket-path /tmp/mpv.sock

See also https://git.pvv.ntnu.no/Grzegorz/grzegorz-clients for frontend alternatives

Debugging

RUST_LOG=greg_ng=trace,mpvipc=trace cargo run -- --mpv-socket-path /tmp/mpv.sock

Custom api call in curl examples

LOL with input command. (utilizing ydotools)

curl -X POST -H "Content-Type: application/json" -d '{"keys": "42:1 38:1 38:0 24:1 24:0 38:1 38:0 42:0"}' http://localhost:8008/api/v2/sway/input/keys

Launching DEFAULT_BROWSER with url, in --kiosk mode

curl -X POST -H "Content-Type: application/json" -d '{"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"}' http://localhost:8008/api/v2/sway/browser/launch
Description
Languages
Rust 86.7%
Nix 13.3%