dotfiles

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

commit 9db14ea4aaaff766c0728b1c39ad129b78fa0c43
parent 44c367ccf8d7b3d1032fad50e96c01ecec3c8626
Author: regexghost <dev@regexghost.com>
Date:   Tue, 21 Jul 2026 09:43:35 +0100

bug fix in qmount.sh, kshrc and jwmrc changes, other minor tweaks

Diffstat:
Mdotfiles/.kshrc | 10+++++-----
Mjwm/.config/jwm/jwmrc | 14+++++++-------
Mpanel-scripts/lemonbar-bar.sh | 2+-
Mterminal-scripts/qmount.sh | 2+-
4 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/dotfiles/.kshrc b/dotfiles/.kshrc @@ -22,7 +22,7 @@ alias cp='cp -r -i' alias duf='duf -hide special' alias rm='rm-trash' alias zbr='zig build run' -alias cl='ln -si' +alias cl='ln -s' alias b='bat' alias dud='du -s -h *' @@ -181,7 +181,7 @@ cal () { day="$(date +'%A')" date="$(date +'%d')" - week="$(date +'%W')" + week="$(date +'%V')" echo -e "${RED_COLOUR}Day:${RESET_COLOUR} ${day}" echo -e "${BLUE_COLOUR}Date:${RESET_COLOUR} ${date}$(suffix $date)" @@ -252,7 +252,7 @@ alias his='nl ~/.history | grep' ## Search root directory findr () { - find / -iname "$1" 2>&1 | grep -v 'Permission denied' + /usr/bin/find / -iname "$1" 2>&1 | grep -v 'Permission denied' } alias findh='find ~ -iname' @@ -270,8 +270,8 @@ alias edit-bookmarks='${VISUAL:${EDITOR:-vi}} ~/.local/share/regexghost/script-d # Set variables -export HISTSIZE=80000 -export HISTFILESIZE=80000 +export HISTSIZE=100000 +export HISTFILESIZE=100000 export HISTFILE="$HOME/.history" export HISTCONTROL=ignoredups:erasedups diff --git a/jwm/.config/jwm/jwmrc b/jwm/.config/jwm/jwmrc @@ -159,13 +159,13 @@ <Key mask="4S" key="r">resize</Key> <Key mask="4S" key="q">close</Key> - <Key mask="4" key="m">exec:~/.local/share/regexghost/panel/music.sh</Key> - <Key mask="4S" key="m">exec:~/.local/share/regexghost/panel/music.sh --choice</Key> - <Key mask="4" key="equal">exec:~/.local/share/regexghost/panel/music.sh --next</Key> - <Key mask="4" key="minus">exec:~/.local/share/regexghost/panel/music.sh --previous</Key> - <Key mask="4S" key="minus">exec:~/.local/share/regexghost/panel/music.sh --quit</Key> - <Key mask="4S" key="equal">exec:~/.local/share/regexghost/panel/music.sh --favourite</Key> - <Key mask="4S" key="bracketleft">exec:~/.local/share/regexghost/panel/music.sh --toggle-pause</Key> + <Key mask="4" key="m">exec:~/.local/share/regexghost/panel/music-moc.sh</Key> + <Key mask="4S" key="m">exec:~/.local/share/regexghost/panel/music-moc.sh --choice</Key> + <Key mask="4" key="equal">exec:~/.local/share/regexghost/panel/music-moc.sh --next</Key> + <Key mask="4" key="minus">exec:~/.local/share/regexghost/panel/music-moc.sh --previous</Key> + <Key mask="4S" key="minus">exec:~/.local/share/regexghost/panel/music-moc.sh --quit</Key> + <Key mask="4S" key="equal">exec:~/.local/share/regexghost/panel/music-moc.sh --favourite</Key> + <Key mask="4S" key="bracketleft">exec:~/.local/share/regexghost/panel/music-moc.sh --toggle-pause</Key> <Key mask="4" key="bracketleft">exec:~/.local/share/regexghost/wm-scripts/volume.sh --down</Key> <Key mask="4" key="bracketright">exec:~/.local/share/regexghost/wm-scripts/volume.sh --up</Key> <Key mask="4S" key="slash">exec:~/.local/share/regexghost/wm-scripts/volume.sh --toggle-mute</Key> diff --git a/panel-scripts/lemonbar-bar.sh b/panel-scripts/lemonbar-bar.sh @@ -104,7 +104,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 16 ".." | 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')" pause="$(echo "$state" | grep -e "State" | cut -d " " -f 2)" if [ "$song" = "" ]; then music="${music_stopped_colour} N/A${COLOUR_RESET}" diff --git a/terminal-scripts/qmount.sh b/terminal-scripts/qmount.sh @@ -24,7 +24,7 @@ mount () { unmount () { mounted="$(/usr/bin/lsblk -l -n --output NAME,MOUNTPOINTS | grep "/" | grep -v "$root_device" | tr -s " ")" - [ "$unmounted" = "" ] && echo "No drives to unmount" && exit + [ "$mounted" = "" ] && echo "No drives to unmount" && exit chosen_path="$(echo "$mounted" | fzf | cut -d " " -f 2-)" [ "$chosen_path" = "" ] && exit