From a307e0474e78c51590aeac95dbc5587a87ef6501 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 27 Feb 2016 15:58:12 +0100 Subject: refactor scripts packages --- packages/scripts/resources/bin/dmenu-software.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 packages/scripts/resources/bin/dmenu-software.sh (limited to 'packages/scripts/resources/bin/dmenu-software.sh') diff --git a/packages/scripts/resources/bin/dmenu-software.sh b/packages/scripts/resources/bin/dmenu-software.sh new file mode 100755 index 0000000..bca5b54 --- /dev/null +++ b/packages/scripts/resources/bin/dmenu-software.sh @@ -0,0 +1,13 @@ +#!/bin/bash -l + +sysenv='System native environment' + +env=`(echo "$sysenv"; plain_list_envs) | dmenu` + +test -f "$HOME/.cache/dmenu_run" && rm -f "$HOME/.cache/dmenu_run" + +if [ "$env" == "$sysenv" ]; then + dmenu_run +else + bash -l -c "activate $env; dmenu_run" +fi -- cgit v1.2.1