Ariver
2026-07-11 015f1089ea875a153dd2a18ef42c25145d4868f5
C1.source/privatevoice.src/internal/config/config.go
@@ -10,6 +10,7 @@
)
const (
   UnsetHotkeyVK            = 0
   LegacyDefaultHotkeyVK    = 0xA5
   RightModifierDefaultVK   = 0x5C
   HotkeyModeTap            = "tap"
@@ -28,6 +29,7 @@
   SoundFeedback            bool   `json:"SoundFeedback"`
   HideDockIcon             bool   `json:"HideDockIcon"`
   CopyToClipboard          bool   `json:"CopyToClipboard"`
   AutoPasteExperiment      bool   `json:"AutoPasteExperiment"`
   DeviceName               string `json:"DeviceName,omitempty"`
   IndicatorX               int    `json:"IndicatorX,omitempty"`
   IndicatorY               int    `json:"IndicatorY,omitempty"`
@@ -62,6 +64,7 @@
      SoundFeedback:            true,
      HideDockIcon:             true,
      CopyToClipboard:          true,
      AutoPasteExperiment:      false,
      SelectedModelID:          model.DefaultModelID,
      ModelSelectionMode:       ModelSelectionModeAuto,
      LanguageMode:             LanguageModeAuto,
@@ -72,6 +75,9 @@
}
func defaultHotkeyVKForNewConfig(goos string) int {
   if defaultHotkeyUnsetForNewConfig(goos) {
      return UnsetHotkeyVK
   }
   switch goos {
   case "darwin", "windows":
      return RightModifierDefaultVK
@@ -80,6 +86,10 @@
   }
}
func IsHotkeyUnset(vk int) bool {
   return vk == UnsetHotkeyVK
}
func configPath() string {
   return paths.File("config.json")
}