#!/usr/bin/python3 import gi gi.require_version("Gtk","3.0") from gi.repository import Gtk settings=Gtk.Settings.get_default() print(settings.get_property('gtk-theme-name'))