gnomeshell

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package gnomeshell provides an output plugin for GNOME Shell theming.

Index

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 New

func New() *Plugin

New creates a new GNOME Shell plugin instance.

func (*Plugin) DefaultOutputDir

func (p *Plugin) DefaultOutputDir() string

DefaultOutputDir returns the default output directory.

func (*Plugin) Description

func (p *Plugin) Description() string

Description returns the plugin description.

func (*Plugin) Generate

func (p *Plugin) Generate(themeData *colour.ThemeData) (map[string][]byte, error)

Generate creates the GNOME Shell theme files.

func (*Plugin) GetEmbeddedFS

func (p *Plugin) GetEmbeddedFS() any

GetEmbeddedFS returns the embedded filesystem containing templates.

func (*Plugin) GetFlagHelp

func (p *Plugin) GetFlagHelp() []output.FlagHelp

GetFlagHelp returns help text for plugin flags.

func (*Plugin) Name

func (p *Plugin) Name() string

Name returns the plugin name.

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

func (p *Plugin) PreExecute(_ context.Context) (skip bool, reason string, err error)

PreExecute checks if GNOME Shell and User Themes extension are installed.

func (*Plugin) RegisterFlags

func (p *Plugin) RegisterFlags(cmd *cobra.Command)

RegisterFlags registers command-line flags for this plugin.

func (*Plugin) SetVerbose

func (p *Plugin) SetVerbose(verbose bool)

SetVerbose enables verbose output.

func (*Plugin) Validate

func (p *Plugin) Validate() error

Validate validates the plugin configuration.

func (*Plugin) Version

func (p *Plugin) Version() string

Version returns the plugin version.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL