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.
There are two scripts to choose: eye-candy and simple.
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.
As a goal for the future, I'm trying to solve overscan/underscan automatically, just like Windows does.
git clone git@github.com:LeonN534/Project-Screen-Linux.git
src
folder, choose one flavor and copy it to the folder where your user scripts reside. For example: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
windows + p
) though your window manager to execute the script.# For example, in sxhkdrc
super + p
~/.scripts/project-screen-eyecandy.sh
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: