dotfiles

regexghost dotfiles and scripts
git clone https://git.regexghost.com/dotfiles.git
Log | Files | Refs | README

commit 130fd153a7991f89e288427d04011366ea9e58c1
parent 0249ff634c43a2e19ca9caa1a6e71cd933e0beb4
Author: regexghost <dev@regexghost.com>
Date:   Wed,  5 Aug 2026 13:14:15 +0100

added one true awk to other-programs.sh, started commenting kshrc, music panel change

Diffstat:
Mdotfiles/.kshrc | 11++++++++---
Mother-programs.sh | 16++++++++++++++++
Mpanel-scripts/lemonbar-bar.sh | 2+-
3 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/dotfiles/.kshrc b/dotfiles/.kshrc @@ -20,9 +20,9 @@ function truncatedpwd PS1=' \[\033[1;35m\]'"\$(truncatedpwd)"'\[\033[1;34m\]$(directory-bookmarks current)\[\033[1;36m\] >\[\033[0m\] ' # Basic Aliases -alias grep='/usr/bin/grep -i --color=auto' -alias grepa='grep -i -I -A 5 -B 5 --color=auto' -alias gi='/usr/bin/grep -ir --color=auto' +alias grep='/usr/bin/grep -i --color=auto' # Standard grep +alias grepa='grep -i -I -A 5 -B 5 --color=auto' # grep surrounding lines +alias gi='/usr/bin/grep -ir --color=auto' # recursive grep alias diff='diff --color' alias n='nano' alias sq='ncdu' # Not sure why this is "sq" but I'm used to it now @@ -71,6 +71,7 @@ alias man='MANWIDTH=$(($(stty size | cut -d " " -f 2)-20)) man' alias dff='df -h | grep -e Filesystem -e "^/dev" | grep -v efi' alias hltb='~/.local/share/regexghost/.venv/bin/python3 ~/.local/share/regexghost/terminal/howlongtobeat.py' alias wttr='curl wttr.in' +alias im='iphone-mount' web () { case "$1" in @@ -80,6 +81,10 @@ web () { p*) push-website /tmp/personal-website/build/ ;; + f*) + ~/Programs/websites/personal-website/scripts/build.sh + push-website /tmp/personal-website/build/ + ;; *) echo "Usage: case [build|push]" ;; diff --git a/other-programs.sh b/other-programs.sh @@ -572,6 +572,19 @@ zigitself () { cd .. } +onetrueawk () { + sudo apt install bison + + git clone "https://github.com/onetrueawk/awk" + cd awk/ + + make + sudo cp a.out /usr/local/bin/awk + sudo cp awk.1 /usr/local/man/man1/awk.1 + + cd .. +} + ueberzugpp () { sudo apt install libssl-dev libvips-dev libsixel-dev libchafa-dev libtbb-dev libxcb-image0-dev libxcb-res0 libxcb-res0-dev @@ -635,6 +648,7 @@ elif [ "$1" = "notmine" ]; then build zigitself build mepo build cava + build onetrueawk build retroarch echo "done" elif [ "$1" = "jwm" ]; then @@ -703,6 +717,8 @@ elif [ "$1" = "zig" ]; then zigitself elif [ "$1" = "cava" ]; then cava +elif [ "$1" = "onetrueawk" ]; then + onetrueawk elif [ "$1" = "alpine" ]; then alpine else diff --git a/panel-scripts/lemonbar-bar.sh b/panel-scripts/lemonbar-bar.sh @@ -107,7 +107,7 @@ update_streams () { update_music () { state="$(mocp -M "$XDG_CONFIG_HOME/moc" -i)" - song="$(echo "$state" | grep -e "SongTitle" -e "Artist" | tac | tr "\n" "-" | sed 's/-Artist: / - /g' | sed 's/^SongTitle: //g; s/"//g' | string-trunc 14 ".." | sed 's/ $//g')" + song="$(echo "$state" | grep -e "SongTitle" -e "Artist" | tac | tr "\n" "-" | sed 's/-Artist: / - /g' | sed 's/^SongTitle: //g; s/"//g' | string-trunc 14 ".." | sed 's/ $//g; s/ ..$/../g'')" pause="$(echo "$state" | grep -e "State" | cut -d " " -f 2 | head -n 1)" if [ "$song" = "" ]; then music="${music_stopped_colour} N/A${COLOUR_RESET}"