diff --git a/data/home/.config/PureRef.ini b/data/home/.config/PureRef.ini
index 965955d..a021269 100644
--- a/data/home/.config/PureRef.ini
+++ b/data/home/.config/PureRef.ini
@@ -5,8 +5,6 @@ Hide_Unsaved_Warning=true
Last_Browse_Path=/tmp
Maximized=false
Position=@Point(3430 355)
-RecentFiles0=/home/mb/Documents/chat.pur
-RecentFiles1=/home/mb/Downloads/chat.pur
RecentFiles2=
RecentFiles3=
RecentFiles4=
diff --git a/data/home/.config/neofetch/config.conf b/data/home/.config/neofetch/config.conf
index c3c9238..40f55c6 100644
--- a/data/home/.config/neofetch/config.conf
+++ b/data/home/.config/neofetch/config.conf
@@ -709,7 +709,7 @@ image_backend="kitty"
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
# In ascii mode, distro ascii art will be used and in an image mode, your
# wallpaper will be used.
-image_source="/home/mb/Pictures/icons/arch.png"
+image_source="$HOME/Pictures/icons/arch.png"
# Ascii Options
diff --git a/data/home/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml b/data/home/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml
index 2990193..d0d4377 100644
--- a/data/home/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml
+++ b/data/home/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml
@@ -21,7 +21,6 @@
-
diff --git a/data/home/.machine_conf b/data/home/.machine_conf
new file mode 100644
index 0000000..46d1c1b
--- /dev/null
+++ b/data/home/.machine_conf
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# seeding rng
+RANDOM="2$(hostname | sum | cut -f 1 -d ' ')"
+
+
+# rng function
+function random_from {
+ declare -a array=("$@")
+ r=$((RANDOM % ${#array[@]}))
+ printf "%s\n" "${array[$r]}"
+}
+
+
+# generated variables
+export MACHINE_COLOR=$(random_from 1 2 3 4 5 6 7 8 9 10 11 12 13 14)
diff --git a/data/home/.p10k.zsh b/data/home/.p10k.zsh
index 5f52265..d214111 100644
--- a/data/home/.p10k.zsh
+++ b/data/home/.p10k.zsh
@@ -208,7 +208,8 @@
##################################[ dir: current directory ]##################################
# Default current directory color.
- typeset -g POWERLEVEL9K_DIR_FOREGROUND=003
+ # [MB] : uses MACHINE_COLOR
+ typeset -g POWERLEVEL9K_DIR_FOREGROUND=$MACHINE_COLOR
# If directory is too long, shorten some of its segments to the shortest possible unique
# prefix. The shortened directory can be tab-completed to the original.
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
diff --git a/data/home/.zprofile b/data/home/.zprofile
index e7101be..71f382f 100644
--- a/data/home/.zprofile
+++ b/data/home/.zprofile
@@ -197,7 +197,6 @@ fuckify() {
# tout est cassé
alias reparer_qt="paru -S --noconfirm --redownload --rebuild qt5-styleplugins"
-alias reparer_discord="/home/mb/.local/scripts/reparer_discord.ts"
alias reparer_opentablet="systemctl --user daemon-reload; systemctl --user enable opentabletdriver --now; paru -S opentabletdriver --rebuild --noconfirm; systemctl --user restart opentabletdriver; systemctl --user daemon-reload"
alias reparer_gtk="sudo pacman -Rndd xdg-desktop-portal xdg-desktop-portal-gtk; sudo pacman -Rndd xdg-desktop-portal"
alias restart-cinnamon="pkill -HUP -f 'cinnamon --replace'"
@@ -219,7 +218,6 @@ fi
################################
-alias box-drawing-char="/home/mb/.local/scripts/box-drawing-char.sh"
print-colors() {
for i in {0..255}
do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}
@@ -332,6 +330,9 @@ wait_file() {
done
}
-
-alias sshpinotes="TERM=xterm-color ssh ubuntu@162.19.64.118"
-alias mrustc="MRUSTC_TARGET_VER=1.54 /home/mb/Projects/mrustc/bin/mrustc -L /home/mb/Projects/mrustc/output-1.54.0"
+term256_colors() {
+ for i in {0..255}
+ do
+ print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}
+ done
+}
diff --git a/data/home/.zshrc b/data/home/.zshrc
index 704eb90..c85de46 100644
--- a/data/home/.zshrc
+++ b/data/home/.zshrc
@@ -25,10 +25,10 @@ ZSH_AUTOSUGGEST_STRATEGY=(completion history)
ZSH_AUTOSUGGEST_USE_ASYNC="true"
# profile
-source /home/mb/.zprofile
+source $HOME/.zprofile
# extend path
-export PATH="/home/mb/.cargo/bin":"/home/mb/.local/bin":"/home/mb/.deno/bin":"$HOME/.local/scripts":$PATH
+export PATH="$HOME/.cargo/bin":"$HOME/.local/bin":"$HOME/.deno/bin":"$HOME/.local/scripts":$PATH
# [ NPM ]
@@ -46,15 +46,15 @@ MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
# opam configuration
-[[ ! -r /home/mb/.opam/opam-init/init.zsh ]] || source /home/mb/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
+[[ ! -r $HOME/.opam/opam-init/init.zsh ]] || source $HOME/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
-export CARGO_TARGET_DIR="/home/mb/.cache/cargo-target"
+export CARGO_TARGET_DIR="$HOME/.cache/cargo-target"
export RUSTC_WRAPPER="/usr/bin/sccache"
export SCCACHE_DIR="/media/hdd1/cache/sccache"
-export GOPATH="/home/mb/.go"
+export GOPATH="$HOME/.go"
-export C_INCLUDE_PATH="/home/mb/.local/include"
+export C_INCLUDE_PATH="$HOME/.local/include"
-[ -f "/home/mb/.ghcup/env" ] && source "/home/mb/.ghcup/env" # ghcup-env
+[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" # ghcup-env
export TERM=xterm-256color