aboutsummaryrefslogtreecommitdiffstats
path: root/bin/run_with_dmenu.sh
blob: bce0c00ffe9a0d45a7dc812f991ec3994760c404 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env zsh

. ~/scripts/zshrc_stripped.sh
COMMAND=$(echo "" | dmenu -l 20 -p "Quick Term:")
RESULT=$(eval "$COMMAND")
if [ "$COMMAND" = "getmangas" ]; then
  echo "$RESULT" | sort | dmenu -D ">" -l 20 -p "Quick Term Out:" | xsel -ib
else
  echo "$RESULT" | dmenu -l 20 -p "Quick Term Out:" | xsel -ib
fi