rvaiya / warpd

A modal keyboard-driven virtual pointer
MIT License
2.9k stars 131 forks source link

[help]How to write a script and run it #267

Open wang-qa opened 1 year ago

wang-qa commented 1 year ago

I compile and install warpd and view the corresponding documentation There is no mention of how to write scripts and run them (such as the running code for DEMO.gif) or examples

So how should I write it and run it

env:
System: Kubuntu 23.04
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.10
Kernel Version: 6.1.42-01 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: LENOVO
Product Name: 20VD
System Version: ThinkBook 14 G2 ITL
rgkirch commented 9 months ago

There is no mention of how to write scripts and run them (such as the running code for DEMO.gif) or examples

What do you mean by this? IIUC, the demo gifs are a screen recording and the user is interacting with warpd by hitting keyboard keys. What I mean is that I don't think there's scripting involved there.

wang-qa commented 9 months ago

I am a beginner

When executing warpd --hint2, pressing the corresponding button will not update the prompt So, I need a complete example or explanation from 0 to 1

The goal is to use warpd to load scripts to complete desktop (wayland) automation operations

img_v3_026f_4a834cde-5cad-4a43-bf6b-038ff9f0769g