style(i3status): font, battery

This commit is contained in:
TheK4n 2023-10-27 11:02:18 +03:00
parent f87057b053
commit d096feb72d
2 changed files with 16 additions and 21 deletions

View File

@ -22,7 +22,7 @@ exec --no-startup-id hsetroot
exec --no-startup-id feh --randomize --no-fehbg --bg-scale $HOME/.wallpaper/* 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. # Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status set $refresh_i3status killall -SIGUSR1 i3status
@ -43,7 +43,7 @@ bindsym $mod+Return exec alacritty --working-directory ~
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
# start dmenu (a program launcher) # 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: # A more modern dmenu replacement is rofi:
# change focus # 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'" 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 { bar {
output primary output primary
output nonprimary output nonprimary
tray_output primary tray_output primary
status_command exec ~/.local/bin/i3status_wrapper status_command exec ~/.local/bin/i3status_wrapper
font xft:FiraCode 13
} }
# Screenshots # Screenshots

View File

@ -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 { general {
colors = true colors = true
interval = 5 interval = 5
output_format = i3bar output_format = i3bar
} }
order += "ipv6"
order += "wireless _first_" order += "wireless _first_"
order += "ethernet _first_" order += "ethernet _first_"
order += "battery all" order += "battery all"
@ -36,7 +27,15 @@ ethernet _first_ {
} }
battery all { 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 "/" { disk "/" {
@ -47,12 +46,8 @@ disk "/home" {
format = " %used/%total" format = " %used/%total"
} }
load {
format = "%1min"
}
memory { memory {
format = "%used/%available" format = " %used/%available"
threshold_degraded = "1G" threshold_degraded = "1G"
format_degraded = "MEMORY < %available" format_degraded = "MEMORY < %available"
} }
@ -64,6 +59,7 @@ cpu_usage {
cpu_temperature 0 { cpu_temperature 0 {
format = " %degrees°" format = " %degrees°"
max_threshold = "80" max_threshold = "80"
format_above_threshold = " %degrees"
path = "/sys/class/thermal/thermal_zone0/temp" path = "/sys/class/thermal/thermal_zone0/temp"
} }
@ -72,8 +68,8 @@ tztime local {
} }
volume master { volume master {
format = " %volume" # шаблон громкости в активном состоянии format = " %volume"
format_muted = " %volume" # шаблон громкости в состоянии muted (без звука) format_muted = " %volume"
device = "default" device = "default"
mixer = "Master" mixer = "Master"
mixer_idx = 0 mixer_idx = 0