1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-02-12 11:21:53 +00:00
VirtScreen/README.md

117 lines
4 KiB
Markdown
Raw Permalink Normal View History

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-30 00:33:35 +00:00
1. Run the app.
2. Set options (resolution etc.) and enable the virtual screen.
3. Go to VNC tab and then start the VNC server.
4. Run your favorite VNC client app on your second device and connect it to the IP address appeared on the app.
2018-05-21 08:54:18 +00:00
2018-06-26 20:27:37 +00:00
### CLI-only option
2018-11-06 21:17:26 +00:00
You can run VirtScreen with `virtscreen` (or `./VirtScreen.AppImage` if you use the AppImage package) with additional arguments.
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-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
2018-11-06 21:17:26 +00:00
chmod a+x VirtScreen.AppImage
2018-06-25 18:32:18 +00:00
```
2018-11-06 21:17:26 +00:00
Then you can run it by double click the file or `./VirtScreen.AppImage` in terminal.
2018-06-25 18:32:18 +00:00
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
2018-11-06 21:17:26 +00:00
sudo dpkg -i virtscreen.deb
rm virtscreen.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)
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
yaourt virtscreen
```
2018-04-25 19:55:05 +00:00
2018-05-21 08:54:18 +00:00
### Python `pip`
2018-06-30 00:33:35 +00:00
Although not recommended, you may install it using `pip`. In this case, you need to install the dependancy (`xrandr` and `x11vnc`) manually.
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
```