dotfiles

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

commit 59f86c55bee108ed48fb8778a81028f139a7b190
parent 0cee682ee4ed172554a4e67f1a93615f5cc597f4
Author: regexghost <dev@regexghost.com>
Date:   Fri, 29 May 2026 21:39:08 +0100

removed adding and removing bookmarks from bookmarks.sh, now done via terminal alias

Diffstat:
Mdotfiles/.bashrc | 2++
Mdotfiles/.config/newsraft/queue-vid.sh | 4++--
Mwm-scripts/bookmarks.sh | 14--------------
3 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc @@ -368,6 +368,8 @@ alias findh='find ~ -iname' alias fig='find . | sort | grep' alias psg='ps -aux | grep' +alias edit-bookmarks='${VISUAL:${EDITOR:-vi}} ~/.local/share/regexghost/script-data/bookmarks.txt' + # Load my other aliases and functions source "$HOME/.local/share/regexghost/terminal/autocompletion.bash" diff --git a/dotfiles/.config/newsraft/queue-vid.sh b/dotfiles/.config/newsraft/queue-vid.sh @@ -7,10 +7,10 @@ LOC="${HOME}/Videos/YouTube/toDownload" if echo "$1" | grep -q "youtube.com/watch"; then id="$(echo "$1" | sed -nE 's/.*=(.*)/\1/p')" - yt-data "$1" > "${LOC}/Videos/${id}.txt" & disown + setsid yt-data "$1" > "${LOC}/Videos/${id}.txt" & elif echo "$1" | grep -q "youtube.com/shorts"; then id="$(echo "$1" | sed -nE 's/.*\/(.*)/\1/p')" - yt-data "$1" > "${LOC}/Shorts/${id}.txt" & disown + setsid yt-data "$1" > "${LOC}/Shorts/${id}.txt" & else notify-send "Not a video" exit diff --git a/wm-scripts/bookmarks.sh b/wm-scripts/bookmarks.sh @@ -18,18 +18,4 @@ elif [ $status -eq 10 ]; then else xdotool type "$real_bookmark" fi -# Ctrl+a - add new -elif [ $status -eq 11 ]; then - new_bookmark="$(echo "" | "${DMENU_SCRIPT}" "Enter new bookmark:" -pa)" - new_alias="$(echo "" | "${DMENU_SCRIPT}" "Enter alias (blank for none):" -pa)" - [ "$new_alias" = "" ] && new_alias="$new_bookmark" - echo "${new_alias}DELIM${new_bookmark}" >> "$BOOKMARKS_FILE" -# Ctrl+w - delete -elif [ $status -eq 12 ]; then - yes_or_no="$(echo "No\nYes" | "${DMENU_SCRIPT}" "Delete Bookmark ${output} (?):")" - if [ "$yes_or_no" = "Yes" ]; then - line="$(grep -n "${output}DELIM${real_bookmark}" $BOOKMARKS_FILE | sed 's/:.*//g')" - sed "${line}d" $BOOKMARKS_FILE > /tmp/out - mv /tmp/out $BOOKMARKS_FILE - fi fi