aboutsummaryrefslogtreecommitdiff
path: root/dmenu-scripts
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukasz.kasprzak@pm.me>2026-02-17 16:20:40 +0100
committerLukasz Kasprzak <lukasz.kasprzak@pm.me>2026-02-17 16:20:40 +0100
commitc74163f1ecbd809c83bb465ee89fa04369a89972 (patch)
treec1a52692a47566652d7f2a9a8eceb9f1839991b7 /dmenu-scripts
parent70e6d80c2d367480478eacf46363ee88a0e994ff (diff)
downloadbin-c74163f1ecbd809c83bb465ee89fa04369a89972.tar.gz
bin-c74163f1ecbd809c83bb465ee89fa04369a89972.zip
cleaned up names and dir
Diffstat (limited to 'dmenu-scripts')
-rwxr-xr-xdmenu-scripts38
1 files changed, 0 insertions, 38 deletions
diff --git a/dmenu-scripts b/dmenu-scripts
deleted file mode 100755
index 6d9c9db..0000000
--- a/dmenu-scripts
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-
-script_path="${HOME}/.local/bin"
-
-# Optional dmenu theming
-# shellcheck disable=SC1090
-[[ -r "${HOME}/.local/bin/dmenu-theming" ]] && . "${HOME}/.local/bin/dmenu-theming"
-
-DMENU_CMD="${DMENU_CMD:-dmenu}"
-PROMPT="${PROMPT:-Run: }"
-
-# List only executable non-binary files in ~/.local/bin
-choices="$(
- find "${script_path}" -maxdepth 1 -type f -executable -print0 \
- | xargs -0 -I{} sh -c 'grep -Iq . "$1" && printf "%s\n" "$(basename "$1")"' _ {} \
- | sort -u
-)"
-
-picked="$(
- printf "%s\n" "$choices" \
- | ${DMENU_CMD} -i -l 20 -p "${PROMPT}" ${lines:-} ${colors:-} ${font:-} \
- || true
-)"
-
-[[ -n "${picked}" ]] || exit 0
-
-# Safety: only allow basenames (no slashes)
-case "$picked" in
- */*|"") exit 0 ;;
-esac
-
-target="${script_path}/${picked}"
-
-[[ -x "$target" ]] || { printf "ERROR: not executable: %s\n" "$target" >&2; exit 1; }
-
-exec "$target"
-