From d096feb72d9292a51bc3d37d14af262d5608c26c Mon Sep 17 00:00:00 2001 From: Thek4n Date: Fri, 27 Oct 2023 11:02:18 +0300 Subject: [PATCH] style(i3status): font, battery --- home/user/.config/i3/config | 7 +++---- home/user/.config/i3status/config | 30 +++++++++++++----------------- 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/home/user/.config/i3/config b/home/user/.config/i3/config index 91e6c40..e17ef7c 100644 --- a/home/user/.config/i3/config +++ b/home/user/.config/i3/config @@ -22,7 +22,7 @@ exec --no-startup-id hsetroot exec --no-startup-id feh --randomize --no-fehbg --bg-scale $HOME/.wallpaper/* -font xft:Sans,FiraCode 12 +font xft:FiraCode 12 # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status @@ -43,7 +43,7 @@ bindsym $mod+Return exec alacritty --working-directory ~ bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run -i -b -p "Program to run: " -fn "FontAwesome:pixelsize=16" +bindsym $mod+d exec --no-startup-id dmenu_run -i -b -p "Program to run: " -fn "FiraCode:pixelsize=16" # A more modern dmenu replacement is rofi: # change focus @@ -181,13 +181,12 @@ bindsym $mod+Shift+r restart bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) bar { output primary output nonprimary tray_output primary status_command exec ~/.local/bin/i3status_wrapper + font xft:FiraCode 13 } # Screenshots diff --git a/home/user/.config/i3status/config b/home/user/.config/i3status/config index 4aa6ae2..e197f0c 100644 --- a/home/user/.config/i3status/config +++ b/home/user/.config/i3status/config @@ -1,18 +1,9 @@ -# i3status configuration file. -# see "man i3status" for documentation. - -# It is important that this file is edited as UTF-8. -# The following line should contain a sharp s: -# ß -# If the above line is not correctly displayed, fix your editor first! - general { colors = true interval = 5 output_format = i3bar } -order += "ipv6" order += "wireless _first_" order += "ethernet _first_" order += "battery all" @@ -36,7 +27,15 @@ ethernet _first_ { } battery all { - format = " %status %percentage %remaining" + format = "%status %percentage" + last_full_capacity = false + format_down = "" + status_chr = "" + status_bat = "" + status_unk = "?" + status_full = "" + path = "/sys/class/power_supply/BAT%d/uevent" + low_threshold = 15 } disk "/" { @@ -47,12 +46,8 @@ disk "/home" { format = " %used/%total" } -load { - format = "%1min" -} - memory { - format = "%used/%available" + format = " %used/%available" threshold_degraded = "1G" format_degraded = "MEMORY < %available" } @@ -64,6 +59,7 @@ cpu_usage { cpu_temperature 0 { format = " %degrees°" max_threshold = "80" + format_above_threshold = " %degrees" path = "/sys/class/thermal/thermal_zone0/temp" } @@ -72,8 +68,8 @@ tztime local { } volume master { - format = " %volume" # шаблон громкости в активном состоянии - format_muted = " %volume" # шаблон громкости в состоянии muted (без звука) + format = " %volume" + format_muted = " %volume" device = "default" mixer = "Master" mixer_idx = 0