From d55248989fe4aa8b7c6f5d06ac8a89b66ba3aba8 Mon Sep 17 00:00:00 2001 From: kj-sh604 Date: Tue, 10 Jun 2025 13:32:36 -0400 Subject: refactor: multiple changes (see description) * add LICENSEs where necesary * remove *pkg scripts from repo see: https://github.com/kj-sh604/gitpkg * rename .local/src python directories * update .local/bin scripts in relation to above --- .local/bin/GUI-dateTime | 4 +-- .local/bin/aria2pkg | 60 -------------------------------------------- .local/bin/curlpkg | 60 -------------------------------------------- .local/bin/playerctl_systray | 4 +-- .local/bin/rainfall | 4 +-- .local/bin/wgetpkg | 60 -------------------------------------------- 6 files changed, 6 insertions(+), 186 deletions(-) delete mode 100755 .local/bin/aria2pkg delete mode 100755 .local/bin/curlpkg delete mode 100755 .local/bin/wgetpkg (limited to '.local/bin') diff --git a/.local/bin/GUI-dateTime b/.local/bin/GUI-dateTime index 23b6625..a20fd28 100755 --- a/.local/bin/GUI-dateTime +++ b/.local/bin/GUI-dateTime @@ -1,7 +1,7 @@ #!/bin/sh -BIN_PATH=~/.local/src/python-dateTimeSetter/dateTime -SCRIPT_PATH=~/.local/src/python-dateTimeSetter/dateTime.py +BIN_PATH=~/.local/src/dateTimeSetter/dateTime +SCRIPT_PATH=~/.local/src/dateTimeSetter/dateTime.py if [ -f "$BIN_PATH" ]; then if command -v lxsudo > /dev/null 2>&1; then diff --git a/.local/bin/aria2pkg b/.local/bin/aria2pkg deleted file mode 100755 index 378008c..0000000 --- a/.local/bin/aria2pkg +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh - -check_aria2c_installed() { - if ! command -v aria2c >/dev/null 2>&1; then - echo "error: aria2c is not installed :( please install aria2c to use aria2pkg." - exit 1 - fi -} - -_base_url='https://aur.archlinux.org/cgit/aur.git/snapshot' - -get_url_function() { - _pkg="$1" - _url="${_base_url}/${_pkg}.tar.gz" - - echo "$_url" -} - -run_aria2pkg_function() { - _pkg="$(echo "$1" | tr -d '[:space:]')" - _url="$(get_url_function "$_pkg")" - - aria2c --quiet --console-log-level=error "$_url" -} - -aria2pkg_function() { - for _pkg in "$@"; do - run_aria2pkg_function "$_pkg" & - done - wait -} - -usage_function() { - cat < ... - -Options: - -h, --help - print this help message -EOF -} - -check_aria2c_installed - -while [ $# -gt 0 ]; do - case "$1" in - -*) - usage_function - exit 0 - ;; - *) - aria2pkg_function "$@" - exit 0 - ;; - esac -done - -# vim: set filetype=sh foldmethod=marker foldlevel=0: diff --git a/.local/bin/curlpkg b/.local/bin/curlpkg deleted file mode 100755 index 5b48b7f..0000000 --- a/.local/bin/curlpkg +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh - -check_curl_installed() { - if ! command -v curl >/dev/null 2>&1; then - echo "error: curl is not installed :( please install curl to use curlpkg." - exit 1 - fi -} - -_base_url='https://aur.archlinux.org/cgit/aur.git/snapshot' - -get_url_function() { - _pkg="$1" - _url="${_base_url}/${_pkg}.tar.gz" - - echo "$_url" -} - -run_curlpkg_function() { - _pkg="$(echo "$1" | tr -d '[:space:]')" - _url="$(get_url_function "$_pkg")" - - curl -sSL "$_url" -o "${_pkg}.tar.gz" -} - -curlpkg_function() { - for _pkg in "$@"; do - run_curlpkg_function "$_pkg" & - done - wait -} - -usage_function() { - cat < ... - -Options: - -h, --help - print this help message -EOF -} - -check_curl_installed - -while [ $# -gt 0 ]; do - case "$1" in - -*) - usage_function - exit 0 - ;; - *) - curlpkg_function "$@" - exit 0 - ;; - esac -done - -# vim: set filetype=sh foldmethod=marker foldlevel=0: diff --git a/.local/bin/playerctl_systray b/.local/bin/playerctl_systray index f96c28a..1e57307 100755 --- a/.local/bin/playerctl_systray +++ b/.local/bin/playerctl_systray @@ -1,7 +1,7 @@ #!/bin/sh -BIN_PATH=~/.local/src/python-playerctl_systray/playerctl_systray -SCRIPT_PATH=~/.local/src/python-playerctl_systray/playerctl_systray.py +BIN_PATH=~/.local/src/playerctl_systray/playerctl_systray +SCRIPT_PATH=~/.local/src/playerctl_systray/playerctl_systray.py if ! command -v playerctl >/dev/null 2>&1; then echo "playerctl is not installed but is required." diff --git a/.local/bin/rainfall b/.local/bin/rainfall index 7d9e082..54ab525 100755 --- a/.local/bin/rainfall +++ b/.local/bin/rainfall @@ -1,7 +1,7 @@ #!/bin/sh -BIN_PATH=~/.local/src/python-rainfall/rainfall -SCRIPT_PATH=~/.local/src/python-rainfall/rainfall.py +BIN_PATH=~/.local/src/rainfall/rainfall +SCRIPT_PATH=~/.local/src/rainfall/rainfall.py if [ -f "$BIN_PATH" ]; then $BIN_PATH diff --git a/.local/bin/wgetpkg b/.local/bin/wgetpkg deleted file mode 100755 index d1738c8..0000000 --- a/.local/bin/wgetpkg +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh - -check_wget_installed() { - if ! command -v wget >/dev/null 2>&1; then - echo "error: wget is not installed :( please install wget to use wgetpkg." - exit 1 - fi -} - -_base_url='https://aur.archlinux.org/cgit/aur.git/snapshot' - -get_url_function() { - _pkg="$1" - _url="${_base_url}/${_pkg}.tar.gz" - - echo "$_url" -} - -run_wgetpkg_function() { - _pkg="$(echo "$1" | tr -d '[:space:]')" - _url="$(get_url_function "$_pkg")" - - wget --no-verbose "$_url" -} - -wgetpkg_function() { - for _pkg in "$@"; do - run_wgetpkg_function "$_pkg" & - done - wait -} - -usage_function() { - cat < ... - -Options: - -h, --help - print this help message -EOF -} - -check_wget_installed - -while [ $# -gt 0 ]; do - case "$1" in - -*) - usage_function - exit 0 - ;; - *) - wgetpkg_function "$@" - exit 0 - ;; - esac -done - -# vim: set filetype=sh foldmethod=marker foldlevel=0: -- cgit v1.2.3