From 0f3d823820122a3e61e7c205aa60c1ad7e36bac7 Mon Sep 17 00:00:00 2001 From: eneller Date: Tue, 18 Feb 2025 19:56:39 +0100 Subject: [PATCH] i3status --- .config/i3/i3status.conf | 1 - .config/i3status/config | 75 ++++++++++++++++++++++++++++++++++++++++ .config/shell/alias.sh | 2 +- .p10k.zsh | 2 +- .zshrc | 1 + 5 files changed, 78 insertions(+), 3 deletions(-) delete mode 100644 .config/i3/i3status.conf create mode 100644 .config/i3status/config diff --git a/.config/i3/i3status.conf b/.config/i3/i3status.conf deleted file mode 100644 index 8980cb0..0000000 --- a/.config/i3/i3status.conf +++ /dev/null @@ -1 +0,0 @@ -# this is a i3bar config file diff --git a/.config/i3status/config b/.config/i3status/config new file mode 100644 index 0000000..1079920 --- /dev/null +++ b/.config/i3status/config @@ -0,0 +1,75 @@ +# 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 + color_good = "#2AA198" + color_bad = "#586E75" + color_degraded = "#DC322F" +} + +# order += "ipv6" +order += "cpu_usage" +order += "disk /" +# order += "disk /home" +order += "wireless _first_" +order += "ethernet _first_" +order += "battery all" +# order += "load" +order += "memory" +order += "tztime local" + +cpu_usage { + format = " cpu %usage " +} + +load { + format = " load %1min " + # max_threshold = 0.3 +} + +disk "/" { + format = " ⛁ %avail " +} + +ethernet _first_ { +# if you use %speed, i3status requires root privileges + format_up = " lan: %ip %speed " + format_down = " no lan " +} + +battery all { + # format = "%status %percentage %remaining %emptytime" + format = " %status %percentage" + format_down = "No battery" + last_full_capacity = true + integer_battery_capacity = true + # status_chr = "" + status_chr = "⚡" + # status_bat = "bat" + # status_bat = "☉" + status_bat = "" + # status_unk = "?" + status_unk = "" + # status_full = "" + status_full = "☻" + low_threshold = 15 + threshold_type = time +} + +memory { + format = "%used | %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + # format = "%Y-%m-%d %H:%M:%S" + format = " %a %d.%m. %H:%M " +} diff --git a/.config/shell/alias.sh b/.config/shell/alias.sh index c853453..7acd37e 100644 --- a/.config/shell/alias.sh +++ b/.config/shell/alias.sh @@ -2,7 +2,7 @@ alias diff='diff -u --color' alias tree='eza --tree' alias ls='eza --group-directories-first' # make output more readable and show directories first -alias ll='ls --long --header --git' +alias ll='ls --long --header --git' #might use -i to show number of hard links like ls -l would normally alias la='ls --all' alias li='la --git-ignore' alias less='less --use-color' diff --git a/.p10k.zsh b/.p10k.zsh index 26142a3..c790e1f 100644 --- a/.p10k.zsh +++ b/.p10k.zsh @@ -536,7 +536,7 @@ # Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as # it will signify error by turning red. - typeset -g POWERLEVEL9K_STATUS_ERROR=false + typeset -g POWERLEVEL9K_STATUS_ERROR=true typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=160 typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='✘' diff --git a/.zshrc b/.zshrc index 5e658d7..721a10d 100644 --- a/.zshrc +++ b/.zshrc @@ -16,6 +16,7 @@ source $XDG_CONFIG_HOME/shell/alias.sh #unsetopt beep # try disabling annoying beep sounds setopt nobeep xset b off +fpath+=~/.zfunc # add custom completions here autoload -Uz compinit # load completion compinit _comp_options+=(globdots) # Include hidden files.