Clean up and change i3status-conf
This commit is contained in:
parent
4af22204ef
commit
016a5c4746
1 changed files with 16 additions and 31 deletions
47
i3.nix
47
i3.nix
|
@ -1,9 +1,6 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
i3status-conf = "${pkgs.writeText "i3status-conf" ''
|
i3status-conf = "${pkgs.writeText "i3status-conf" ''
|
||||||
# i3status configuration file.
|
|
||||||
# see "man i3status" for documentation.
|
|
||||||
|
|
||||||
# It is important that this file is edited as UTF-8.
|
# It is important that this file is edited as UTF-8.
|
||||||
# The following line should contain a sharp s:
|
# The following line should contain a sharp s:
|
||||||
# ß
|
# ß
|
||||||
|
@ -12,7 +9,7 @@ let
|
||||||
general {
|
general {
|
||||||
output_format = "i3bar"
|
output_format = "i3bar"
|
||||||
colors = true
|
colors = true
|
||||||
interval = 5
|
interval = 1
|
||||||
color_good = "#2AA198"
|
color_good = "#2AA198"
|
||||||
color_bad = "#586E75"
|
color_bad = "#586E75"
|
||||||
color_degraded = "#DC322F"
|
color_degraded = "#DC322F"
|
||||||
|
@ -27,13 +24,22 @@ let
|
||||||
order += "tztime local"
|
order += "tztime local"
|
||||||
order += "tztime helsinki"
|
order += "tztime helsinki"
|
||||||
|
|
||||||
|
battery all {
|
||||||
|
format = " %status %percentage (%remaining @ %consumption) "
|
||||||
|
format_down = ""
|
||||||
|
last_full_capacity = true
|
||||||
|
integer_battery_capacity = true
|
||||||
|
low_threshold = 30
|
||||||
|
threshold_type = time
|
||||||
|
}
|
||||||
|
|
||||||
cpu_usage {
|
cpu_usage {
|
||||||
format = " CPU %usage "
|
format = " CPU %usage "
|
||||||
}
|
}
|
||||||
|
|
||||||
disk "/" {
|
memory {
|
||||||
# format = " hdd %avail "
|
format = " RAM %used / %total "
|
||||||
format = " ⛁ %avail "
|
threshold_degraded = "10%"
|
||||||
}
|
}
|
||||||
|
|
||||||
ethernet _first_ {
|
ethernet _first_ {
|
||||||
|
@ -46,33 +52,12 @@ let
|
||||||
format_down = ""
|
format_down = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
battery all {
|
disk "/" {
|
||||||
# format = "%status %percentage %remaining %emptytime"
|
format = " ⛁ %avail "
|
||||||
format = " bat %status %percentage (%remaining left) "
|
|
||||||
format_down = ""
|
|
||||||
last_full_capacity = true
|
|
||||||
integer_battery_capacity = true
|
|
||||||
# status_chr = ""
|
|
||||||
status_chr = "⚡"
|
|
||||||
# status_bat = "bat"
|
|
||||||
# status_bat = "☉"
|
|
||||||
# status_bat = ""
|
|
||||||
status_bat = ""
|
|
||||||
# status_unk = "?"
|
|
||||||
status_unk = ""
|
|
||||||
# status_full = ""
|
|
||||||
status_full = "☻"
|
|
||||||
low_threshold = 30
|
|
||||||
threshold_type = time
|
|
||||||
}
|
|
||||||
|
|
||||||
memory {
|
|
||||||
format = " RAM %used / %total "
|
|
||||||
threshold_degraded = "10%"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tztime local {
|
tztime local {
|
||||||
format = " %d.%m. %H:%M "
|
format = " %Y-%m-%d %H:%M:%S "
|
||||||
}
|
}
|
||||||
|
|
||||||
tztime helsinki {
|
tztime helsinki {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue