mirror of
https://github.com/kuhyx/scripts.git
synced 2026-07-04 15:23:11 +02:00
feat: add acpi installation
This commit is contained in:
parent
278b390277
commit
04da3737cd
@ -16,9 +16,12 @@ wifi_info=$(iwconfig $wifi_interface 2>/dev/null)
|
||||
ssid=$(echo "$wifi_info" | awk -F '"' '/ESSID/ {print $2}')
|
||||
signal=$(echo "$wifi_info" | awk '/Signal level/ {print $4}' | tr -d 'level=')
|
||||
|
||||
# Get the IP address
|
||||
ip_address=$(ip addr show $wifi_interface | awk '/inet / {print $2}' | cut -d/ -f1)
|
||||
|
||||
# Output the result
|
||||
if [ -z "$ssid" ]; then
|
||||
echo " down"
|
||||
else
|
||||
echo " $ssid ($signal dBm)"
|
||||
echo " $ssid ($signal dBm) $ip_address"
|
||||
fi
|
||||
@ -35,7 +35,7 @@ if is_ubuntu; then
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y fonts-dejavu-core fonts-noto fonts-font-awesome bc jq iw
|
||||
else
|
||||
yes | sudo pacman -S --needed ttf-dejavu noto-fonts ttf-font-awesome bc jq iw
|
||||
yes | sudo pacman -S --needed ttf-dejavu noto-fonts ttf-font-awesome bc jq iw acpi
|
||||
fi
|
||||
|
||||
# Set font size based on screen resolution
|
||||
|
||||
Loading…
Reference in New Issue
Block a user