Skip to content

Examples

Christian Weber edited this page Jun 14, 2013 · 3 revisions

Usage examples

Naturally you have to write some wrapper scripts around the thor-cli command to make it usefull. These scripts can then be mapped to special keys with either your window manager or programs such as xbindkeys. This page will show some of the most common examples.

Brightness

This script is pretty straightforward. It simply reads the actual brightness and calls thor-cli to visualize them. If your hardware doesn't handle the brightness keys by itself, you can for example write a acpid handler script.

brightness.sh

Volume (using ALSA)

This script uses amixer to raise/lower/mute the Master setting and displays the resulting volume. The muted volume will be unmuted as soon as any volume key is pressed.

volume.sh

Clone this wiki locally