aboutsummaryrefslogtreecommitdiffstats
path: root/bin/run_with_dmenu.sh
blob: 8fda128248d6f275be9d9a858ada82f69c56f3cd (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env zsh
. ~/scripts/zshrc_stripped.sh
COMMAND=$(echo "" | dmenu -fn "DejaVuSansMono Nerd Font Mono-11.3;antialias=true;autohint=true" -l 20 -p "Quick Term:")
RESULT=$(eval "$COMMAND")
if [ "$COMMAND" = "getmangas" ]; then
  echo "$RESULT" | sort | dmenu -fn "DejaVuSansMono Nerd Font Mono-11.3;antialias=true;autohint=true" -D ">" -l 20 -p "Quick Term Out:" | xsel -ib
else
  echo "$RESULT" | dmenu -fn "DejaVuSansMono Nerd Font Mono-11.3;antialias=true;autohint=true" -l 20 -p "Quick Term Out:" | xsel -ib
fi