Documentation
¶
Overview ¶
Package gnomeshell provides an output plugin for GNOME Shell theming.
Index ¶
- type Plugin
- func (p *Plugin) DefaultOutputDir() string
- func (p *Plugin) Description() string
- func (p *Plugin) Generate(themeData *colour.ThemeData) (map[string][]byte, error)
- func (p *Plugin) GetEmbeddedFS() any
- func (p *Plugin) GetFlagHelp() []output.FlagHelp
- func (p *Plugin) Name() string
- func (p *Plugin) PostExecute(ctx context.Context, execCtx output.ExecutionContext, _ []string) error
- func (p *Plugin) PreExecute(_ context.Context) (skip bool, reason string, err error)
- func (p *Plugin) RegisterFlags(cmd *cobra.Command)
- func (p *Plugin) SetVerbose(verbose bool)
- func (p *Plugin) Validate() error
- func (p *Plugin) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements the output.Plugin interface for GNOME Shell themes.
func (*Plugin) DefaultOutputDir ¶
DefaultOutputDir returns the default output directory.
func (*Plugin) Description ¶
Description returns the plugin description.
func (*Plugin) GetEmbeddedFS ¶
GetEmbeddedFS returns the embedded filesystem containing templates.
func (*Plugin) GetFlagHelp ¶
GetFlagHelp returns help text for plugin flags.
func (*Plugin) PostExecute ¶
func (p *Plugin) PostExecute(ctx context.Context, execCtx output.ExecutionContext, _ []string) error
PostExecute applies theme settings and sets wallpaper automatically. Strategy 1: D-Bus theme reload (most reliable, no theme toggling needed) Strategy 2: gsettings theme toggling (fallback).
func (*Plugin) PreExecute ¶
PreExecute checks if GNOME Shell and User Themes extension are installed.
func (*Plugin) RegisterFlags ¶
RegisterFlags registers command-line flags for this plugin.
func (*Plugin) SetVerbose ¶
SetVerbose enables verbose output.