aboutsummaryrefslogblamecommitdiffstats
path: root/bin/run_with_dmenu.sh
blob: 08580cab4015951cf58bee9394322b92d69a1565 (plain) (tree)
1
2
3
4
5
6
7
8
9
                  
                                        
                             
                                                                                                                       
                         
                                     
                                                                                                                                                  
    
                                                                                                                                    
  
#!/usr/bin/env zsh
# shellcheck source=../zshrc_stripped.sh
. ~/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