Documentation ¶
Index ¶
- func GotAnError(err *x.Error)
- type ConfigReloadService
- type ConfigTranslator
- type EventChannels
- type JournaldLog
- func (l *JournaldLog) Panic(message ...any)
- func (l *JournaldLog) Print(message ...any)
- func (l *JournaldLog) PrintAlert(message ...any)
- func (l *JournaldLog) PrintCritical(message ...any)
- func (l *JournaldLog) PrintDebug(message ...any)
- func (l *JournaldLog) PrintEmergancy(message ...any)
- func (l *JournaldLog) PrintError(message ...any)
- func (l *JournaldLog) PrintInfo(message ...any)
- func (l *JournaldLog) PrintNotice(message ...any)
- func (l *JournaldLog) PrintWarning(message ...any)
- func (l *JournaldLog) Println(message ...any)
- type KeyRunner
- type KeyTranslator
- type Keybinder
- type KeysymTranslator
- type VersionService
- type XConnection
- func (c *XConnection) Close()
- func (c *XConnection) Connect() error
- func (c *XConnection) ConnectToDisplay(display string) error
- func (c *XConnection) Flush()
- func (c *XConnection) GetRootWindow() (x.Window, error)
- func (c *XConnection) GetXConnection() *x.Conn
- func (c *XConnection) GrabKey(modmask uint16, key x.Keycode)
- func (c *XConnection) GrabKeyboard()
- func (c *XConnection) MakeAndAddEventChan(size int) (chan x.GenericEvent, error)
- func (c *XConnection) SetErrorCallback(fn func(*x.Error)) error
- func (c *XConnection) UngrabKey(modmask uint16, key x.Keycode)
- func (c *XConnection) UngrabKeyboard()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GotAnError ¶
Types ¶
type ConfigReloadService ¶
type ConfigReloadService struct { }
func NewConfigReloadService ¶
func NewConfigReloadService() *ConfigReloadService
func (ConfigReloadService) ReloadConfig ¶
func (s ConfigReloadService) ReloadConfig() (string, *dbus.Error)
type ConfigTranslator ¶
type ConfigTranslator struct {
// contains filtered or unexported fields
}
func NewConfigTranslator ¶
func NewConfigTranslator() *ConfigTranslator
func (*ConfigTranslator) TranslateConfig ¶
func (c *ConfigTranslator) TranslateConfig() map[keydefinitions.KeyDefinitionKey]config.Key
type EventChannels ¶
type EventChannels struct {
// contains filtered or unexported fields
}
func NewEventChannels ¶
func NewEventChannels() *EventChannels
func (*EventChannels) Close ¶
func (c *EventChannels) Close()
func (*EventChannels) GetKeyEventChannel ¶
func (c *EventChannels) GetKeyEventChannel() chan x.GenericEvent
func (*EventChannels) GetReloadEventChannel ¶
func (c *EventChannels) GetReloadEventChannel() chan chan string
func (*EventChannels) GetStatusEventChannel ¶
func (c *EventChannels) GetStatusEventChannel() chan string
type JournaldLog ¶ added in v0.0.2
type JournaldLog struct { }
The JournaldLog struct. This will implement services.Logger.
func NewJournaldLog ¶ added in v0.0.2
func NewJournaldLog() *JournaldLog
NewJournaldLog will create a new JournaldLog and return the address of it.
func (*JournaldLog) Panic ¶ added in v0.0.2
func (l *JournaldLog) Panic(message ...any)
func (*JournaldLog) Print ¶ added in v0.0.2
func (l *JournaldLog) Print(message ...any)
func (*JournaldLog) PrintAlert ¶ added in v0.0.2
func (l *JournaldLog) PrintAlert(message ...any)
func (*JournaldLog) PrintCritical ¶ added in v0.0.2
func (l *JournaldLog) PrintCritical(message ...any)
func (*JournaldLog) PrintDebug ¶ added in v0.0.2
func (l *JournaldLog) PrintDebug(message ...any)
func (*JournaldLog) PrintEmergancy ¶ added in v0.0.2
func (l *JournaldLog) PrintEmergancy(message ...any)
func (*JournaldLog) PrintError ¶ added in v0.0.2
func (l *JournaldLog) PrintError(message ...any)
func (*JournaldLog) PrintInfo ¶ added in v0.0.2
func (l *JournaldLog) PrintInfo(message ...any)
func (*JournaldLog) PrintNotice ¶ added in v0.0.2
func (l *JournaldLog) PrintNotice(message ...any)
func (*JournaldLog) PrintWarning ¶ added in v0.0.2
func (l *JournaldLog) PrintWarning(message ...any)
func (*JournaldLog) Println ¶ added in v0.0.2
func (l *JournaldLog) Println(message ...any)
type KeyRunner ¶
type KeyRunner struct {
// contains filtered or unexported fields
}
func NewKeyRunner ¶
func NewKeyRunner() *KeyRunner
func (*KeyRunner) ClearBindings ¶
func (k *KeyRunner) ClearBindings()
func (*KeyRunner) Find ¶
func (k *KeyRunner) Find(key keydefinitions.KeyDefinitionKey) (config.Key, bool)
func (*KeyRunner) SetKeymap ¶
func (k *KeyRunner) SetKeymap(keys map[keydefinitions.KeyDefinitionKey]config.Key)
type KeyTranslator ¶
type KeyTranslator struct {
// contains filtered or unexported fields
}
func NewKeyTranslator ¶
func NewKeyTranslator() *KeyTranslator
func (*KeyTranslator) TranslateKey ¶
func (k *KeyTranslator) TranslateKey(key config.Key) (keydefinitions.KeyDefinitionKey, error)
type Keybinder ¶
type Keybinder struct {
// contains filtered or unexported fields
}
func NewKeybinder ¶
func NewKeybinder() *Keybinder
func (*Keybinder) BindKeys ¶
func (k *Keybinder) BindKeys(keys map[keydefinitions.KeyDefinitionKey]config.Key)
func (*Keybinder) UnbindKeys ¶
func (k *Keybinder) UnbindKeys(keys map[keydefinitions.KeyDefinitionKey]config.Key)
type KeysymTranslator ¶
type KeysymTranslator struct {
// contains filtered or unexported fields
}
func NewKeysymTranslator ¶
func NewKeysymTranslator(connection services.XConnection) (*KeysymTranslator, error)
func (*KeysymTranslator) GetKeycodes ¶
func (k *KeysymTranslator) GetKeycodes(keysym x.Keysym) []x.Keycode
type VersionService ¶ added in v0.0.2
type VersionService struct {
// contains filtered or unexported fields
}
func NewVersionService ¶ added in v0.0.2
func NewVersionService() *VersionService
func (*VersionService) ShowVersion ¶ added in v0.0.2
func (s *VersionService) ShowVersion()
type XConnection ¶
type XConnection struct {
// contains filtered or unexported fields
}
func NewXConnection ¶
func NewXConnection() *XConnection
func (*XConnection) Close ¶
func (c *XConnection) Close()
func (*XConnection) Connect ¶
func (c *XConnection) Connect() error
func (*XConnection) ConnectToDisplay ¶
func (c *XConnection) ConnectToDisplay(display string) error
func (*XConnection) Flush ¶
func (c *XConnection) Flush()
func (*XConnection) GetRootWindow ¶
func (c *XConnection) GetRootWindow() (x.Window, error)
func (*XConnection) GetXConnection ¶
func (c *XConnection) GetXConnection() *x.Conn
func (*XConnection) GrabKeyboard ¶
func (c *XConnection) GrabKeyboard()
func (*XConnection) MakeAndAddEventChan ¶
func (c *XConnection) MakeAndAddEventChan(size int) (chan x.GenericEvent, error)
func (*XConnection) SetErrorCallback ¶
func (c *XConnection) SetErrorCallback(fn func(*x.Error)) error
func (*XConnection) UngrabKeyboard ¶
func (c *XConnection) UngrabKeyboard()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.