Changes to user configs, minor improvments

This commit is contained in:
natemaia 2017-12-20 19:48:15 -08:00
parent 594f6ed000
commit 56cb3065e5
2 changed files with 9 additions and 9 deletions

View File

@ -173,12 +173,12 @@
</item> </item>
<item label="Root File Manager"> <item label="Root File Manager">
<action name="Execute"> <action name="Execute">
<command>gksudo thunar</command> <command>gksu thunar</command>
</action> </action>
</item> </item>
<item label="GParted"> <item label="GParted">
<action name="Execute"> <action name="Execute">
<command>gksudo gparted</command> <command>gksu gparted</command>
</action> </action>
</item> </item>
</menu> </menu>

View File

@ -6,29 +6,29 @@ ICON=/usr/share/icons/gnome/32x32/apps/system-software-update.png
while true; do while true; do
count=$(checkupdates | wc -l) count=$(checkupdates | wc -l)
if hash notify-send &>/dev/null; then if hash notify-send &>/dev/null; then
if [[ $count > 50 ]]; then if [[ $count -gt 50 ]]; then
notify-send -u critical -i $ICON \ notify-send -u critical -i $ICON \
"You really need to update soon!!" "$count New package updates" "You really need to update soon!!" "$count New package updates"
elif [[ $count > 25 ]]; then elif [[ $count -gt 25 ]]; then
notify-send -u normal -i $ICON \ notify-send -u normal -i $ICON \
"You should update soon" "$count New package updates" "You should update soon" "$count New package updates"
elif [[ $count > 2 ]]; then elif [[ $count -gt 2 ]]; then
notify-send -u low -i $ICON \ notify-send -u low -i $ICON \
"$count New package updates" "$count New package updates"
fi fi
fi fi
while [[ $count > 0 ]]; do while [[ $count -gt 0 ]]; do
if [[ $count == 1 ]]; then if [[ $count -eq 1 ]]; then
echo "$count Update" echo "$count Update"
elif [[ $count > 1 ]]; then elif [[ $count -gt 1 ]]; then
echo "$count Updates" echo "$count Updates"
fi fi
sleep 8 sleep 8
count=$(checkupdates | wc -l) count=$(checkupdates | wc -l)
done done
while [[ $count == 0 ]]; do while [[ $count -eq 0 ]]; do
echo $BAR_ICON echo $BAR_ICON
sleep 1200 sleep 1200
count=$(checkupdates | wc -l) count=$(checkupdates | wc -l)