Skip to content

Commit

Permalink
Hakku v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rybo713 committed Mar 26, 2021
1 parent 78ff06d commit 1a10045
Show file tree
Hide file tree
Showing 8 changed files with 1,576 additions and 696 deletions.
52 changes: 52 additions & 0 deletions Hakku3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#
# Hakku3: A reworked command line utility which shows the user
# their system info and a bunch of useful tools and tweaks.
# Built using Bash version 3.2.57(1)-release
#
# The MIT License (MIT)
#
# Copyright (c) 2021 Ryan Wong
#
# 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.

LGREEN='\033[1;32m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
CYAN='\033[0;36m'
RED='\033[0;31m'
NC='\033[0m'
LYELLOW='\033[1;33m'
bold=$(tput bold)
normal=$(tput sgr0)

version=" v3.0.0"
build="build-20210326"
updating="Please check for updates."
color="${YELLOW}${bold}"

start=loading
. ./load.sh
. ./functions.sh
. ./tweaks_f.sh
. ./settings_f.sh
. ./update_f.sh

$start
mainmenu
34 changes: 16 additions & 18 deletions example.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/bin/bash
#
# An example page/template in Hakku2
# An example page/template in Hakku3
#
# The MIT License (MIT)
#
# Copyright (c) 2019 Ryan Wong
# Copyright (c) 2021 Ryan Wong
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand All @@ -25,30 +24,29 @@
# SOFTWARE.

/usr/bin/osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "k" using command down'
printf "${YELLOW}${bold}"
echo " v$version"
echo ""
echo " ██╗ ██╗ █████╗ ██╗ ██╗██╗ ██╗██╗ ██╗";
echo " ██║ ██║██╔══██╗██║ ██╔╝██║ ██╔╝██║ ██║";
echo " ███████║███████║█████╔╝ █████╔╝ ██║ ██║";
echo " ██╔══██║██╔══██║██╔═██╗ ██╔═██╗ ██║ ██║";
echo " ██║ ██║██║ ██║██║ ██╗██║ ██╗╚██████╔╝";
echo " ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ";
echo ""
echo ""
printf "${NC}${normal}"
printf "$color"
echo "$build $version"
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo " ██╗ ██╗ █████╗ ██╗ ██╗██╗ ██╗██╗ ██╗██████╗ ";
echo " ██║ ██║██╔══██╗██║ ██╔╝██║ ██╔╝██║ ██║╚════██╗";
echo " ███████║███████║█████╔╝ █████╔╝ ██║ ██║ █████╔╝";
echo " ██╔══██║██╔══██║██╔═██╗ ██╔═██╗ ██║ ██║ ╚═══██╗";
echo " ██║ ██║██║ ██║██║ ██╗██║ ██╗╚██████╔╝██████╔╝";
echo " ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ";
echo ""
echo " Ryan Wong 2021"
echo ""
echo ""
echo ""
echo ""
printf "${NC}${normal}"
echo ""
echo "press q to go back"
echo ""
read -p "> " input.
options=("Start" "Exit" "Help")

select_option "${options[@]}"
choice=$?
Loading

0 comments on commit 1a10045

Please sign in to comment.