diff --git a/apps/Conky/description b/apps/Conky/description new file mode 100644 index 0000000..4db3673 --- /dev/null +++ b/apps/Conky/description @@ -0,0 +1,4 @@ +Monitors CPU, RAM, disk usage, and more. +This sits on your desktop, refreshing once a second, with pretty graphs showing you all you need to know. +To run: it should autostart on boot. +To run in a terminal: conky diff --git a/apps/Conky/icon-24.png b/apps/Conky/icon-24.png new file mode 100644 index 0000000..b6ee2ac Binary files /dev/null and b/apps/Conky/icon-24.png differ diff --git a/apps/Conky/icon-64.png b/apps/Conky/icon-64.png new file mode 100644 index 0000000..e38cb46 Binary files /dev/null and b/apps/Conky/icon-64.png differ diff --git a/apps/Conky/install b/apps/Conky/install new file mode 100755 index 0000000..ec40677 --- /dev/null +++ b/apps/Conky/install @@ -0,0 +1,30 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")" +function error { + echo -e "\e[31m$1\e[39m" + exit 1 +} + +#use the error function often! +#If a certain command is necessary for installation to continue, then add this to the end of it: +# || error 'reason' +#example below: +wget -O ~/.conkyrc https://raw.githubusercontent.com/Botspot/rpi_conky/master/conkyrc || error 'Failed to download conkyrc!!' + +# Get dependencies +"${DIRECTORY}/pkg-install" "conky" "$(dirname "$0")" || exit 1 + +mkdir -p ~/.config/autostart +echo -n '' > ~/.config/autostart/conky.desktop +echo "[Desktop Entry] +Name=Conky +Type=Application +Exec=bash -c 'sleep 5;conky' +Terminal=false +Icon=${DIRECTORY}/apps/Conky/icon-64.png +Comment=system monitoring tool. +Categories=Utility;" > ~/.config/autostart/conky.desktop + +#run conky +conky & diff --git a/apps/Conky/uninstall b/apps/Conky/uninstall new file mode 100755 index 0000000..3370eab --- /dev/null +++ b/apps/Conky/uninstall @@ -0,0 +1,14 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")" +function error { + echo -e "\e[31m$1\e[39m" + exit 1 +} + +#if your app installs any packages, keep this command here so those packages will be removed. +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 + +rm -f ~/.config/autostart/conky.desktop ~/.conkyrc || error "Failed to remove autostart file or .conkyrc!" + +killall conky 2>/dev/null diff --git a/apps/Conky/website b/apps/Conky/website new file mode 100644 index 0000000..28e8c33 --- /dev/null +++ b/apps/Conky/website @@ -0,0 +1 @@ +https://github.com/Botspot/rpi_conky