| 21 | }{} |
| 22 | |
| 23 | func LoadFlags() { |
| 24 | flag.BoolVar(&Overrides.Notify, "notify", UserPrefs.ShouldNotify, "Send desktop notification") |
| 25 | flag.BoolVar(&Overrides.Sound, "sound", UserPrefs.EnableSound, "Play sound") |
| 26 | flag.StringVar(&Overrides.SoundFilename, "soundfile", UserPrefs.SoundFilename, "Filename of the custom sound (must be .mp3)") |
| 27 | flag.Float64Var(&Overrides.Volume, "volume", UserPrefs.Volume, "Volume [0-1]") |
| 28 | flag.BoolVar(&Overrides.UseUI, "ui", false, "Show timepicker UI (default true)") |
| 29 | flag.BoolVar(&Overrides.HasShadow, "shadow", UserPrefs.Shadow, "Shadow for progress image") |
| 30 | flag.BoolVar(&Overrides.Rounded, "rounded", UserPrefs.Rounded, "Rounded corners") |
| 31 | flag.BoolVar(&Overrides.LowFPS, "lowfps", UserPrefs.LowFPS, "1 fps mode (energy saver, GNOME only)") |
| 32 | flag.IntVar(&Overrides.Duration, "start", 0, "Start the timer immediately, don't show UI (value in seconds)") |
| 33 | flag.StringVar(&Overrides.Title, "title", UserPrefs.DefaultTitle, "Name/title of the timer") |
| 34 | flag.StringVar(&Overrides.Text, "text", UserPrefs.DefaultText, "Notification text") |
| 35 | flag.StringVar(&Overrides.Color, "color", UserPrefs.ProgressColor, "Progress color (#HEX) for the player, use \"default\" for the GTK accent color") |
| 36 | flag.BoolVar(&Overrides.ForceTrayIcon, "tray", UserPrefs.ForceTrayIcon, "Force tray icon presence") |
| 37 | flag.Parse() |
| 38 | } |