From 8fdc908325c52c333fc3652a3afd38a54cff21b7 Mon Sep 17 00:00:00 2001 From: Jeef Date: Mon, 20 Feb 2017 22:52:56 -0500 Subject: [PATCH] x11vnc, xdotool, rev: add pages (#1264) --- pages/common/rev.md | 11 +++++++++++ pages/linux/x11vnc.md | 24 ++++++++++++++++++++++++ pages/linux/xdotool.md | 11 +++++++++++ 3 files changed, 46 insertions(+) create mode 100644 pages/common/rev.md create mode 100644 pages/linux/x11vnc.md create mode 100644 pages/linux/xdotool.md diff --git a/pages/common/rev.md b/pages/common/rev.md new file mode 100644 index 000000000..fac7ada71 --- /dev/null +++ b/pages/common/rev.md @@ -0,0 +1,11 @@ +# rev + +> Reverse a line of text. + +- Reverse the text string "hello": + +`echo "hello" | rev` + +- Reverse an entire file and print to stdout: + +`rev {{file}}` diff --git a/pages/linux/x11vnc.md b/pages/linux/x11vnc.md new file mode 100644 index 000000000..2ee6ff4a3 --- /dev/null +++ b/pages/linux/x11vnc.md @@ -0,0 +1,24 @@ +# x11vnc + +> A VNC server that will enable VNC on an existing display. +> By default, once a client disconnects the server will terminate. + +- Launch a VNC server that allows multiple clients to connect: + +`x11vnc -shared` + +- Launch the server where the user can only view the screen, and will continue to run even after the last client disconnects: + +`x11vnc -forever -viewonly` + +- Launch a VNC server on a specific display and screen: + +`x11vnc -display :{{screen}}.{{display}}` + +- Launch a VNC server on screen 2 with the default display: + +`x11vnc -display :{{2}}` + +- Launch a VNC server on the second monitor: + +`x11vnc -display :{{0}}.{{1}}` diff --git a/pages/linux/xdotool.md b/pages/linux/xdotool.md new file mode 100644 index 000000000..917c5cc46 --- /dev/null +++ b/pages/linux/xdotool.md @@ -0,0 +1,11 @@ +# xdotool + +> Command line automation for X11. + +- Retrieve the X-Windows window ID of the running Firefox window(s): + +`xdotool search --onlyvisibile --name {{firefox}}` + +- Click the right mouse button: + +`xdotool click {{3}}`