From 4e9cc4dfe9d07eafaf6a913db427d7f77fca2840 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Tue, 8 Mar 2022 13:18:44 -0600 Subject: [PATCH] Adding dm-run script as alternative to dmenu_run. Requires my build of dmenu! --- .local/bin/dm-run | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 .local/bin/dm-run diff --git a/.local/bin/dm-run b/.local/bin/dm-run new file mode 100755 index 0000000..83cc3df --- /dev/null +++ b/.local/bin/dm-run @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# +# Script name: dm-run +# Description: The standard dmenu_run command with flags and a prompt. +# Dependencies: dmenu +# GitLab: https://www.gitlab.com/dwt1/dmscripts +# License: https://www.gitlab.com/dwt1/dmscripts/LICENSE +# Contributors: Derek Taylor + +# Set with the flags "-e", "-u","-o pipefail" cause the script to fail +# if certain things happen, which is a good thing. Otherwise, we can +# get hidden bugs that are hard to discover. +set -euo pipefail + +export _JAVA_AWT_WM_NONREPARENTING=1 +exec $(dmenu_path | dmenu -l 20 -g 3 -X 0 -Y 0 -W 680 -p 'Run: ' "$@") +