2018-06-29 22:10:12 +00:00
< h1 align = "center" >
< img src = "data/icon_full.svg" width = "21%" >
< br / >
VirtScreen
< / h1 >
< h4 align = "center" >
Make your iPad/tablet/computer as a secondary monitor on Linux.
< / h4 >
< div align = "center" >
< a href = "https://github.com/kbumsik/VirtScreen" >
< img src = "https://raw.githubusercontent.com/kbumsik/VirtScreen/master/data/gif_example.gif" alt = "VirtScreen" width = "80%" >
< / a >
< / div >
## Description
2018-04-26 20:35:28 +00:00
2018-04-25 19:55:05 +00:00
VirtScreen is an easy-to-use Linux GUI app that creates a virtual secondary screen and shares it through VNC.
2018-06-28 12:14:53 +00:00
VirtScreen is based on [PyQt5 ](https://www.riverbankcomputing.com/software/pyqt/intro ) and [asyncio ](https://docs.python.org/3/library/asyncio.html ) in Python side and uses [x11vnc ](https://github.com/LibVNC/x11vnc ) and XRandR.
2018-04-25 19:55:05 +00:00
2018-06-26 20:27:37 +00:00
## Features
* No more typing commands - create a second VNC screen with a few clicks from the GUI.
* ...But there is also command-line only options for CLI lovers.
* Highly configurable - resolutions, portrait mode, and HiDPI mode.
* Works on any Linux Distro with Xorg
* Lightweight
* System Tray Icon
2018-05-21 08:54:18 +00:00
## How to use
2018-04-25 19:55:05 +00:00
2018-06-26 20:27:37 +00:00
### GUI (default)
2018-05-23 23:40:15 +00:00
Upon installation (see Installing section to install), there will be a desktop entry called `VirtScreen`
2018-05-21 08:54:18 +00:00
2018-06-26 20:27:37 +00:00
### CLI-only option
You can run VirtScreen with `virtscreen` (or `./VirtScreen-x86_64.AppImage` if you use the AppImage package) with additional arguments.
2018-05-20 04:42:58 +00:00
2018-04-25 19:55:05 +00:00
```bash
2018-06-26 20:27:37 +00:00
usage: virtscreen [-h] [--auto] [--left] [--right] [--above] [--below]
[--portrait] [--hidpi]
Make your iPad/tablet/computer as a secondary monitor on Linux.
You can start VirtScreen in the following two modes:
- GUI mode: A system tray icon will appear when no argument passed.
You need to use this first to configure a virtual screen.
- CLI mode: After configured the virtual screen, you can start VirtScreen
in CLI mode if you do not want a GUI, by passing any arguments
optional arguments:
-h, --help show this help message and exit
--auto create a virtual screen automatically using previous
settings (from both GUI mode and CLI mode)
--left a virtual screen will be created left to the primary
monitor
--right right to the primary monitor
--above, --up above the primary monitor
--below, --down below the primary monitor
--portrait Portrait mode. Width and height of the screen are swapped
--hidpi HiDPI mode. Width and height are doubled
example:
virtscreen # GUI mode. You need to use this first
# to configure the screen
virtscreen --auto # CLI mode. Scrren will be created using previous
# settings (from both GUI mode and CLI mode)
virtscreen --left # CLI mode. On the left to the primary monitor
virtscreen --below # CLI mode. Below the primary monitor.
virtscreen --below --portrait # Below, and portrait mode.
virtscreen --below --portrait --hipdi # Below, portrait, HiDPI mode.
2018-04-25 19:55:05 +00:00
```
2018-05-23 20:21:17 +00:00
## Installation
2018-05-20 04:42:58 +00:00
2018-06-25 18:32:18 +00:00
### Universal package (AppImage)
Download a `.AppImage` package from [releases page ](https://github.com/kbumsik/VirtScreen/releases ). Then make it executable:
```shell
chmod a+x VirtScreen-x86_64.AppImage
```
Then you can run it by double click the file or `./VirtScreen-x86_64.AppImage` in terminal.
2018-05-21 08:54:18 +00:00
### Debian (Ubuntu)
2018-04-25 19:55:05 +00:00
2018-06-25 18:32:18 +00:00
Download a `.deb` package from [releases page ](https://github.com/kbumsik/VirtScreen/releases ). Then install it:
2018-06-03 18:04:15 +00:00
2018-06-25 18:32:18 +00:00
```shell
2018-06-03 18:04:15 +00:00
sudo apt-get update
2018-06-25 18:32:18 +00:00
sudo apt-get install x11vnc
sudo dpkg -i virtscreen_0.2.4-1_all.deb
rm virtscreen_0.2.4-1_all.deb
2018-06-03 18:04:15 +00:00
```
2018-04-25 19:55:05 +00:00
2018-05-21 08:54:18 +00:00
### Arch Linux (AUR)
2018-05-20 04:42:58 +00:00
2018-06-24 18:56:09 +00:00
There is [`virtscreen` AUR package ](https://aur.archlinux.org/packages/virtscreen/ ) available. Though there are many ways to install the AUR package, one of the easiest way is to use [`yaourt` ](https://github.com/polygamma/aurman ) AUR helper:
2018-04-25 19:55:05 +00:00
```bash
2018-06-24 18:56:09 +00:00
yaourt virtscreen
2018-05-20 04:42:58 +00:00
```
2018-04-25 19:55:05 +00:00
2018-05-21 08:54:18 +00:00
### Python `pip`
2018-06-25 18:32:18 +00:00
Although not recommended, you may install it using `pip` . In this case, you need to install the dependancies manually.
2018-05-23 20:21:17 +00:00
2018-06-24 18:56:09 +00:00
You need [`x11vnc` ](https://github.com/LibVNC/x11vnc ), `xrandr` . To install (e.g. on Ubuntu):
2018-05-20 04:42:58 +00:00
```bash
2018-06-24 18:56:09 +00:00
sudo apt-get install x11vnc # On Debian/Ubuntu, xrandr is included.
2018-04-25 19:55:05 +00:00
```
2018-04-26 17:32:42 +00:00
2018-05-23 20:21:17 +00:00
After you install the dependancies then run:
2018-05-21 08:54:18 +00:00
```bash
2018-06-03 18:04:15 +00:00
sudo pip install virtscreen
2018-05-21 08:54:18 +00:00
```