From bb31017840e766033729df60c46e4bfb0062abfd Mon Sep 17 00:00:00 2001 From: sheldonmlee Date: Sun, 23 May 2021 14:32:37 +0800 Subject: [PATCH] Added script that runs all scripts in wm_scripts. --- .config/wm_scripts/all.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 .config/wm_scripts/all.sh diff --git a/.config/wm_scripts/all.sh b/.config/wm_scripts/all.sh new file mode 100755 index 0000000..e250f1e --- /dev/null +++ b/.config/wm_scripts/all.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# +# Script to run all scripts in wm_scripts directory. +# + +cd $HOME/.config/wm_scripts/ +list="" +for entry in ./*.sh +do + list="${list}${entry}\n" +done + +end=${#list}-2 +list=${list:0:end} +eval $(echo -e $list | rofi -dmenu) +