dotfiles

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

commit a205e035de27e5455cd8c5f527f666306351b5ce
parent 835f621f1409162de1704ecc48d6f9689b6f4944
Author: regexghost <dev@regexghost.com>
Date:   Wed, 29 Jul 2026 19:03:20 +0100

minor script updates and added snippets.sh, plus super+a shortcut in jwmrc

Diffstat:
Mjwm/.config/jwm/jwmrc | 1+
Mpanel-scripts/music-moc.sh | 2+-
Mpanel-scripts/music-mpd.sh | 2+-
Mwm-scripts/Makefile | 1+
Mwm-scripts/altgrtosuper.sh | 2+-
Mwm-scripts/bookmarks.sh | 6+++---
Awm-scripts/snippets.sh | 16++++++++++++++++
7 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/jwm/.config/jwm/jwmrc b/jwm/.config/jwm/jwmrc @@ -181,6 +181,7 @@ <Key mask="4" key="e">exec:st -t nnn -e files</Key> <Key mask="4S" key="e">exec:xfe</Key> <Key mask="4" key="q">exec:~/.local/share/regexghost/wm-scripts/bookmarks.sh</Key> + <Key mask="4" key="a">exec:~/.local/share/regexghost/wm-scripts/snippets.sh</Key> <Key mask="4" key="f">exec:~/.local/share/regexghost/wm-scripts/dmenu-programs.sh</Key> <Key mask="4" key="s">exec:st -t Soundboard -e soundboard</Key> <Key mask="4S" key="c">exec:dunstctl close-all</Key> diff --git a/panel-scripts/music-moc.sh b/panel-scripts/music-moc.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Music playing script diff --git a/panel-scripts/music-mpd.sh b/panel-scripts/music-mpd.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Music playing script (mpd/mpc) diff --git a/wm-scripts/Makefile b/wm-scripts/Makefile @@ -10,3 +10,4 @@ normal: cp keyboard-settings.sh ${PREFIX}/keyboard-settings.sh cp jwm-xinit.sh ${PREFIX}/jwm-xinit.sh cp jwm-scratchpad.sh ${PREFIX}/jwm-scratchpad.sh + cp snippets.sh ${PREFIX}/snippets.sh diff --git a/wm-scripts/altgrtosuper.sh b/wm-scripts/altgrtosuper.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Remove mod5 from AltGr xmodmap -e 'remove mod5 = ISO_Level3_Shift' diff --git a/wm-scripts/bookmarks.sh b/wm-scripts/bookmarks.sh @@ -1,16 +1,16 @@ -#!/usr/bin/env sh +#!/bin/sh DMENU_SCRIPT="$XDG_DATA_HOME/regexghost/wm-scripts/dmenu-runner.sh" BOOKMARKS_FILE="$XDG_DATA_HOME/regexghost/script-data/bookmarks.txt" -output="$(cat "$BOOKMARKS_FILE" | sed 's/DELIM.*//g' | "${DMENU_SCRIPT}" "Select Bookmark:")" +output="$(cat "$BOOKMARKS_FILE" | sed 's/DELIM.*//g' | "$DMENU_SCRIPT" "Select Bookmark:")" status=$? real_bookmark=$(cat "$BOOKMARKS_FILE" | grep "${output}DELIM" | sed 's/.*DELIM//g') # Return - default if [ $status -eq 0 ]; then - echo -n $real_bookmark | xclip -selection clipboard + 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 diff --git a/wm-scripts/snippets.sh b/wm-scripts/snippets.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +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=$? +file="${SNIPPETS_DIR}/${output}" + +if [ -x "$file" ]; then + result="$("$file")" +else + result="$(cat "$file")" +fi + +echo -n "$result" | xclip -selection clipboard