Results 1 to 6 of 6

Thread: Anyway to automate theme change?

  1. #1
    Join Date
    May 2006
    Location
    Tampa
    Beans
    229
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Question Anyway to automate theme change?

    I have a unique problem, I have 2 themes, one is light the other is dark, I have customized both to my liking and saved them in the gnome-appearance-manager as A and B.

    I like to use the dark theme at night and the light theme during the day. IS there anyway that this change can occur automatically depending on the time of day? even cooler if based on the sunset time. Its not that I mind changing the theme, it takes less than a couple of seconds, but it would be nice if it could be automated.

  2. #2
    Join Date
    Mar 2006
    Location
    Nerderlands
    Beans
    1,349
    Distro
    Ubuntu

    Re: Anyway to automate theme change?

    hmmm intresting..

    possibly, yes... you could have 2 folders, A and B, with config files. A third folder - REAL - would contain the actual files used by gnome (eg. ~./themes/)
    then you could run a cron job, coping file from A to REAL at the proper time. the same for the B folder.

    Problem is.. how to apply those settings. wouldnt want to do a ctrl-alt-bkscpace in the middle of your work..


    edit: maybe its not THAT simple
    Last edited by justleen; April 28th, 2008 at 01:00 PM.
    "Please choose a different password, the one you have chosen is in use by UID 1432"

  3. #3
    Join Date
    Feb 2008
    Location
    Townsville, Qld Australia
    Beans
    1,065

    Re: Anyway to automate theme change?

    I would check whether gconf-editor holds the information about the theme currently in use, I know you can set gconf keys from the commandline, so you could use at or cron to set the theme using gconf. From my experience gconf entry modifications generally take effect immediately.

    EDIT: found the tool you need to use to set the gconf keys: http://linux.die.net/man/1/gconftool-2 and here is a howto: http://ubuntuforums.org/showthread.php?t=392587
    Registered Linux User #464572
    journal.ryanhaigh.net
    www.ryanhaigh.net

  4. #4
    Join Date
    Nov 2006
    Location
    Mumbai, India
    Beans
    652

    Re: Anyway to automate theme change?

    In Synaptic search for "theme switch" and see what comes up
    [Arch + KDE]

  5. #5
    Join Date
    Mar 2006
    Location
    Nerderlands
    Beans
    1,349
    Distro
    Ubuntu

    Re: Anyway to automate theme change?

    clicking away for a few minutes:

    hmmm gconftool seems to be the way..

    hint: use gconf-editor to find the different paths / objects
    "Please choose a different password, the one you have chosen is in use by UID 1432"

  6. #6
    Join Date
    May 2006
    Location
    Tampa
    Beans
    229
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: Anyway to automate theme change?

    This is why I love you guys.

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
  •