Update
This commit is contained in:
parent
c6f5fc44fa
commit
f623e1dcd4
@ -1,8 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DNF_UPDATES=$(sudo dnf check-update | wc -l)
|
||||
FLATPAK_UPDATES=$(flatpak remote-ls --updates | wc -l)
|
||||
|
||||
if [[ -f /etc/debian_version ]]; then
|
||||
APT_UPDATES=$(sudo apt update >/dev/null && sudo apt list --upgradable | tr -d '\n' | wc -l)
|
||||
echo "[ APT: $APT_UPDATES ] [ Flatpak: $FLATPAK_UPDATES ]"
|
||||
elif [[ -f /etc/redhat-release ]]; then
|
||||
DNF_UPDATES=$(sudo dnf check-update | wc -l)
|
||||
echo "[ DNF: $DNF_UPDATES ] [ Flatpak: $FLATPAK_UPDATES ]"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
2
rofimaim
2
rofimaim
@ -33,6 +33,6 @@ esac
|
||||
|
||||
# The variable is used as a command's options, so it shouldn't be quoted.
|
||||
# shellcheck disable=2086
|
||||
maim --hidecursor --quiet --quality=3 --format='png' $extra_args "$screenshot_path" && {
|
||||
maim --hidecursor --quiet --quality=10 --format='png' $extra_args "$screenshot_path" && {
|
||||
notify-send --icon=org.xfce.screenshooter "Screenshot saved as $screenshot_path"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user