Skip to content

Commit

Permalink
x11vnc, xdotool, rev: add pages (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeftor authored and agnivade committed Feb 21, 2017
1 parent 0e099fc commit 8fdc908
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 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}}`
24 changes: 24 additions & 0 deletions 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}}`
11 changes: 11 additions & 0 deletions 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}}`

0 comments on commit 8fdc908

Please sign in to comment.