dotfiles

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

commit cabd6af2d53c671894f69b95e5b4762726d7330f
parent a9f11b59a1f6c3b8cfe642fc85926deeb9b3dd0b
Author: regexghost <dev@regexghost.com>
Date:   Thu,  4 Jun 2026 16:27:07 +0100

general updates, disabled most bash autocomplete to speed up startup

Diffstat:
Acommands.txt | 14++++++++++++++
Mdotfiles/.bashrc | 17++++++++++-------
Mdotfiles/.config/nano/nanorc | 3++-
Mdotfiles/Power_Management-Substitution-jwm-.bashrc | 9++-------
Mpanel-scripts/music.sh | 5++++-
Mwm-scripts/volume.sh | 6+++---
6 files changed, 35 insertions(+), 19 deletions(-)

diff --git a/commands.txt b/commands.txt @@ -0,0 +1,14 @@ +== Useful Commands/Coding Stuff == + += golang compile single core +-gcflags="all=-c=1" + += ueberzug command +{"action": "add", "x":10, "y":20,"path":"/home/ghost/Pictures/example.png","identifier":"test"} + += fio drive testing +fio --name=usbseq --filename=test.test --size=1G --rw=readwrite --bs=1M --direct=1 --numjobs=1 --iodepth=16 --group_reporting --time_based --runtime=3600 + += disable ~/.sudo_as_admin_successful +sudo visudo +`Defaults !admin_flag` diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc @@ -6,13 +6,15 @@ PROMPT_COMMAND= [[ $- != *i* ]] && return # Load bash completion -if ! shopt -oq posix; then - if [ -f /usr/share/bash-completion/bash_completion ]; then - . /usr/share/bash-completion/bash_completion - elif [ -f /etc/bash_completion ]; then - . /etc/bash_completion - fi -fi +#if ! shopt -oq posix; then +# if [ -f /usr/share/bash-completion/bash_completion ]; then +# . /usr/share/bash-completion/bash_completion +# elif [ -f /etc/bash_completion ]; then +# . /etc/bash_completion +# fi +#fi + +source /usr/share/bash-completion/completions/git # Add my directory_bookmarks program to the prompt when relevant PS1='\[\033[1;30m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;34m\]$(directory_bookmarks current)\[\033[1;31m\]\$\[\033[0m\] ' @@ -42,6 +44,7 @@ alias bluey='bluetui' alias fontsreload='sudo fc-cache -fv' alias trash-size='du ~/.local/share/Trash/files/ -s -h | cut -f 1' alias sync='echo "Syncing"; sync; echo "Done"; lsblk' +alias alpine='alpine -p ~/.config/alpine/pinerc -passfile ~/.config/alpine/pine-passfile' # Not POSIX compliant function grepc () { diff --git a/dotfiles/.config/nano/nanorc b/dotfiles/.config/nano/nanorc @@ -25,7 +25,8 @@ set numbercolor lightblack bind ^H chopwordleft main bind ^Q exit all -bind ^I suspend main +bind ^W exit all +bind ^L suspend main bind ^S savefile main bind ^F whereis all bind ^G findnext all diff --git a/dotfiles/Power_Management-Substitution-jwm-.bashrc b/dotfiles/Power_Management-Substitution-jwm-.bashrc @@ -3,10 +3,7 @@ shutdown () { read -p "Shutdown? (y/N) " yesOrNoShutdown if [[ "$yesOrNoShutdown" == "y" ]]; then - mocp --stop - tmux send-keys -t buffer_tmux.0 C-s - tmux send-keys -t buffer_tmux.0 C-q - tmux kill-session -t buffer_tmux + mocp -M "$XDG_CONFIG_HOME/moc" --stop /usr/sbin/shutdown -h 0 fi } @@ -15,9 +12,7 @@ shutdown () { reboot () { read -p "Reboot? (y/N) " yesOrNoReboot if [[ "$yesOrNoReboot" == "y" ]]; then - tmux send-keys -t buffer_tmux.0 C-s - tmux send-keys -t buffer_tmux.0 C-q - tmux kill-session -t buffer_tmux + mocp -M "$XDG_CONFIG_HOME/moc" --stop /usr/sbin/reboot fi } diff --git a/panel-scripts/music.sh b/panel-scripts/music.sh @@ -9,7 +9,10 @@ FAVOURITES_DIR="$MUSIC_DIR/Favourites" mocp_command="mocp -M $XDG_CONFIG_HOME/moc" ping_panel () { - kill -35 "$(cat ~/.cache/bar_pid)" + barpid="$(cat ~/.cache/bar_pid)" + if ! [ "$barpid" == "" ]; then + kill -35 "$barpid" + fi } # Technically these first 4 are unnecessary, could just bind directly to the command diff --git a/wm-scripts/volume.sh b/wm-scripts/volume.sh @@ -35,7 +35,7 @@ elif [ "$1" = "--toggle-mute" ]; then toggle_mute fi -barpid=$(cat ~/.cache/bar_pid) -if ! [ $barpid = "" ]; then - kill -34 $barpid +barpid="$(cat ~/.cache/bar_pid)" +if ! [ "$barpid" = "" ]; then + kill -34 "$barpid" fi