Introduce separate setting for pulseaudio symbol font size
This commit is contained in:
10
config.go
10
config.go
@@ -209,9 +209,9 @@ type MyConfig struct {
|
||||
} `json:"vpn,omitempty"`
|
||||
|
||||
SimpleVolumePa struct {
|
||||
Enabled bool `json:"enabled,omitempty"`
|
||||
Symbol string `json:"symbol,omitempty"`
|
||||
|
||||
Enabled bool `json:"enabled,omitempty"`
|
||||
Symbol string `json:"symbol,omitempty"`
|
||||
FontSize string `json:"font_size,omitempty"`
|
||||
Separator struct {
|
||||
Left struct {
|
||||
Enabled bool `json:"enabled,omitempty"`
|
||||
@@ -1117,6 +1117,10 @@ func readConf() (MyConfig, error) {
|
||||
sampleConfig.SimpleVolumePa.Symbol = `🔊`
|
||||
}
|
||||
|
||||
if sampleConfig.SimpleVolumePa.FontSize == "" {
|
||||
sampleConfig.SimpleVolumePa.FontSize = "medium"
|
||||
}
|
||||
|
||||
if sampleConfig.SimpleVolumePa.Step == 0 {
|
||||
sampleConfig.SimpleVolumePa.Step = 5
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user