https://github.com/whiteinge/ob-randr
OpenBox pipemenu for using xrandr
https://github.com/whiteinge/ob-randr
Last synced: 9 months ago
JSON representation
OpenBox pipemenu for using xrandr
- Host: GitHub
- URL: https://github.com/whiteinge/ob-randr
- Owner: whiteinge
- License: bsd-3-clause
- Created: 2011-02-18T08:28:51.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2025-01-11T17:43:18.000Z (12 months ago)
- Last Synced: 2025-03-25T21:22:57.817Z (10 months ago)
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 16
- Watchers: 6
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
========
ob-randr
========
Creates an interactive pipe menu for the OpenBox window manager to allow users
easy access to xrandr information and actions.
.. image:: https://github.com/whiteinge/ob-randr/raw/master/ob-randr.png
Installation Instructions
=========================
1. Download the script: https://github.com/whiteinge/ob-randr/raw/master/ob-randr.py
2. Put it somewhere that makes sense::
mv ob-randr.py $HOME/.config/openbox
3. Make it executable::
chmod 755 $HOME/.config/openbox/ob-randr.py
4. Edit your ``$HOME/.config/openbox/menu.xml`` file and put this near the top
inside ````::
5. Add this inside the menu section that you want the menu to appear in::
Configuration File
==================
You can easily add custom commands to the menu by creating the file
``$HOME/.ob-randrrc``. The syntax looks like this::
[Notebook]
portrait: --output LVDS --primary --mode 1366x768 --output VGA-0 --mode 1440x900 --left-of LVDS --rotate left
[Netbook]
zoom out: --output LVDS --scale 1.3x1.3
zoom in: --output LVDS --panning 1280x1024
The idea is that you can create machine-specific shortcuts. For example, with
my laptop at home I frequently connect to an external widescreen display turned
sideways. On my netbook, I frequently 'zoom out' to a higher resolution in
scaled-out mode or 'zoom in' to a higher resolution in panning mode.