https://github.com/maur1th/lxde-volumecontrolosd
Volume control and OSD for LXDE with pulseaudio and xfce4-notifyd (lubuntu 14.04 setup)
https://github.com/maur1th/lxde-volumecontrolosd
Last synced: 30 days ago
JSON representation
Volume control and OSD for LXDE with pulseaudio and xfce4-notifyd (lubuntu 14.04 setup)
- Host: GitHub
- URL: https://github.com/maur1th/lxde-volumecontrolosd
- Owner: maur1th
- License: gpl-3.0
- Created: 2014-09-30T13:08:43.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-30T15:56:33.000Z (almost 12 years ago)
- Last Synced: 2025-11-30T19:13:34.446Z (7 months ago)
- Language: Python
- Homepage:
- Size: 211 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
LXDE-VolumeControlOSD
=====================
Adds laptop media keys (volume +/-/mute) support and OSD for LXDE with pulseaudio and xfce4-notifyd (lubuntu 14.04 base setup). Tested on a ThinkPad X240.
##Installation
1. Install notify-send (libnotify-bin package in ubuntu/debian).
2. Move the `volumeControl.py` script to the user's `~/.config/openbox/` directory and modify the `*rc.xml` file within. Add to or update its `` section accordingly:
```xml
...
python3 ~/.config/openbox/volumeControl.py raise
python3 ~/.config/openbox/volumeControl.py lower
python3 ~/.config/openbox/volumeControl.py toggle-mute
...
```
3. Then reload openbox by delogging/relogging or invoking `openbox --reconfigure` in a Terminal window.
##Notifications display
You might want to force the notifications to stack by adding the following snippet to the `` section of `*rc.xml`:
```xml
center
-50
```
###Customization
To customize the position of the OSD, change x and y values. Top (y) and left (x) borders of the screen are (+)0, right (x) and bottom (y) -0. E.g. A y value of -50 will make windows appear 50px away from the bottom of the screen.
##lubuntu/xfce4-power-manager OSD workaround:
xfce4-power-manager handles brightness +/- keys and its OSD which position cannot be forced by openbox `*rc.xml` configuration. If you want to disable this OSD (courtesy of [docs.xfce.org](http://docs.xfce.org/xfce/xfce4-power-manager/preferences)):
`xfconf-query -c xfce4-power-manager -n -p "/xfce4-power-manager/show-brightness-popup" -t bool -s false`