Skip to content

Commit

Permalink
Added installation and uninstallation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
zanterian committed May 16, 2012
1 parent 0f9ac76 commit 7950f6d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
15 changes: 14 additions & 1 deletion Zanty/current/configscripts/setup
Expand Up @@ -19,5 +19,18 @@ printf "Proceeding with setup";
mkdir ${HOME}/.conky;
# Move rcfiles over to the home folder --
cp ../*rc ${HOME}/.conky/;
cp ../lua/ ${HOME}/.conky/;
cp -R ../lua/ ${HOME}/.conky/;
# Generate the conky start script
touch ${HOME}/.start_conky;
echo "/usr/bin/conky -c ${HOME}/.conky/conkyrc" >> ${HOME}/.start_conky;
echo "/usr/bin/conky -c ${HOME}/.conky/memrc" >> ${HOME}/.start_conky;
echo "/usr/bin/conky -c ${HOME}/.conky/swaprc" >> ${HOME}/.start_conky;
echo "/usr/bin/conky -c ${HOME}/.conky/networkrc" >> ${HOME}/.start_conky;
echo "/usr/bin/conky -c ${HOME}/.conky/signalrc" >> ${HOME}/.start_conky;
echo "/usr/bin/conky -c ${HOME}/.conky/cpu0rc" >> ${HOME}/.start_conky;
echo "/usr/bin/conky -c ${HOME}/.conky/cpu15rc" >> ${HOME}/.start_conky;
echo "/usr/bin/conky -c ${HOME}/.conky/cpu26rc" >> ${HOME}/.start_conky;
echo "/usr/bin/conky -c ${HOME}/.conky/cpu37rc" >> ${HOME}/.start_conky;
echo "/usr/bin/conky -c ${HOME}/.conky/cpu48rc" >> ${HOME}/.start_conky;
chmod +x ${HOME}/.start_conky;
echo "complete"
5 changes: 3 additions & 2 deletions Zanty/current/configscripts/uninstall
@@ -1,6 +1,6 @@
#!/bin/sh
echo "This will uninstall all files in ${HOME}/.conky/";
echo "Proceed? [y/n]";
printf "Proceed? [y/n] ";
read resp;
if [ $resp != 'y' ]
then
Expand All @@ -9,4 +9,5 @@ if [ $resp != 'y' ]
fi;
echo "Proceeding with removal";
rm -rf ${HOME}/.conky/;
echo "Complete";
rm -rf ${HOME}/.start_conky;
echo "Complete";
6 changes: 3 additions & 3 deletions Zanty/current/lua/rings1.lua
Expand Up @@ -188,9 +188,9 @@ function conky_bandwidth(x)
end

function conky_wireless_strength(x)
local starting_point = 3*math.pi / 2
conky_ring(3, (tonumber(x)-3)/2, 0.56, 0.01, 0.99, 1.0, starting_point, tonumber(conky_parse("${wireless_link_qual_perc wlan0}"))/100)
conky_ring(3, (tonumber(x)-3)/2, 0.43, 0.43, 0.43, 0.2, starting_point, 1)
local starting_point = 3*math.pi / 2
conky_ring(3, (tonumber(x)-3)/2, 0.56, 0.01, 0.99, 1.0, starting_point, tonumber(conky_parse("${wireless_link_qual_perc wlan0}"))/100)
conky_ring(3, (tonumber(x)-3)/2, 0.43, 0.43, 0.43, 0.2, starting_point, 1)
end

function conky_cairo_cleanup()
Expand Down

0 comments on commit 7950f6d

Please sign in to comment.