amarao (amarao_san) wrote,
amarao
amarao_san

x-server: how to get (grab) remote x-window content

1) get window id from xwininfo -tree -root (output like 0x2a00045 "Psi+": ("psi-plus" "Psi-plus") 700x743+0+0 +666+25, 0x2a00045 is ID).
2) use xwd -id 0x2a00045>/tmp/dump.xwd (id from step 1)
3) convert /tmp/dump.xwd screenshot.png


PS Возникла идея написать программу, которая бы позволяла через ssh подцепиться к приложению в удалённом x-сервере.
Tags: howto, x-server
Subscribe

  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 2 comments