Documentation
¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetAudio() *Config_Audio
- func (x *Config) GetDbus() *Config_DBUS
- func (x *Config) GetLogLevel() LogLevel
- func (x *Config) GetLogSubprocessesToJournal() bool
- func (x *Config) GetPanels() []*Panel
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type Config_Audio
- func (*Config_Audio) Descriptor() ([]byte, []int)deprecated
- func (x *Config_Audio) GetEnabled() bool
- func (x *Config_Audio) GetHudNotifications() bool
- func (x *Config_Audio) GetVolumeExceedMaximum() bool
- func (x *Config_Audio) GetVolumeStepPercent() uint32
- func (*Config_Audio) ProtoMessage()
- func (x *Config_Audio) ProtoReflect() protoreflect.Message
- func (x *Config_Audio) Reset()
- func (x *Config_Audio) String() string
- type Config_DBUS
- func (*Config_DBUS) Descriptor() ([]byte, []int)deprecated
- func (x *Config_DBUS) GetBrightness() *Config_DBUS_Brightness
- func (x *Config_DBUS) GetConnectInterval() *durationpb.Duration
- func (x *Config_DBUS) GetConnectTimeout() *durationpb.Duration
- func (x *Config_DBUS) GetEnabled() bool
- func (x *Config_DBUS) GetNotifications() *Config_DBUS_Notifications
- func (x *Config_DBUS) GetPower() *Config_DBUS_Power
- func (x *Config_DBUS) GetShortcuts() *Config_DBUS_Shortcuts
- func (x *Config_DBUS) GetSystray() *Config_DBUS_Systray
- func (*Config_DBUS) ProtoMessage()
- func (x *Config_DBUS) ProtoReflect() protoreflect.Message
- func (x *Config_DBUS) Reset()
- func (x *Config_DBUS) String() string
- type Config_DBUS_Brightness
- func (*Config_DBUS_Brightness) Descriptor() ([]byte, []int)deprecated
- func (x *Config_DBUS_Brightness) GetAdjustStepPercent() uint32
- func (x *Config_DBUS_Brightness) GetEnableLogind() bool
- func (x *Config_DBUS_Brightness) GetEnabled() bool
- func (x *Config_DBUS_Brightness) GetHudNotifications() bool
- func (x *Config_DBUS_Brightness) GetMinBrightness() uint32
- func (*Config_DBUS_Brightness) ProtoMessage()
- func (x *Config_DBUS_Brightness) ProtoReflect() protoreflect.Message
- func (x *Config_DBUS_Brightness) Reset()
- func (x *Config_DBUS_Brightness) String() string
- type Config_DBUS_Notifications
- func (*Config_DBUS_Notifications) Descriptor() ([]byte, []int)deprecated
- func (x *Config_DBUS_Notifications) GetEnabled() bool
- func (*Config_DBUS_Notifications) ProtoMessage()
- func (x *Config_DBUS_Notifications) ProtoReflect() protoreflect.Message
- func (x *Config_DBUS_Notifications) Reset()
- func (x *Config_DBUS_Notifications) String() string
- type Config_DBUS_Power
- func (*Config_DBUS_Power) Descriptor() ([]byte, []int)deprecated
- func (x *Config_DBUS_Power) GetCriticalCommand() string
- func (x *Config_DBUS_Power) GetCriticalPercent() uint32
- func (x *Config_DBUS_Power) GetEnabled() bool
- func (x *Config_DBUS_Power) GetHudNotifications() bool
- func (x *Config_DBUS_Power) GetLowCommand() string
- func (x *Config_DBUS_Power) GetLowPercent() uint32
- func (*Config_DBUS_Power) ProtoMessage()
- func (x *Config_DBUS_Power) ProtoReflect() protoreflect.Message
- func (x *Config_DBUS_Power) Reset()
- func (x *Config_DBUS_Power) String() string
- type Config_DBUS_Shortcuts
- func (*Config_DBUS_Shortcuts) Descriptor() ([]byte, []int)deprecated
- func (x *Config_DBUS_Shortcuts) GetEnabled() bool
- func (*Config_DBUS_Shortcuts) ProtoMessage()
- func (x *Config_DBUS_Shortcuts) ProtoReflect() protoreflect.Message
- func (x *Config_DBUS_Shortcuts) Reset()
- func (x *Config_DBUS_Shortcuts) String() string
- type Config_DBUS_Systray
- func (*Config_DBUS_Systray) Descriptor() ([]byte, []int)deprecated
- func (x *Config_DBUS_Systray) GetEnabled() bool
- func (*Config_DBUS_Systray) ProtoMessage()
- func (x *Config_DBUS_Systray) ProtoReflect() protoreflect.Message
- func (x *Config_DBUS_Systray) Reset()
- func (x *Config_DBUS_Systray) String() string
- type Edge
- type LogLevel
- type Panel
- func (*Panel) Descriptor() ([]byte, []int)deprecated
- func (x *Panel) GetEdge() Edge
- func (x *Panel) GetId() string
- func (x *Panel) GetModules() []*v1.Module
- func (x *Panel) GetMonitor() string
- func (x *Panel) GetSize() uint32
- func (*Panel) ProtoMessage()
- func (x *Panel) ProtoReflect() protoreflect.Message
- func (x *Panel) Reset()
- func (x *Panel) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Edge_name = map[int32]string{ 0: "EDGE_UNSPECIFIED", 1: "EDGE_TOP", 2: "EDGE_RIGHT", 3: "EDGE_BOTTOM", 4: "EDGE_LEFT", } Edge_value = map[string]int32{ "EDGE_UNSPECIFIED": 0, "EDGE_TOP": 1, "EDGE_RIGHT": 2, "EDGE_BOTTOM": 3, "EDGE_LEFT": 4, } )
Enum value maps for Edge.
View Source
var ( LogLevel_name = map[int32]string{ 0: "LOG_LEVEL_UNSPECIFIED", 1: "LOG_LEVEL_TRACE", 2: "LOG_LEVEL_DEBUG", 3: "LOG_LEVEL_INFO", 4: "LOG_LEVEL_WARN", 5: "LOG_LEVEL_ERROR", 6: "LOG_LEVEL_OFF", } LogLevel_value = map[string]int32{ "LOG_LEVEL_UNSPECIFIED": 0, "LOG_LEVEL_TRACE": 1, "LOG_LEVEL_DEBUG": 2, "LOG_LEVEL_INFO": 3, "LOG_LEVEL_WARN": 4, "LOG_LEVEL_ERROR": 5, "LOG_LEVEL_OFF": 6, } )
Enum value maps for LogLevel.
View Source
var File_hyprpanel_config_v1_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LogLevel LogLevel `protobuf:"varint,1,opt,name=log_level,json=logLevel,proto3,enum=hyprpanel.config.v1.LogLevel" json:"log_level,omitempty"` // specifies the maximum log level for output. LogSubprocessesToJournal bool `` // send processes spawned by e.g. taskbar launchers to the systemd journal via sytstemd-cat. /* 138-byte string literal not displayed */ Dbus *Config_DBUS `protobuf:"bytes,3,opt,name=dbus,proto3" json:"dbus,omitempty"` // dbus configuration section. Audio *Config_Audio `protobuf:"bytes,4,opt,name=audio,proto3" json:"audio,omitempty"` // audio configuration section. Panels []*Panel `protobuf:"bytes,6,rep,name=panels,proto3" json:"panels,omitempty"` // list of panels to display. // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetAudio ¶
func (x *Config) GetAudio() *Config_Audio
func (*Config) GetDbus ¶
func (x *Config) GetDbus() *Config_DBUS
func (*Config) GetLogLevel ¶
func (*Config) GetLogSubprocessesToJournal ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Config_Audio ¶
type Config_Audio struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // if false, no Audio functionality is available. VolumeStepPercent uint32 `protobuf:"varint,2,opt,name=volume_step_percent,json=volumeStepPercent,proto3" json:"volume_step_percent,omitempty"` // percentage that volume should change on each adjustment. VolumeExceedMaximum bool `protobuf:"varint,3,opt,name=volume_exceed_maximum,json=volumeExceedMaximum,proto3" json:"volume_exceed_maximum,omitempty"` // allow increasing volume above 100%. HudNotifications bool `protobuf:"varint,4,opt,name=hud_notifications,json=hudNotifications,proto3" json:"hud_notifications,omitempty"` // display HUD notifications on volume change (requires at least one HUD module). // contains filtered or unexported fields }
func (*Config_Audio) Descriptor
deprecated
func (*Config_Audio) Descriptor() ([]byte, []int)
Deprecated: Use Config_Audio.ProtoReflect.Descriptor instead.
func (*Config_Audio) GetEnabled ¶
func (x *Config_Audio) GetEnabled() bool
func (*Config_Audio) GetHudNotifications ¶
func (x *Config_Audio) GetHudNotifications() bool
func (*Config_Audio) GetVolumeExceedMaximum ¶
func (x *Config_Audio) GetVolumeExceedMaximum() bool
func (*Config_Audio) GetVolumeStepPercent ¶
func (x *Config_Audio) GetVolumeStepPercent() uint32
func (*Config_Audio) ProtoMessage ¶
func (*Config_Audio) ProtoMessage()
func (*Config_Audio) ProtoReflect ¶
func (x *Config_Audio) ProtoReflect() protoreflect.Message
func (*Config_Audio) Reset ¶
func (x *Config_Audio) Reset()
func (*Config_Audio) String ¶
func (x *Config_Audio) String() string
type Config_DBUS ¶
type Config_DBUS struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // if false, no DBUS functionality is available. ConnectTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=connect_timeout,json=connectTimeout,proto3" json:"connect_timeout,omitempty"` // specifies the maximum time we will attempt to connect to the bus before failing (format: "20s"). ConnectInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=connect_interval,json=connectInterval,proto3" json:"connect_interval,omitempty"` // specifies the interval that we will attempt to connect to the session bus on startup (format: "0.200s"). Notifications *Config_DBUS_Notifications `protobuf:"bytes,4,opt,name=notifications,proto3" json:"notifications,omitempty"` // notifications configuration. Systray *Config_DBUS_Systray `protobuf:"bytes,5,opt,name=systray,proto3" json:"systray,omitempty"` // systray configuration. Shortcuts *Config_DBUS_Shortcuts `protobuf:"bytes,6,opt,name=shortcuts,proto3" json:"shortcuts,omitempty"` // shortcuts configuration. Brightness *Config_DBUS_Brightness `protobuf:"bytes,7,opt,name=brightness,proto3" json:"brightness,omitempty"` // brightness configuration. Power *Config_DBUS_Power `protobuf:"bytes,8,opt,name=power,proto3" json:"power,omitempty"` // power configuration. // contains filtered or unexported fields }
func (*Config_DBUS) Descriptor
deprecated
func (*Config_DBUS) Descriptor() ([]byte, []int)
Deprecated: Use Config_DBUS.ProtoReflect.Descriptor instead.
func (*Config_DBUS) GetBrightness ¶
func (x *Config_DBUS) GetBrightness() *Config_DBUS_Brightness
func (*Config_DBUS) GetConnectInterval ¶
func (x *Config_DBUS) GetConnectInterval() *durationpb.Duration
func (*Config_DBUS) GetConnectTimeout ¶
func (x *Config_DBUS) GetConnectTimeout() *durationpb.Duration
func (*Config_DBUS) GetEnabled ¶
func (x *Config_DBUS) GetEnabled() bool
func (*Config_DBUS) GetNotifications ¶
func (x *Config_DBUS) GetNotifications() *Config_DBUS_Notifications
func (*Config_DBUS) GetPower ¶
func (x *Config_DBUS) GetPower() *Config_DBUS_Power
func (*Config_DBUS) GetShortcuts ¶
func (x *Config_DBUS) GetShortcuts() *Config_DBUS_Shortcuts
func (*Config_DBUS) GetSystray ¶
func (x *Config_DBUS) GetSystray() *Config_DBUS_Systray
func (*Config_DBUS) ProtoMessage ¶
func (*Config_DBUS) ProtoMessage()
func (*Config_DBUS) ProtoReflect ¶
func (x *Config_DBUS) ProtoReflect() protoreflect.Message
func (*Config_DBUS) Reset ¶
func (x *Config_DBUS) Reset()
func (*Config_DBUS) String ¶
func (x *Config_DBUS) String() string
type Config_DBUS_Brightness ¶
type Config_DBUS_Brightness struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // enables brightness control functionality. AdjustStepPercent uint32 `protobuf:"varint,2,opt,name=adjust_step_percent,json=adjustStepPercent,proto3" json:"adjust_step_percent,omitempty"` // percentage that brightness should change on each adjustment. MinBrightness uint32 `protobuf:"varint,3,opt,name=min_brightness,json=minBrightness,proto3" json:"min_brightness,omitempty"` // minimum brightness value. EnableLogind bool `protobuf:"varint,4,opt,name=enable_logind,json=enableLogind,proto3" json:"enable_logind,omitempty"` // set brightness via systemd-logind DBUS interface instead of direct sysfs. Requires logind session, and DBUS.enabled = true. HudNotifications bool `protobuf:"varint,5,opt,name=hud_notifications,json=hudNotifications,proto3" json:"hud_notifications,omitempty"` // display HUD notifications on change (requires at least one HUD module). // contains filtered or unexported fields }
func (*Config_DBUS_Brightness) Descriptor
deprecated
func (*Config_DBUS_Brightness) Descriptor() ([]byte, []int)
Deprecated: Use Config_DBUS_Brightness.ProtoReflect.Descriptor instead.
func (*Config_DBUS_Brightness) GetAdjustStepPercent ¶
func (x *Config_DBUS_Brightness) GetAdjustStepPercent() uint32
func (*Config_DBUS_Brightness) GetEnableLogind ¶
func (x *Config_DBUS_Brightness) GetEnableLogind() bool
func (*Config_DBUS_Brightness) GetEnabled ¶
func (x *Config_DBUS_Brightness) GetEnabled() bool
func (*Config_DBUS_Brightness) GetHudNotifications ¶
func (x *Config_DBUS_Brightness) GetHudNotifications() bool
func (*Config_DBUS_Brightness) GetMinBrightness ¶
func (x *Config_DBUS_Brightness) GetMinBrightness() uint32
func (*Config_DBUS_Brightness) ProtoMessage ¶
func (*Config_DBUS_Brightness) ProtoMessage()
func (*Config_DBUS_Brightness) ProtoReflect ¶
func (x *Config_DBUS_Brightness) ProtoReflect() protoreflect.Message
func (*Config_DBUS_Brightness) Reset ¶
func (x *Config_DBUS_Brightness) Reset()
func (*Config_DBUS_Brightness) String ¶
func (x *Config_DBUS_Brightness) String() string
type Config_DBUS_Notifications ¶
type Config_DBUS_Notifications struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // toggles the notification host functionality, required for "notifications" module. // contains filtered or unexported fields }
func (*Config_DBUS_Notifications) Descriptor
deprecated
func (*Config_DBUS_Notifications) Descriptor() ([]byte, []int)
Deprecated: Use Config_DBUS_Notifications.ProtoReflect.Descriptor instead.
func (*Config_DBUS_Notifications) GetEnabled ¶
func (x *Config_DBUS_Notifications) GetEnabled() bool
func (*Config_DBUS_Notifications) ProtoMessage ¶
func (*Config_DBUS_Notifications) ProtoMessage()
func (*Config_DBUS_Notifications) ProtoReflect ¶
func (x *Config_DBUS_Notifications) ProtoReflect() protoreflect.Message
func (*Config_DBUS_Notifications) Reset ¶
func (x *Config_DBUS_Notifications) Reset()
func (*Config_DBUS_Notifications) String ¶
func (x *Config_DBUS_Notifications) String() string
type Config_DBUS_Power ¶
type Config_DBUS_Power struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // enables power functionality. LowPercent uint32 `protobuf:"varint,2,opt,name=low_percent,json=lowPercent,proto3" json:"low_percent,omitempty"` // percentage below which we should consider low power. CriticalPercent uint32 `protobuf:"varint,3,opt,name=critical_percent,json=criticalPercent,proto3" json:"critical_percent,omitempty"` // percentage below which we should consider critical power. LowCommand string `protobuf:"bytes,4,opt,name=low_command,json=lowCommand,proto3" json:"low_command,omitempty"` // command to execute on low power. CriticalCommand string `protobuf:"bytes,5,opt,name=critical_command,json=criticalCommand,proto3" json:"critical_command,omitempty"` // command to execute on critical power. HudNotifications bool `protobuf:"varint,6,opt,name=hud_notifications,json=hudNotifications,proto3" json:"hud_notifications,omitempty"` // display HUD notifications on power state change or low power. // contains filtered or unexported fields }
func (*Config_DBUS_Power) Descriptor
deprecated
func (*Config_DBUS_Power) Descriptor() ([]byte, []int)
Deprecated: Use Config_DBUS_Power.ProtoReflect.Descriptor instead.
func (*Config_DBUS_Power) GetCriticalCommand ¶
func (x *Config_DBUS_Power) GetCriticalCommand() string
func (*Config_DBUS_Power) GetCriticalPercent ¶
func (x *Config_DBUS_Power) GetCriticalPercent() uint32
func (*Config_DBUS_Power) GetEnabled ¶
func (x *Config_DBUS_Power) GetEnabled() bool
func (*Config_DBUS_Power) GetHudNotifications ¶
func (x *Config_DBUS_Power) GetHudNotifications() bool
func (*Config_DBUS_Power) GetLowCommand ¶
func (x *Config_DBUS_Power) GetLowCommand() string
func (*Config_DBUS_Power) GetLowPercent ¶
func (x *Config_DBUS_Power) GetLowPercent() uint32
func (*Config_DBUS_Power) ProtoMessage ¶
func (*Config_DBUS_Power) ProtoMessage()
func (*Config_DBUS_Power) ProtoReflect ¶
func (x *Config_DBUS_Power) ProtoReflect() protoreflect.Message
func (*Config_DBUS_Power) Reset ¶
func (x *Config_DBUS_Power) Reset()
func (*Config_DBUS_Power) String ¶
func (x *Config_DBUS_Power) String() string
type Config_DBUS_Shortcuts ¶
type Config_DBUS_Shortcuts struct { Enabled bool `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"` // enables GlobalShortcuts support. // contains filtered or unexported fields }
func (*Config_DBUS_Shortcuts) Descriptor
deprecated
func (*Config_DBUS_Shortcuts) Descriptor() ([]byte, []int)
Deprecated: Use Config_DBUS_Shortcuts.ProtoReflect.Descriptor instead.
func (*Config_DBUS_Shortcuts) GetEnabled ¶
func (x *Config_DBUS_Shortcuts) GetEnabled() bool
func (*Config_DBUS_Shortcuts) ProtoMessage ¶
func (*Config_DBUS_Shortcuts) ProtoMessage()
func (*Config_DBUS_Shortcuts) ProtoReflect ¶
func (x *Config_DBUS_Shortcuts) ProtoReflect() protoreflect.Message
func (*Config_DBUS_Shortcuts) Reset ¶
func (x *Config_DBUS_Shortcuts) Reset()
func (*Config_DBUS_Shortcuts) String ¶
func (x *Config_DBUS_Shortcuts) String() string
type Config_DBUS_Systray ¶
type Config_DBUS_Systray struct { Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` // toggles the StatusNotifierItem host, required for "systray" module. Must be the only SNI implementation running in the session. // contains filtered or unexported fields }
func (*Config_DBUS_Systray) Descriptor
deprecated
func (*Config_DBUS_Systray) Descriptor() ([]byte, []int)
Deprecated: Use Config_DBUS_Systray.ProtoReflect.Descriptor instead.
func (*Config_DBUS_Systray) GetEnabled ¶
func (x *Config_DBUS_Systray) GetEnabled() bool
func (*Config_DBUS_Systray) ProtoMessage ¶
func (*Config_DBUS_Systray) ProtoMessage()
func (*Config_DBUS_Systray) ProtoReflect ¶
func (x *Config_DBUS_Systray) ProtoReflect() protoreflect.Message
func (*Config_DBUS_Systray) Reset ¶
func (x *Config_DBUS_Systray) Reset()
func (*Config_DBUS_Systray) String ¶
func (x *Config_DBUS_Systray) String() string
type Edge ¶
type Edge int32
func (Edge) Descriptor ¶
func (Edge) Descriptor() protoreflect.EnumDescriptor
func (Edge) EnumDescriptor
deprecated
func (Edge) Number ¶
func (x Edge) Number() protoreflect.EnumNumber
func (Edge) Type ¶
func (Edge) Type() protoreflect.EnumType
type LogLevel ¶
type LogLevel int32
func (LogLevel) Descriptor ¶
func (LogLevel) Descriptor() protoreflect.EnumDescriptor
func (LogLevel) EnumDescriptor
deprecated
func (LogLevel) Number ¶
func (x LogLevel) Number() protoreflect.EnumNumber
func (LogLevel) Type ¶
func (LogLevel) Type() protoreflect.EnumType
type Panel ¶
type Panel struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // unique identifier for this panel. Edge Edge `protobuf:"varint,2,opt,name=edge,proto3,enum=hyprpanel.config.v1.Edge" json:"edge,omitempty"` // screen edge to place this panel. Size uint32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // either width or height in pixels, depending on orientation for screen edge. Monitor string `protobuf:"bytes,4,opt,name=monitor,proto3" json:"monitor,omitempty"` // monitor to display this panel on. Modules []*v1.Module `protobuf:"bytes,5,rep,name=modules,proto3" json:"modules,omitempty"` // list of modules for this panel. // contains filtered or unexported fields }
func (*Panel) Descriptor
deprecated
func (*Panel) GetModules ¶
func (*Panel) GetMonitor ¶
func (*Panel) ProtoMessage ¶
func (*Panel) ProtoMessage()
func (*Panel) ProtoReflect ¶
func (x *Panel) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.