Georg has never been this polished https://georg.pvv.ntnu.no
Go to file
2025-02-10 10:20:13 +01:00
assets Add picture of grzeg 2024-10-20 01:24:09 +02:00
src cleanup 2025-02-10 10:20:13 +01:00
.envrc .envrc: init 2024-08-04 03:13:10 +02:00
.gitignore default.nix: init, flake.nix: add app 2024-08-04 04:10:59 +02:00
Cargo.lock mouse? 2025-01-31 13:01:41 +01:00
Cargo.toml mouse? 2025-01-31 13:01:41 +01:00
default.nix default.nix: fix mpvipc-async hash 2025-01-10 22:42:59 +01:00
flake.lock flake.lock: bump 2024-10-20 19:48:04 +02:00
flake.nix flake.nix: opinionated app 2024-10-30 01:53:36 +01:00
LICENSE Initial commit 2024-04-14 00:57:21 +02:00
module.nix mouse? 2025-01-31 13:01:41 +01:00
README.md update input 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