checkupdates script translation, TODO

This commit is contained in:
Daniel Napora 2022-05-20 13:45:52 +02:00
parent 1afe50cced
commit 2535bfcd83
3 changed files with 44 additions and 7 deletions

9
TODO.md Normal file
View File

@ -0,0 +1,9 @@
### Short term
- color select submenu - configurable exposed palette: wallpaper or palette from Color Menu (built-in or custom)
- documentation (About and help)
### Later
- autogenerated colorschemes from wallpaper colors (light and dark) for menus and conkies
- scripts to handle tint2 panel
- colorize "folder" icons
- GTK theme (if possible)

View File

@ -8,6 +8,33 @@ CNF_DIR="$HOME/.config/colorizer/conky"
CNF_FILE="$CNF_DIR/conky.cfg"
source <(grep = $CNF_FILE)
case "$LANG" in
pl*)
AVAIL_UPDATES="Dostępne aktualizacje"
UPTODATE="System jest aktualny"
PKGS_TO_UPDATE="Pakiety do aktualizacji:"
YAY_UPD="Użyj yay (cli)"
PAMAC_UPD="Użyj Pamac (GUI)"
DISABLE="Wyłącz powiadomienia"
;;
es*)
AVAIL_UPDATES="Available updates"
UPTODATE="System is up to date"
PKGS_TO_UPDATE="Packages to update:"
YAY_UPD="Update with yay (cli)"
PAMAC_UPD="Update with Pamac (GUI)"
DISABLE="Disable notifications"
;;
*)
AVAIL_UPDATES="Available updates"
UPTODATE="System is up to date"
PKGS_TO_UPDATE="Packages to update:"
YAY_UPD="Update with yay (cli)"
PAMAC_UPD="Update with Pamac (GUI)"
DISABLE="Disable notifications"
;;
esac
case "$1" in
-s)
CONKYPID=$(pgrep -f sysinfo_mbcolor)
@ -25,13 +52,13 @@ if [ -f /tmp/"$CONKYPID" ]; then
PKGS=$(pamac checkupdates -aq| wc -l)
if [ "$PKGS" != "0" ]; then
if [[ "$update_notifications" == "true" ]];then
notify-send.sh -i mbcc "Updates available" "Packages to update: $PKGS" -o "Update with yay (cli):terminator -T 'Update packages with yay' -e yay" \
-o "Update with Pamac (GUI):pamac-manager --updates" -o "Disable notifications:mb-setvar update_notifications=false ${CNF_FILE}"
notify-send.sh -t 10000 -i mbcc "$AVAIL_UPDATES" "$PKGS_TO_UPDATE $PKGS" -o "$YAY_UPD:terminator -T '$YAY_UPD' -e yay" \
-o "$PAMAC_UPD:pamac-manager --updates" -o "$DISABLE:mb-setvar update_notifications=false ${CNF_FILE}"
fi
printf "\${font}\${alignr} Available updates: \${color red}"
printf "\${font}\${alignr} $AVAIL_UPDATES: \${color red}"
echo "$PKGS"
else
printf "\${font}\${color}\${alignr} System is up to date :)"
printf "\${font}\${color}\${alignr} $UPTODATE"
fi
else
echo "$SUM" > /tmp/${CONKYPID}

View File

@ -1,3 +1,4 @@
conky -c ~/.config/conky/shortcuts_mbcolor.conkyrc & sleep 1s
conky -c ~/.config/conky/sysinfo_mbcolor.conkyrc & sleep 1s
conky -c ~/.config/conky/logo_mbcolor.conkyrc & sleep 1s
conky -c ~/.config/conky/shortcuts_mbcolor.conkyrc & sleep .5
conky -c ~/.config/conky/sysinfo_mbcolor.conkyrc & sleep .5
conky -c ~/.config/conky/logo_mbcolor.conkyrc & sleep .5
conky -c ~/.config/conky/mabox_tools_mbcolor.conkyrc & sleep .5