mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2025-01-06 00:33:40 +01:00
i3status: add spacing around all blocks
This commit is contained in:
parent
1690f84102
commit
74d14fef07
1 changed files with 10 additions and 10 deletions
|
@ -100,20 +100,20 @@ async fn spawn_blocks(bar: &mut BarState) -> anyhow::Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
spawn!(memory {
|
spawn!(memory {
|
||||||
format: " $icon $mem_used_percents $mem_used/$mem_avail".parse()?,
|
format: " $icon $mem_used_percents $mem_used/$mem_avail ".parse()?,
|
||||||
format_alt: Some(" $icon $swap_used_percents $swap_used/$swap_free".parse()?),
|
format_alt: Some(" $icon $swap_used_percents $swap_used/$swap_free ".parse()?),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
});
|
});
|
||||||
|
|
||||||
spawn!(cpu {
|
spawn!(cpu {
|
||||||
interval: 1.into(),
|
interval: 1.into(),
|
||||||
format: " $icon $frequency $barchart $utilization".parse()?,
|
format: " $icon $frequency $barchart $utilization ".parse()?,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
});
|
});
|
||||||
|
|
||||||
spawn!(temperature {
|
spawn!(temperature {
|
||||||
interval: 5.into(),
|
interval: 5.into(),
|
||||||
format: " $icon $min - $average ~ $max +".parse()?,
|
format: " $icon $min - $average ~ $max + ".parse()?,
|
||||||
chip: Some("*-isa-*".into()),
|
chip: Some("*-isa-*".into()),
|
||||||
idle: Some(40.),
|
idle: Some(40.),
|
||||||
info: Some(65.),
|
info: Some(65.),
|
||||||
|
@ -124,13 +124,13 @@ async fn spawn_blocks(bar: &mut BarState) -> anyhow::Result<()> {
|
||||||
match gpu::Type::get()? {
|
match gpu::Type::get()? {
|
||||||
gpu::Type::NVidia => {
|
gpu::Type::NVidia => {
|
||||||
spawn!(nvidia_gpu {
|
spawn!(nvidia_gpu {
|
||||||
format: " $icon $utilization $memory $temperature $fan_speed $power".parse()?,
|
format: " $icon $utilization $memory $temperature $fan_speed $power ".parse()?,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
gpu::Type::Amd => {
|
gpu::Type::Amd => {
|
||||||
spawn!(amd_gpu {
|
spawn!(amd_gpu {
|
||||||
format: " $icon $utilization $vram_used_percents".parse()?,
|
format: " $icon $utilization $vram_used_percents ".parse()?,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -139,25 +139,25 @@ async fn spawn_blocks(bar: &mut BarState) -> anyhow::Result<()> {
|
||||||
|
|
||||||
spawn!(music {
|
spawn!(music {
|
||||||
interface_name_exclude: vec![".*kdeconnect.*".to_string(), "mpd".to_string()],
|
interface_name_exclude: vec![".*kdeconnect.*".to_string(), "mpd".to_string()],
|
||||||
format: " $icon {$combo.str(max_w:20, rot_interval:0.1) $prev $play $next|}".parse()?,
|
format: " $icon {$combo.str(max_w:20, rot_interval:0.1) $prev $play $next |}".parse()?,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
});
|
});
|
||||||
|
|
||||||
spawn!(sound {
|
spawn!(sound {
|
||||||
format: " $icon $output_description{ $volume|}".parse()?,
|
format: " $icon $output_description{ $volume|} ".parse()?,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
});
|
});
|
||||||
|
|
||||||
spawn!(battery {
|
spawn!(battery {
|
||||||
interval: 10.into(),
|
interval: 10.into(),
|
||||||
format: " $icon $percentage $power".parse()?,
|
format: " $icon $percentage $power ".parse()?,
|
||||||
missing_format: "".parse()?,
|
missing_format: "".parse()?,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
});
|
});
|
||||||
|
|
||||||
spawn!(time {
|
spawn!(time {
|
||||||
interval: 1.into(),
|
interval: 1.into(),
|
||||||
format: " $icon $timestamp.datetime(f:'%a %d.%m.%Y %T')".parse()?,
|
format: " $icon $timestamp.datetime(f:'%a %d.%m.%Y %T') ".parse()?,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue