Elric's random thoughts in idle times

"Why stop now, when I'm just starting to hate it?" – Marvin the robot

Better notify-osd integration on non-Ubuntu systems

leave a comment »

I really like some of the simplifications Ubuntu throws into the desktop. However, a lot of these new things (most) are only well integrated in their desktop. One example is notify-osd. It installs just fine from ppa under Debian, but both bright and volume controls may not work as expected.
I longed for a better integration with my Debian system, as I don’t like regular gnome notifications. Thankfully, there are scripts :) I found both in the Archlinux forums (some forums!).

This is the script that allows to change the volume using notify-osd.
http://bbs.archlinux.org/viewtopic.php?id=69589 Check up post number 10. (Thanks to abarilla for the original script).

Save the script as “vol”, cp to /usr/bin (or wherever in the PATH). Next, configure volume shortcuts under System -> Pref -> Keyb Shortcuts, being the commands, i.e., “vol up” “vol down” and “vol mute”. You might have to reconfigure your actual volume shortcuts so they won’t clash with the new ones.

The one for brightness is available at the following address. (Thanks to xabz).
http://foro.archlinux.cl/viewtopic.php?id=61,
Do cat /sys/class/backlight/acpi_video0/actual_brightness with maximum brightness, and replace the number 9 in the script with whatever value it returns.
Now set keyboard shortcuts.

The problem here is that Gnome may “forget” your shortcuts for brightness or volume if they are special keys “hardware” shortcuts…. I only suffer it with brightness on my laptop.

If you use compiz, you may encounter an issue with notify-osd flickering when it fades in or out. This is because notify-osd integrates its effects so they are the same regardless of the composite manager. The way to avoid such flickering is to add & !(name=notify-osd) in the “Window Match” section in ccsm for the animations that you use, and that may affect it.

Last but not least, I found this instructions in webupd8.org to install a configurable notify-osd. Add the launchpad ppa and your good to go!

Enjoy!

Advertisements

Written by elric80

May 17, 2010 at 5:19 pm

Posted in debian, gnome, linux

Tagged with , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: