Results 1 to 5 of 5

Thread: How to detect current theme from terminal?

  1. #1
    Join Date
    Nov 2010
    Beans
    69

    How to detect current theme from terminal?

    First thing is always searching google.
    i found this:
    http://ubuntuforums.org/showpost.php...93&postcount=2

    the commands always outputs
    Ambience
    ubuntu-mono-dark
    Ambience

    whatever the current theme is. But is from 2008 so its reasonable somethings to have changed. Any ideas on how can i do it now?


  2. #2
    Join Date
    Feb 2010
    Location
    Obscurial Springs
    Beans
    15,209
    Distro
    Ubuntu Budgie Development Release

    Re: How to detect current theme from terminal?

    Ubuntu has used the dconf editor on Gnome 3.xx since 11.10 and in 2008 the Gnome 2 was still in use . I don't how commands might have changed though.

    My output displays a theme I tried and completely removed two days ago.
    "Our intention creates our reality. "

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Flavors

  3. #3
    Join Date
    Apr 2008
    Beans
    11,707

    Re: How to detect current theme from terminal?

    You don't mention what version of Ubuntu you're using but I figured this out for 12.04 with the Unity-2D and classic (no effects) sessions:

    Code:
    gconftool-2 -g /apps/metacity/general/theme
    Code:
    gsettings get org.gnome.desktop.interface gtk-theme
    Code:
    gsettings get org.gnome.desktop.interface icon-theme
    Code:
    gsettings get org.gnome.desktop.interface cursor-theme
    I'd think the latter three would be the same with Compiz but the first one may be different. You may find some other useful stuff here:

    http://ubuntuforums.org/showpost.php...5&postcount=70

  4. #4
    Join Date
    Oct 2008
    Beans
    3,509

    Re: How to detect current theme from terminal?

    Edit...Too slow

    Use gsettings to get dconf values.
    The last one is your window or titlebar theme.
    Code:
    gsettings get org.gnome.desktop.interface gtk-theme
    gsettings get org.gnome.desktop.interface icon-theme
    gsettings get org.gnome.desktop.interface cursor-theme
    gsettings get org.gnome.desktop.wm.preferences theme

  5. #5
    Join Date
    Dec 2007
    Beans
    12,521

    Re: How to detect current theme from terminal?

    Quote Originally Posted by stinkeye View Post
    Edit...Too slow

    Use gsettings to get dconf values.
    The last one is your window or titlebar theme.
    Code:
    gsettings get org.gnome.desktop.interface gtk-theme
    gsettings get org.gnome.desktop.interface icon-theme
    gsettings get org.gnome.desktop.interface cursor-theme
    gsettings get org.gnome.desktop.wm.preferences theme
    Doesn't work for a pure Lubuntu 12.10. I see:
    Code:
    [07:40 AM] ~ $ gsettings get org.gnome.desktop.interface gtk-theme
    'Adwaita'
    [07:41 AM] ~ $ gsettings get org.gnome.desktop.interface icon-theme
    'gnome'
    [07:41 AM] ~ $ gsettings get org.gnome.desktop.interface cursor-theme
    'Adwaita'
    [07:41 AM] ~ $ gsettings get org.gnome.desktop.wm.preferences theme
    'Adwaita'
    [07:41 AM] ~ $
    Any ideas what will work for Lubuntu?

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
  •