From df03100a9993953d195ee789c89562861f28dc62 Mon Sep 17 00:00:00 2001 From: Sebastian Bugge Date: Fri, 13 Dec 2024 18:10:30 +0100 Subject: [PATCH 1/3] Move nvm to .zshrc. --- .zprofile | 5 ----- .zshrc | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.zprofile b/.zprofile index b706f2a..d8dea43 100644 --- a/.zprofile +++ b/.zprofile @@ -6,8 +6,3 @@ if [ -d "$ASDF_GO" ]; then ASDF_GOBIN="$ASDF_GO/packages/bin/" PATH="$ASDF_GOBIN:$PATH" fi - -export NVM_DIR="$HOME/.nvm" -if [ -s "$NVM_DIR/nvm.sh" ]; then - \. "$NVM_DIR/nvm.sh" # This loads nvm -fi diff --git a/.zshrc b/.zshrc index 3692aed..fdac9b0 100644 --- a/.zshrc +++ b/.zshrc @@ -50,6 +50,12 @@ if [ -d "$HOME/.asdf" ]; then \. "$HOME/.asdf/asdf.sh" fi +export NVM_DIR="$HOME/.nvm" +if [ -s "$NVM_DIR/nvm.sh" ]; then + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion +fi + source ~/.aliases fpath+=~/.zfunc autoload -U compinit; compinit From 21c9af13369028d447713e1eaa314d5c660dcd7e Mon Sep 17 00:00:00 2001 From: Sebastian Bugge Date: Fri, 13 Dec 2024 18:11:11 +0100 Subject: [PATCH 2/3] Add nix. --- .zshenv | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zshenv b/.zshenv index 7a59bac..a89b410 100644 --- a/.zshenv +++ b/.zshenv @@ -47,3 +47,5 @@ export PATH="$PATH:/home/kaholaz/.cache/scalacli/local-repo/bin/scala-cli" # >>> coursier install directory >>> export PATH="$PATH:/home/kaholaz/.local/share/coursier/bin" # <<< coursier install directory <<< + +if [ -e /home/kaholaz/.nix-profile/etc/profile.d/nix.sh ]; then . /home/kaholaz/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer From 4af8bc8944d6d2e330441a9a551185973f2169c9 Mon Sep 17 00:00:00 2001 From: Sebastian Bugge Date: Sat, 14 Dec 2024 03:44:36 +0100 Subject: [PATCH 3/3] Add i3status config. --- .config/i3status/config | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .config/i3status/config diff --git a/.config/i3status/config b/.config/i3status/config new file mode 100644 index 0000000..d23ae63 --- /dev/null +++ b/.config/i3status/config @@ -0,0 +1,51 @@ +general { + colors = true + interval = 5 +} + +order += "ipv6" +order += "wireless _first_" +order += "ethernet _first_" +order += "battery all" +order += "disk /" +order += "load" +order += "memory" +order += "tztime local" + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery all { + format = "%status %percentage %remaining" + last_full_capacity = true + format_down = "No battery" + status_chr = "⚡ CHR" + status_bat = "🔋 BAT" + status_unk = "? UNK" + status_full = "☻ FULL" +} + +disk "/" { + format = "%avail" +} + +load { + format = "%1min" +} + +memory { + format = "%used | %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + format = "%Y-%m-%d %H:%M:%S" +}