This commit is contained in:
Stephan Raabe 2023-03-02 09:45:31 +01:00
parent 3a7a8b20ac
commit 8a799fc241
5 changed files with 34 additions and 3 deletions

View File

@ -30,7 +30,7 @@ yay -S pywal timeshift tela-circle-icon-theme-orange
# Install Pip packages # Install Pip packages
# ------------------------------------------------------ # ------------------------------------------------------
echo "-> Install Pip packages" echo "-> Install Pip packages"
pip install psutil pip install psutil rich click
# ------------------------------------------------------ # ------------------------------------------------------
# Create symbolic links # Create symbolic links

View File

@ -1 +1,11 @@
#!/bin/sh
# ____ _ _ __
# | _ \| | __ _| |_ / _| ___ _ __ _ __ ___
# | |_) | |/ _` | __| |_ / _ \| '__| '_ ` _ \
# | __/| | (_| | |_| _| (_) | | | | | | | |
# |_| |_|\__,_|\__|_| \___/|_| |_| |_| |_|
#
# by Stephan Raabe (2023)
# 3 = Desktop
# 10 = Laptop
cat /sys/class/dmi/id/chassis_type cat /sys/class/dmi/id/chassis_type

View File

@ -8,7 +8,7 @@ format() {
fi fi
} }
if ! updates_arch="$(checkupdates | wc -l)"; then if ! updates_arch="$(pacman -Qm >/dev/null | wc -l)"; then
updates_arch=0 updates_arch=0
fi fi

14
scripts/cu.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
pacmanUpdates=$(pacman -Syup | grep http:// | wc -l)
aurUpdates=$(yaourt -Qua | grep aur | wc -l)
if [ "$pacmanUpdates" -gt 0 ]; then
updateCount="$pacmanUpdates"
elif [ "$aurUpdates" -gt 0 ]; then
updateCount="A$aurUpdates"
else
updateCount=0
fi
echo "$updateCount" > /tmp/updateCount

View File

@ -1,5 +1,12 @@
#!/bin/sh #!/bin/sh
# _____ _ _
# | ___|__ _ __ | |_ ___ ___ __ _ _ __ ___| |__
# | |_ / _ \| '_ \| __/ __|/ _ \/ _` | '__/ __| '_ \
# | _| (_) | | | | |_\__ \ __/ (_| | | | (__| | | |
# |_| \___/|_| |_|\__|___/\___|\__,_|_| \___|_| |_|
#
# by Stephan Raabe (2023)
#
fc-list \ fc-list \
| grep -ioE ": [^:]*$1[^:]+:" \ | grep -ioE ": [^:]*$1[^:]+:" \
| sed -E 's/(^: |:)//g' \ | sed -E 's/(^: |:)//g' \