I'm totally adding this to epic win. +300

This commit is contained in:
coolnsx
2024-10-04 14:46:07 +05:30
parent 369e49ae17
commit a2532464bb
5 changed files with 16 additions and 7 deletions

View File

@@ -26,6 +26,9 @@ else
script_dir="$HOME/repos_scripts"
download_dir="$HOME/Softwares"
[ -z "$magnet" ] && magnet="$(wl-paste)"
terminal="${TERMINAL:-foot}"
prefix="setsid -f $terminal -e"
pgrep -af "$0" | grep -q "$terminal" || { $prefix "$0" "$magnet"; exit 0; }
fi
#import generic functions