some optimization wrt layout

This commit is contained in:
Daniel Knuettel 2024-04-23 11:40:08 +02:00
parent 15e15322d5
commit 99f02696ee

View File

@ -235,22 +235,22 @@ fn main()
print!("\n");
{
print!("{}{}", shell_color_str(&"┌[", SH_GREEN)
, battery_info(12));
, fixed_width(&get_git_branch(& std::path::Path::new(&raw_cwd)), 13));
print!("{}{}", shell_color_str(&"|", SH_GREEN)
, fixed_width(&get_git_branch(& std::path::Path::new(&raw_cwd)), 10));
, fixed_width(&get_editor(), 13));
print!("{}{}", shell_color_str(&"|", SH_GREEN)
, fixed_width(&get_editor(), 12));
, battery_info(8));
print!("{}{}", shell_color_str(&"|", SH_GREEN)
, fixed_width(lastexit, 3));
println!("{}", shell_color_str(&"]┐", SH_GREEN));
}
{
print!("{}{}", shell_color_str(&"╞[", SH_GREEN)
, shell_color_str(&fixed_width(&getenv("HOSTNAME"), 12), SH_CYAN));
, shell_color_str(&fixed_width(&getenv("HOSTNAME"), 13), SH_CYAN));
print!("{}{}", shell_color_str(&"|", SH_GREEN)
, shell_color_str(&fixed_width(&getenv("USER"), 10), SH_RED));
, shell_color_str(&fixed_width(&getenv("USER"), 13), SH_RED));
print!("{}{}", shell_color_str(&"|", SH_GREEN)
, fixed_width(&cpu_arch, 12));
, fixed_width(&cpu_arch, 8));
print!("{}{}", shell_color_str(&"|", SH_GREEN)
, fixed_width(&bgjobs, 3));