LeonN534 / Project-Screen-Linux

A windows-like interface to quickly project your PC screen
0 stars 0 forks source link

Project Screen for Linux



Project screen for Linux is an script that tries to emulate Windows behaviour when trying to project your screen or use another monitor. The main goal is to let you project your screen without wasting time writing a bunch of commands everytime you plug a projector, monitor, tv, etc.

The scripts uses mons as background to handle profiles. It also uses XrandR to detect secondary monitors.

Flavors

There are two scripts to choose: eye-candy and simple.

Features

Not only does the script provides mons functionality, but also sets automatically the resolution of the second monitor based on the resolution of the primary one.

Aiming to

As a goal for the future, I'm trying to solve overscan/underscan automatically, just like Windows does.

Installation and usage

git clone git@github.com:LeonN534/Project-Screen-Linux.git
cd Project-Screen-Linux
cp src/project-screen-eyecandy.sh ~/.scripts
selected=$(echo "$options" | rofi -dmenu -theme-str '@import "your-custom-config.rasi"' -markup-rows)
# For the icons
mkdir -p ~/.icons/project-screen
cp icons/png/* ~/.icons/project-screen
# The rofi config and theme
cp -r src/rofi/* ~/.config/rofi
# For example, in sxhkdrc
super + p
    ~/.scripts/project-screen-eyecandy.sh

Tips

Just like in Windows, whe win+p utility is not always enough to set a multimonitor set up, that't why Windows has a dedicated settings page to the monitors layout:

To emulate this settings page, I recommend using ARandR, a GUI to manage XrandR. It offers kind of a similar approach to what Windows has: