Virtual Writer
import map2
writer = map2.VirtualWriter()
# send any text
writer.send("hello world")
# including really weird characters
writer.send("ββ
βΟ = Ο")
Creates a virtual output device that is able to type any text. Itβs different from a regular Writer in that it doesnβt simulate a physical device, but rather sends text directly to the desktop environment.
Supported on:
- β Hyprland
- β X11
- β Gnome (wayland)
- β KDE plasma (wayland)
Options
This object has no options.
Methods
send(input)
Sends an arbitrary text input to the desktop environment.
- input: string