Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
stuffbymax authored Jul 23, 2024
1 parent e181e4b commit 216aa61
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 212 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# people who would prefer to stay anonymous that helped.
- mz provided get_percentage stuff and set -u set -e set -o pipefail
- sy pointed that storage % was on right
- tg helped a lot mz helped a lot and sy helped a lot i just cant remember
- tg helped a lot mz helped a lot and sy helped a lot

# people that helped
- BluishHumility fixed the ai problem
- DsturbD pointed the nerd-font problem

[this section is made by BluishHumility

# sysi Script

README written by AI
----

]

# what i use AI for
* readme
Expand All @@ -31,7 +32,6 @@ To run `sysi` without issues, ensure the following:

1. **Operating System**:
- Linux-based operating system (e.g., Ubuntu, Fedora, Debian, Arch).

1.5 **fonts**
- nerd font needed
- get nerd font https://www.nerdfonts.com/
Expand Down Expand Up @@ -123,7 +123,7 @@ Install necessary utilities using your package manager. Examples:
| **CPU Cores/Threads** | No | Yes |
| **Fan Speeds** | No | Yes (if lm_sensors installed) |
| **GPU Info** | Yes | Yes |
| **GPU Temperatures** | No | Yes (Nvidia, AMD, Intel GPUs and if lm_sensors installed) |
| **GPU Temperatures** | No | Yes (Nvidia, AMD, Intel GPUs) |
| **Memory Info** | Yes | Yes |
| **Disk Usage** | Yes | Yes |
| **Battery Info** | Yes | Yes |
Expand All @@ -135,7 +135,7 @@ Install necessary utilities using your package manager. Examples:
|**disk I/O statistics:** | no | yes |
| **Firewall Information** | no | yes |
| **Customization** | High (config file) | High (script editing) |
| **Ease of Use** | High (simple command) | High (simple command) |
| **Ease of Use** | High (simple command) | Moderate (run script manually) |

## Neofetch

Expand Down
17 changes: 9 additions & 8 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ install_packages() {
arch|endeavouros|manjaro)
yay -S --noconfirm "${packages[@]}"
;;
opensuse)
sudo zypper install -y "${packages[@]}"
;;
*)
echo "Unsupported distribution: $distribution"
exit 1
Expand All @@ -44,6 +41,12 @@ get_distribution() {
fi
}

# Function to install Iosevka Nerd Font using yay on Arch-based distributions
install_nerdfont_arch() {
echo "Installing Iosevka Nerd Font..."
sudo pacman -S ttf-iosevkaterm-nerd
}

# Function to install Iosevka Nerd Font based on distribution
install_nerdfont() {
local distribution=$1
Expand All @@ -55,10 +58,7 @@ install_nerdfont() {
sudo dnf install -y iosevka-fonts
;;
arch|endeavouros|manjaro)
sudo pacman -S --noconfirm ttf-iosevka-nerd
;;
opensuse)
sudo zypper install -y fonts-iosevka-nerd
install_nerdfont_arch
;;
*)
echo "Unsupported distribution: $distribution"
Expand All @@ -84,7 +84,7 @@ if [[ ${#missing_deps[@]} -gt 0 ]]; then
distribution=$(get_distribution)

case $distribution in
debian|ubuntu|arch|endeavouros|manjaro|fedora|opensuse)
debian|ubuntu|arch|endeavouros|manjaro|fedora)
install_packages "$distribution" "${missing_deps[@]}"
;;
*)
Expand All @@ -110,3 +110,4 @@ sudo chmod +x /usr/local/bin/sysi

echo "SYSI installation completed."
echo "You can now run 'sysi' to display system information."

Loading

0 comments on commit 216aa61

Please sign in to comment.