fix: missing parent section names in TOML (#1551)

This commit is contained in:
Frederick Zhang 2024-08-08 02:59:44 +10:00 committed by GitHub
parent 218d1899fc
commit 4c8367225a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 12 deletions

View file

@ -93,14 +93,14 @@
# Disk widget configuration # Disk widget configuration
#[disk] #[disk]
#[name_filter] #[disk.name_filter]
#is_list_ignored = true #is_list_ignored = true
#list = ["/dev/sda\\d+", "/dev/nvme0n1p2"] #list = ["/dev/sda\\d+", "/dev/nvme0n1p2"]
#regex = true #regex = true
#case_sensitive = false #case_sensitive = false
#whole_word = false #whole_word = false
#[mount_filter] #[disk.mount_filter]
#is_list_ignored = true #is_list_ignored = true
#list = ["/mnt/.*", "/boot"] #list = ["/mnt/.*", "/boot"]
#regex = true #regex = true
@ -109,7 +109,7 @@
# Temperature widget configuration # Temperature widget configuration
#[temperature] #[temperature]
#[sensor_filter] #[temperature.sensor_filter]
#is_list_ignored = true #is_list_ignored = true
#list = ["cpu", "wifi"] #list = ["cpu", "wifi"]
#regex = false #regex = false
@ -118,7 +118,7 @@
# Network widget configuration # Network widget configuration
#[network] #[network]
#[interface_filter] #[network.interface_filter]
#is_list_ignored = true #is_list_ignored = true
#list = ["virbr0.*"] #list = ["virbr0.*"]
#regex = true #regex = true

View file

@ -357,14 +357,14 @@ pub const CONFIG_TEXT: &str = r#"# This is a default config file for bottom. Al
# Disk widget configuration # Disk widget configuration
#[disk] #[disk]
#[name_filter] #[disk.name_filter]
#is_list_ignored = true #is_list_ignored = true
#list = ["/dev/sda\\d+", "/dev/nvme0n1p2"] #list = ["/dev/sda\\d+", "/dev/nvme0n1p2"]
#regex = true #regex = true
#case_sensitive = false #case_sensitive = false
#whole_word = false #whole_word = false
#[mount_filter] #[disk.mount_filter]
#is_list_ignored = true #is_list_ignored = true
#list = ["/mnt/.*", "/boot"] #list = ["/mnt/.*", "/boot"]
#regex = true #regex = true
@ -373,7 +373,7 @@ pub const CONFIG_TEXT: &str = r#"# This is a default config file for bottom. Al
# Temperature widget configuration # Temperature widget configuration
#[temperature] #[temperature]
#[sensor_filter] #[temperature.sensor_filter]
#is_list_ignored = true #is_list_ignored = true
#list = ["cpu", "wifi"] #list = ["cpu", "wifi"]
#regex = false #regex = false
@ -382,7 +382,7 @@ pub const CONFIG_TEXT: &str = r#"# This is a default config file for bottom. Al
# Network widget configuration # Network widget configuration
#[network] #[network]
#[interface_filter] #[network.interface_filter]
#is_list_ignored = true #is_list_ignored = true
#list = ["virbr0.*"] #list = ["virbr0.*"]
#regex = true #regex = true

View file

@ -1,12 +1,12 @@
[disk] [disk]
[name_filter] [disk.name_filter]
is_list_ignored = true is_list_ignored = true
list = ["/dev/sda\\d+", "/dev/nvme0n1p2"] list = ["/dev/sda\\d+", "/dev/nvme0n1p2"]
regex = true regex = true
case_sensitive = false case_sensitive = false
whole_word = false whole_word = false
[mount_filter] [disk.mount_filter]
is_list_ignored = true is_list_ignored = true
list = ["/mnt/.*", "/boot"] list = ["/mnt/.*", "/boot"]
regex = true regex = true
@ -14,7 +14,7 @@ case_sensitive = false
whole_word = false whole_word = false
[temperature] [temperature]
[sensor_filter] [temperature.sensor_filter]
is_list_ignored = true is_list_ignored = true
list = ["cpu", "wifi"] list = ["cpu", "wifi"]
regex = false regex = false
@ -22,7 +22,7 @@ case_sensitive = false
whole_word = false whole_word = false
[network] [network]
[interface_filter] [network.interface_filter]
is_list_ignored = true is_list_ignored = true
list = ["virbr0.*"] list = ["virbr0.*"]
regex = true regex = true