Results 1 to 10 of 17

Thread: How to: change notification (notify-osd) colors in Karmic

Threaded View

  1. #1
    Join Date
    Mar 2007
    Beans
    2

    How to: change notification (notify-osd) colors in Karmic

    I was browsing over Google to find a way to change the colors of notify-osd and found johnl's topic. Since it's a little bit outdated, i myself ported and improved his path to work flawlessly on Karmic's version.

    The patch was made to work with version 0.9.24

    1. download & install dependencies
    install basic development tools:

    Code:
    sudo apt-get install build-essential libnotify-bin
    get the required libraries to build notify-osd:

    Code:
    sudo apt-get build-dep notify-osd
    Download the source from notify-osd

    Code:
    apt-get source notify-osd

    3. download and apply the attached patch file
    right click on the attached .patch files. choose to save it in the same directory you fetched the source (in my case, ~/notify-osd-0.9.24). There are two patches attached. One purely adds the feature to change the colors. The other one changes it and also puts the notify on the very top right, just like older jaunty version (thanks Julien Lavergne).

    Choose one of these patches and apply it.

    Code:
    cd notify-osd-0.9.24
    patch -p1 -i notify-color-hack-karmic.patch.txt
    or

    Code:
    cd notify-osd-0.9.24
    patch -p1 -i notify-color-position-hack-karmic.patch.txt

    There should not be any errors.

    4. build a new notify-osd

    Code:
    dpkg-buildpackage -rfakeroot -uc -b
    This will create a deb package of your hacked notify-osd in your home folder. Install it with gdebi or dpkg.

    Code:
    cd ..
    sudo dpkg -i notify-osd-0.9.24*.deb
    Now you have to create the config file that will determine the colors of the notification bubble.

    5. customizing the colors
    save the following file as ".notify-osd" in your home directory:

    Code:
    bubble-background-color = DBDBDB
    bubble-background-opacity = .65
    text-title-color = 000000
    text-title-opacity = 1.0
    text-body-color = 527499
    text-body-opacity = 1.0
    text-shadow-opacity = .1
    text-shadow-color = 000000
    edit the file ~/.notify-osd to edit the colors. Because this is a quick hack, make sure that each line follows the format "key = value" including the spaces around the equals sign. It's lame, I know.

    *-color entries change the color of that item. For example, bubble-background-color changes the notification window color. The value for these entries is a html-style color without the leading "#". E.g,

    Code:
    bubble-background-color = c0c0c0
    will give you a light gray window.

    *-opacity entries change the opacity (transparency) of that item when compiz is enabled. "1.0" means entirely opaque. "0.0" means entirely transparent (invisible). E.g,

    Code:
    bubble-background-opacity = 0.75
    Will give you a window that is 75% opaque.

    If you make changes to the configuration file you must kill the current running notify-osd process ('killall notify-osd') before you will see the changes. You don't need to restart it as it will restart automatically next time it is needed.

    Click image for larger version. 

Name:	notifyhacked.jpg 
Views:	557 
Size:	31.0 KB 
ID:	143351

    Thanks to johnl for the original Howto
    Attached Files Attached Files
    Last edited by genaroneto; January 13th, 2010 at 10:07 PM. Reason: typo

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •