aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorkj-sh6042025-06-10 13:32:36 -0400
committerkj-sh6042025-06-10 13:32:36 -0400
commitd55248989fe4aa8b7c6f5d06ac8a89b66ba3aba8 (patch)
treeb86e16f5a611246ba6740d7c3e9331a5b2cf38eb /.local
parent3eceaf30b0bfeb617e74275d15e41c0939fecd61 (diff)
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
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/GUI-dateTime4
-rwxr-xr-x.local/bin/aria2pkg60
-rwxr-xr-x.local/bin/curlpkg60
-rwxr-xr-x.local/bin/playerctl_systray4
-rwxr-xr-x.local/bin/rainfall4
-rwxr-xr-x.local/bin/wgetpkg60
-rw-r--r--.local/src/dateTimeSetter/LICENSE12
-rw-r--r--.local/src/dateTimeSetter/Makefile (renamed from .local/src/python-dateTimeSetter/Makefile)0
-rw-r--r--.local/src/dateTimeSetter/dateTime-GTK3.old.py (renamed from .local/src/python-dateTimeSetter/dateTime-GTK3.old.py)0
-rw-r--r--.local/src/dateTimeSetter/dateTime.py (renamed from .local/src/python-dateTimeSetter/dateTime.py)0
-rw-r--r--.local/src/playerctl_systray/LICENSE12
-rw-r--r--.local/src/playerctl_systray/Makefile (renamed from .local/src/python-playerctl_systray/Makefile)0
-rw-r--r--.local/src/playerctl_systray/playerctl_systray.py (renamed from .local/src/python-playerctl_systray/playerctl_systray.py)0
-rw-r--r--.local/src/rainfall/LICENSE21
-rw-r--r--.local/src/rainfall/Makefile (renamed from .local/src/python-rainfall/Makefile)0
-rw-r--r--.local/src/rainfall/rainfall.py (renamed from .local/src/python-rainfall/rainfall.py)0
16 files changed, 51 insertions, 186 deletions
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 <<EOF
-Usage:
- aria2pkg [-h|--help]
- aria2pkg <pkg> <pkg>...
-
-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 <<EOF
-Usage:
- curlpkg [-h|--help]
- curlpkg <pkg> <pkg>...
-
-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 <<EOF
-Usage:
- wgetpkg [-h|--help]
- wgetpkg <pkg> <pkg>...
-
-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:
diff --git a/.local/src/dateTimeSetter/LICENSE b/.local/src/dateTimeSetter/LICENSE
new file mode 100644
index 0000000..1d47b15
--- /dev/null
+++ b/.local/src/dateTimeSetter/LICENSE
@@ -0,0 +1,12 @@
+Copyright kj_sh604 <https://github.com/kj-sh604>
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
diff --git a/.local/src/python-dateTimeSetter/Makefile b/.local/src/dateTimeSetter/Makefile
index 91b1c6e..91b1c6e 100644
--- a/.local/src/python-dateTimeSetter/Makefile
+++ b/.local/src/dateTimeSetter/Makefile
diff --git a/.local/src/python-dateTimeSetter/dateTime-GTK3.old.py b/.local/src/dateTimeSetter/dateTime-GTK3.old.py
index 186c671..186c671 100644
--- a/.local/src/python-dateTimeSetter/dateTime-GTK3.old.py
+++ b/.local/src/dateTimeSetter/dateTime-GTK3.old.py
diff --git a/.local/src/python-dateTimeSetter/dateTime.py b/.local/src/dateTimeSetter/dateTime.py
index 4d7ab5e..4d7ab5e 100644
--- a/.local/src/python-dateTimeSetter/dateTime.py
+++ b/.local/src/dateTimeSetter/dateTime.py
diff --git a/.local/src/playerctl_systray/LICENSE b/.local/src/playerctl_systray/LICENSE
new file mode 100644
index 0000000..1d47b15
--- /dev/null
+++ b/.local/src/playerctl_systray/LICENSE
@@ -0,0 +1,12 @@
+Copyright kj_sh604 <https://github.com/kj-sh604>
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
diff --git a/.local/src/python-playerctl_systray/Makefile b/.local/src/playerctl_systray/Makefile
index a0ab881..a0ab881 100644
--- a/.local/src/python-playerctl_systray/Makefile
+++ b/.local/src/playerctl_systray/Makefile
diff --git a/.local/src/python-playerctl_systray/playerctl_systray.py b/.local/src/playerctl_systray/playerctl_systray.py
index 79a4c0c..79a4c0c 100644
--- a/.local/src/python-playerctl_systray/playerctl_systray.py
+++ b/.local/src/playerctl_systray/playerctl_systray.py
diff --git a/.local/src/rainfall/LICENSE b/.local/src/rainfall/LICENSE
new file mode 100644
index 0000000..4344f2d
--- /dev/null
+++ b/.local/src/rainfall/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 alpin111
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/.local/src/python-rainfall/Makefile b/.local/src/rainfall/Makefile
index c7cdd98..c7cdd98 100644
--- a/.local/src/python-rainfall/Makefile
+++ b/.local/src/rainfall/Makefile
diff --git a/.local/src/python-rainfall/rainfall.py b/.local/src/rainfall/rainfall.py
index 9175022..9175022 100644
--- a/.local/src/python-rainfall/rainfall.py
+++ b/.local/src/rainfall/rainfall.py