summaryrefslogtreecommitdiff
path: root/packages/scripts/resources/bin/dmenu-software.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/scripts/resources/bin/dmenu-software.sh')
-rwxr-xr-xpackages/scripts/resources/bin/dmenu-software.sh13
1 files changed, 13 insertions, 0 deletions
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