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