Update env, packages and fix some scripts

This commit is contained in:
Tobias Reisinger 2023-02-02 23:26:51 +01:00
parent e411075acb
commit 1458d5b334
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
10 changed files with 54 additions and 25 deletions

View file

@ -10,18 +10,28 @@ else
fi
echo "==================================================================="
printf "\n=== REMOVE UNUSED PACKAGES ==========================================\n"
# shellcheck disable=SC2046
sudo pacman -Rns --noconfirm $(pacman -Qtdq)
if sudo checkservices; then
echo "CHECKSERVICES SUCCEDEED"
else
echo "CHECKSERVICES FAILED"
exit 1
fi
echo ""
printf "\n=== FLATPAK UPDATE ==================================================\n"
flatpak update -y
printf "\n=== RUN PACDIFF =====================================================\n"
if sudo pacdiff; then
echo "PACDIFF SUCCEDEED"
else
echo "PACDIFF FAILED"
exit 1
fi
#if sudo checkservices; then
# echo "CHECKSERVICES SUCCEDEED"
#else
# echo "CHECKSERVICES FAILED"
# exit 1
#fi
printf "\n\n\n\n=== DONE ============================================================\n"

View file

@ -1,6 +1,6 @@
#!/bin/sh
action=$(printf "shutdown\nreboot\nlogout\nautostart" | $MENU)
action=$(printf "shutdown\nreboot\nlogout\nautostart" | $DMENU)
case "$action" in
shutdown) systemctl poweroff -i ;;

View file

@ -2,8 +2,8 @@
rclone_remote="s3-serguzim-me:public/screenshots"
screenshot_host="https://s3.serguzim.me/public/screenshots"
path="/tmp/screenshot.png"
file="$(date '+%F_%H-%M-%S').png"
path="/tmp/screenshot.webp"
file="$(date '+%F_%H-%M-%S').webp"
clip_image()
{