Migration of master edits since branch

This commit is contained in:
Wryn Wagner
2019-12-30 17:48:29 -07:00
parent fb370990fe
commit 144927b8b9
5 changed files with 36 additions and 10 deletions

17
zsh/linux/dmenu_stuff Normal file
View File

@ -0,0 +1,17 @@
#!/bin/zsh
# Make a new dmenu shortcut
DMENU_CUSTOM_BIN="$HOME/.local/custom_dmenu";
[ ! -d $DMENU_CUSTOM_BIN ] && mkdir $DMENU_CUSTOM_BIN;
function new_dmenu_command() {
local DMENU_BIN="$HOME/.local/custom_dmenu";
# fail withouut both arguments
[ ! $2 ] && exit 1;
echo "${@:2}"
echo "${@:2}" > $DMENU_BIN/$1 2>/dev/null
chmod +x $DMENU_BIN/$1
}