summaryrefslogtreecommitdiff
path: root/packages/scripts/resources/bin/dmenu-software.sh
blob: bca5b54258c673ad6abdd51d5ac728076f8276b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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