add conky app
parent
5d94860aa5
commit
0ba680ff88
@ -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
|
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
@ -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 &
|
@ -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
|
@ -0,0 +1 @@
|
|||||||
|
https://github.com/Botspot/rpi_conky
|
Loading…
Reference in New Issue