dotfiles

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

commit 04b78ac7fc5c8302f35a6d8e320e77e92d236425
parent 756c8a1185d485497a3d25d1c739c27473036663
Author: regexghost <dev@regexghost.com>
Date:   Thu,  6 Aug 2026 11:56:22 +0100

bug fix in panel script, subtitles default language in mpv.conf and remove history restore function from kshrc (going to make a new script for history management)

Diffstat:
Mdotfiles/.config/mpv/mpv.conf | 1+
Mdotfiles/.kshrc | 10----------
Mpanel-scripts/lemonbar-bar.sh | 2+-
3 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/dotfiles/.config/mpv/mpv.conf b/dotfiles/.config/mpv/mpv.conf @@ -7,5 +7,6 @@ force-window=yes auto-window-resize=no vo=gpu ao=pulse +slang=eng hr-seek=yes diff --git a/dotfiles/.kshrc b/dotfiles/.kshrc @@ -178,16 +178,6 @@ trash-empty () { /usr/bin/trash-empty } -# Only use this if the history in the current terminal is suddenly way shorter than it should be -restorehistory () { - if [ "$1" = "-o" ]; then - cp "$HOME/Downloads/.history_backup" "$HOME/.history" - else - cat "$HOME/Downloads/.history_backup" "$HOME/.history" > /tmp/new_history - mv /tmp/new_history "$HOME/.history" - fi -} - # Aliases to scripts, calendar info and time zone display alias cal='calendar' alias t='date-time' 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; 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}"