Documentation ¶
Overview ¶
Package keyboard implements the Keyboard gRPC service.
Index ¶
- Variables
- type Option
- type Service
- func (s *Service) GetKeyboard(ctx context.Context, req *emptypb.Empty) (*pb.GetKeyboardResponse, error)
- func (s *Service) SetInputSource(ctx context.Context, req *pb.SetInputSourceRequest) (*emptypb.Empty, error)
- func (s *Service) SetKeyboard(ctx context.Context, req *pb.SetKeyboardRequest) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var EmbeddedFiles embed.FS
EmbeddedFiles is the embedded keyboard configuration file.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { pb.UnimplementedKeyboardServiceServer // contains filtered or unexported fields }
Service is the implementation of the Keyboard service.
func (*Service) GetKeyboard ¶
func (s *Service) GetKeyboard(ctx context.Context, req *emptypb.Empty) (*pb.GetKeyboardResponse, error)
GetKeyboard returns the current keyboard layout and available layouts.
func (*Service) SetInputSource ¶
func (s *Service) SetInputSource(ctx context.Context, req *pb.SetInputSourceRequest) (*emptypb.Empty, error)
SetInputSource sets the input source for the current user via gsettings.
func (*Service) SetKeyboard ¶
func (s *Service) SetKeyboard(ctx context.Context, req *pb.SetKeyboardRequest) (*emptypb.Empty, error)
SetKeyboard sets the keyboard layout for the current user via DBus.
Click to show internal directories.
Click to hide internal directories.