/xrandr-layout

A small utility that helps set different screen layouts using xrandr

Primary LanguagePythonMIT LicenseMIT

xrandr layout

python shield

A simple utility script that works with xrandr to change/switch between different layouts.

For now it works with my Arch installation with one external monitor setup with i3wm and uses PyQt5 to show a little toast notification on the screen.

Requirements

  1. xrandr
  2. Python 3.x
  3. PyQt5

Run

To install the necessary requirements simply run:

λ pipenv install

To start the app simply run:

λ python toggle.py

Future updates

  • Show toast notification when display changes using PyQt.
  • Finish the feature to save current screen layout configuration to a config yaml file
  • Make it an installable package, so that it's just a pip install away :)

License

MIT License

Copyright © 2021 Shashank Srivastav