Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
projects:lt_presentation [2016/01/27 14:11] – created Andreas Böhler | projects:lt_presentation [2017/03/27 12:21] (current) – Andreas Böhler | ||
---|---|---|---|
Line 3: | Line 3: | ||
As a teacher and lecturer, I need to give talks and presentations quite often. Usually, I write my presentations in LaTeX and use a PDF viewer like Atril (Mate Document Viewer) to display the slides. | As a teacher and lecturer, I need to give talks and presentations quite often. Usually, I write my presentations in LaTeX and use a PDF viewer like Atril (Mate Document Viewer) to display the slides. | ||
- | A few months ago, I also bought a Logitech R400 wireless presenter to control the presentation. This works quite well if the document viewer is the active window. However, I tend to have either a script or different other things on my Laptop' | + | A few months ago, I also bought a Logitech R400 wireless presenter |
==== The Solution ==== | ==== The Solution ==== | ||
- | The solution is a small Python application I called lt_presentation. It offers the following features, but is very closely tied to my environment. | + | The solution is a small Python application I called lt_presentation. It offers the following features, but is very closely tied to my environment. |
- | | + | You need the following (checked during startup): |
- | * xfce4-power-manager | + | |
- | * Atril | + | |
+ | * [optional] | ||
+ | * [optional] xdg-compliant power manager, such as xfce4-power-manager (can be disabled in [general] -> inhibit_xdg_pm) | ||
+ | * [optional] Workrave (can be disabled in [general] -> inhibit_workrave) | ||
+ | * Atril (can be changed in [programs] -> pdfviewer) | ||
* xdotool | * xdotool | ||
* wmctrl | * wmctrl | ||
Line 18: | Line 22: | ||
The program works the following way: It sits in the system tray and presents a right-click menu with the option to start a new presentation. After selecting it, you need to select the PDF presentation to use. Then, the following happens: | The program works the following way: It sits in the system tray and presents a right-click menu with the option to start a new presentation. After selecting it, you need to select the PDF presentation to use. Then, the following happens: | ||
- | * Atril is started | + | * PDF Viewer |
* The Power Manager is set to " | * The Power Manager is set to " | ||
* Xfce Power Manager is set to Presentation Mode | * Xfce Power Manager is set to Presentation Mode | ||
- | * The Logitech R400 is grabbed for exclusive access | + | |
- | * All button events are read from the R400 and sent directly to this, and only this, Atril window | + | |
- | * When Atril is closed, the R400 is released and the power management settings are restored. | + | * All button events are read from the presenter |
+ | * When Atril is closed, the presenter | ||
+ | |||
+ | This works through a series of " | ||
- | This works through | + | It requires |
- | Feel free to hack around the code at http:// | + | Feel free to hack around the code at http:// |