dotfiles

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

commit 1587010655b9f22418788a63797cca19f654c0e4
parent 393f80ff699b57b76b9ab2748af0c39864e810c6
Author: regexghost <dev@regexghost.com>
Date:   Wed,  5 Aug 2026 16:19:23 +0100

commenting and tweaks to wm-scripts/

Diffstat:
Mwm-scripts/bookmarks.sh | 7-------
Mwm-scripts/dmenu-runner.sh | 1+
Mwm-scripts/launch-stream.sh | 2++
Mwm-scripts/snippets.sh | 4++++
4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/wm-scripts/bookmarks.sh b/wm-scripts/bookmarks.sh @@ -11,11 +11,4 @@ real_bookmark=$(cat "$BOOKMARKS_FILE" | grep "${output}DELIM" | sed 's/.*DELIM// # Return - default if [ $status -eq 0 ]; then echo -n "$real_bookmark" | xclip -selection clipboard -# Shift+Return - type/open url -elif [ $status -eq 10 ]; then - if echo "$real_bookmark" | grep -q "^http"; then - $BROWSER "$real_bookmark" - else - xdotool type "$real_bookmark" - fi fi diff --git a/wm-scripts/dmenu-runner.sh b/wm-scripts/dmenu-runner.sh @@ -2,6 +2,7 @@ . "$XDG_CONFIG_HOME/regexghost/current-theme.sh" +# Check for index and print anyway arguments arg1="" arg2="" for arg; do diff --git a/wm-scripts/launch-stream.sh b/wm-scripts/launch-stream.sh @@ -12,6 +12,8 @@ twitch="$(echo "$line" | cut -d "," -f 2)" youtube="$(echo "$line" | cut -d "," -f 3)" kick="$(echo "$line" | cut -d "," -f 4)" +# Try YouTube, then Kick, then Twitch + if ! [ "$youtube" = "NONE" ]; then notify-send "Launching ${name} YouTube stream" mpv --no-resume-playback --ytdl-format="best[height<=480]" "https://youtube.com/${youtube}/live" && exit diff --git a/wm-scripts/snippets.sh b/wm-scripts/snippets.sh @@ -1,10 +1,14 @@ #!/bin/sh +# Can be just a file with text in it, or a script that will be executed and the output copied + DMENU_SCRIPT="$XDG_DATA_HOME/regexghost/wm-scripts/dmenu-runner.sh" SNIPPETS_DIR="$XDG_DATA_HOME/regexghost/snippets" output="$(ls "$SNIPPETS_DIR" | "$DMENU_SCRIPT" "Select Snippet:")" status=$? +[ "$output" = "" ] && exit + file="${SNIPPETS_DIR}/${output}" if [ -x "$file" ]; then