From f6011293d3402f42f68cd689b73c9172b297d470 Mon Sep 17 00:00:00 2001 From: krolyxon Date: Tue, 28 Jun 2022 18:37:56 +0530 Subject: [PATCH] changes --- .config/shell/profile | 1 + .local/bin/spammer | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.config/shell/profile b/.config/shell/profile index 6b177f8..7fb1293 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -26,6 +26,7 @@ export __GL_SHADER_DISK_CACHE_PATH=~/.cache/ # Other program settings export SUDO_ASKPASS="$HOME/.local/bin/dmenupass" export FZF_DEFAULT_OPTS="--layout=reverse --height 40%" +export ANDROID_HOME="$XDG_DATA_HOME"/android export PATH=$PATH:$HOME/.local/bin diff --git a/.local/bin/spammer b/.local/bin/spammer index c23a81c..8b14491 100755 --- a/.local/bin/spammer +++ b/.local/bin/spammer @@ -2,8 +2,14 @@ i=0 +if [ -z $1 ]; then + read -p "enter query: " query +else + query=$1 +fi + while [ $i -le 100 ] do - xdotool type "$1" ;xdotool key KP_Enter; sleep 1 ; + xdotool type "$query" ;xdotool key KP_Enter; sleep 1 ; done