Updates
This commit is contained in:
parent
3a7a8b20ac
commit
8a799fc241
|
@ -30,7 +30,7 @@ yay -S pywal timeshift tela-circle-icon-theme-orange
|
|||
# Install Pip packages
|
||||
# ------------------------------------------------------
|
||||
echo "-> Install Pip packages"
|
||||
pip install psutil
|
||||
pip install psutil rich click
|
||||
|
||||
# ------------------------------------------------------
|
||||
# Create symbolic links
|
||||
|
|
|
@ -1 +1,11 @@
|
|||
#!/bin/sh
|
||||
# ____ _ _ __
|
||||
# | _ \| | __ _| |_ / _| ___ _ __ _ __ ___
|
||||
# | |_) | |/ _` | __| |_ / _ \| '__| '_ ` _ \
|
||||
# | __/| | (_| | |_| _| (_) | | | | | | | |
|
||||
# |_| |_|\__,_|\__|_| \___/|_| |_| |_| |_|
|
||||
#
|
||||
# by Stephan Raabe (2023)
|
||||
# 3 = Desktop
|
||||
# 10 = Laptop
|
||||
cat /sys/class/dmi/id/chassis_type
|
||||
|
|
|
@ -8,7 +8,7 @@ format() {
|
|||
fi
|
||||
}
|
||||
|
||||
if ! updates_arch="$(checkupdates | wc -l)"; then
|
||||
if ! updates_arch="$(pacman -Qm >/dev/null | wc -l)"; then
|
||||
updates_arch=0
|
||||
fi
|
||||
|
||||
|
|
14
scripts/cu.sh
Executable file
14
scripts/cu.sh
Executable 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
|
|
@ -1,5 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
# _____ _ _
|
||||
# | ___|__ _ __ | |_ ___ ___ __ _ _ __ ___| |__
|
||||
# | |_ / _ \| '_ \| __/ __|/ _ \/ _` | '__/ __| '_ \
|
||||
# | _| (_) | | | | |_\__ \ __/ (_| | | | (__| | | |
|
||||
# |_| \___/|_| |_|\__|___/\___|\__,_|_| \___|_| |_|
|
||||
#
|
||||
# by Stephan Raabe (2023)
|
||||
#
|
||||
fc-list \
|
||||
| grep -ioE ": [^:]*$1[^:]+:" \
|
||||
| sed -E 's/(^: |:)//g' \
|
||||
|
|
Loading…
Reference in New Issue
Block a user