|
|
@ -44,6 +44,13 @@ type Profile struct {
|
|
|
|
Networking NetworkProfile
|
|
|
|
Networking NetworkProfile
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type AudioMode string
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
|
|
|
PROFILE_AUDIO_NONE AudioMode = "none"
|
|
|
|
|
|
|
|
PROFILE_AUDIO_SPEAKER AudioMode = "speaker"
|
|
|
|
|
|
|
|
PROFILE_AUDIO_FULL AudioMode = "full"
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type XServerConf struct {
|
|
|
|
type XServerConf struct {
|
|
|
|
Enabled bool
|
|
|
|
Enabled bool
|
|
|
|
TrayIcon string `json:"tray_icon"`
|
|
|
|
TrayIcon string `json:"tray_icon"`
|
|
|
@ -52,7 +59,7 @@ type XServerConf struct {
|
|
|
|
UseDBUS bool `json:"use_dbus"`
|
|
|
|
UseDBUS bool `json:"use_dbus"`
|
|
|
|
UsePulseAudio bool `json:"use_pulse_audio"`
|
|
|
|
UsePulseAudio bool `json:"use_pulse_audio"`
|
|
|
|
DisableClipboard bool `json:"disable_clipboard"`
|
|
|
|
DisableClipboard bool `json:"disable_clipboard"`
|
|
|
|
DisableAudio bool `json:"disable_audio"`
|
|
|
|
AudioMode AudioMode `json:"audio_mode"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type WhitelistItem struct {
|
|
|
|
type WhitelistItem struct {
|
|
|
@ -97,7 +104,7 @@ func NewDefaultProfile() *Profile {
|
|
|
|
EnableTray: false,
|
|
|
|
EnableTray: false,
|
|
|
|
UseDBUS: false,
|
|
|
|
UseDBUS: false,
|
|
|
|
UsePulseAudio: false,
|
|
|
|
UsePulseAudio: false,
|
|
|
|
DisableAudio: true,
|
|
|
|
AudioMode: PROFILE_AUDIO_NONE,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|