Commit 15b794e2 authored by D Inc's avatar D Inc Committed by GitHub
Browse files

Merge pull request #11 from xKydx/conky-branch

update
parents a8a86e65 dca2fdd1
# conky-install
or ci.py
##Please extract .zip in ~/Downloads directory.
Thanks to friends that make things to do.
Python script to install conky files to the correct directory. (eg. /etc/conky/conky.conf)
#Thanks to:
## Please extract .zip in ~/Downloads directory.
http://gnome-look.org/
http://custom-linux.deviantart.com/
Python script to install conky files to the correct directory. (eg. /etc/conky/conky.conf)
and many others not listed. Without them this project would not be.
KYD and SIFF D.Inc
#!/usr/bin/python
# no pause.
import os
import sys
from sys import argv
usrnpt = argv
prompt = ".:|"
os.system('clear')
print ("Conky install script")
print("\n")
print("Press y to install the latest version of Conky or n to skip")
usrnpt = raw_input(prompt)
if 'y' in usrnpt:
os.system('sudo apt-get install conky-all')
else:
print ("Not Installed")
print("\n")
print("You now have the lattest Conky version")
print("\n")
print("\n")
print "Conkyname Install"
print("\n")
print("Your conky.conf file will be backedup to conky.back \n")
print("\n")
print ("Do you wish to backup your default conky file and install Conkyname now?")
print("\n")
print("""Press y to install n to skip.You will be asked for your admin password for this step.""")
usrnpt = raw_input(prompt)
if 'y' in usrnpt:
os.system("sudo cp /etc/conky/conky.conf /etc/conky/conky.back")
os.system("sudo cp ~/Downloads/BO3conkyrc /etc/conky/conky.conf")
else:
print ("Not Installed")
print("\n")
print("\n")
print ("Install Conkyname font now?")
usrnpt = raw_input(prompt)
if 'y' in usrnpt:
os.system('sudo cp fontname.ttf /etc/fonts/fontname.ttf')
else:
print ("Not Installed")
print("\n")
print("\n")
print ("Conkyname install script complete")
print("\n")
print ("You can start conky by typing 'conky' in a terminal window.")
print("\n")
#!/usr/bin/python
# no pause.
# Final edit
import os
import sys
......@@ -8,24 +8,12 @@ from sys import argv
usrnpt = argv
prompt = ".:|"
os.system('clear')
print ("Conky install script")
print("\n")
print("Press y to install conky file or n to quit")
usrnpt = raw_input(prompt)
if 'y' in usrnpt:
os.system('sudo apt-get install conky-all')
else:
print ("Not Installed")
os.system(exit)
print("\n")
print("Conky install complete.")
print("\n")
print "Black Ops 3 themed conky Install"
print("\n")
print "Conkyname Install"
print("Your conky.conf file will be backedup to conky.back in the next step \n")
print("\n")
print("Your conky.conf file will be backedup to conky.back \n")
print("\n")
print ("Install Conky file now?")
print ("Do you wish to install Black Ops 3 themed Conky file now?")
print("\n")
print("Press y to install n to skip")
usrnpt = raw_input(prompt)
......@@ -36,15 +24,10 @@ else:
print ("Not Installed")
print("\n")
print("\n")
print ("Install BO3 font now?")
usrnpt = raw_input(prompt)
if 'y' in usrnpt:
os.system('sudo cp agency-fb.ttf /etc/fonts/agency-fb.ttf')
else:
print ("Not Installed")
print ("Black Ops 3 themed conky install complete")
print("\n")
print ("You can start conky by typing 'conky' in a terminal window.")
print("\n")
print ("Conky BO3 Tweeked install script complete")
print("\n")
print ("You can start conky by typing 'conky' in a terminal window.")
print ("Thank you for using the Blacks Ops 3 CIS.")
print("\n")
# Author: Kyd
# Name : Black Ops 3 4core Tweeked
# license : Distributed under the terms of GNU GPL version 2 or later
#
#
use_xft yes
xftfont Agency FB:size=10
xftalpha 0.8
text_buffer_size 2048
update_interval 2.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar
double_buffer yes
minimum_size 100
maximum_width 250
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 0
default_color grey
color1 FF4500
color2 31F632
color3 3197F6
default_shade_color black
default_outline_color grey
own_window_colour white
alignment top_right
gap_x 0
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
TEXT
${color1}${font Agency FB:style=bold:size=14}Black Ops III ${hr 1}
${color}${font}Uptime: ${color1}${alignr}${uptime}
${color2}${font}NVidia ${color}GeForce ${color1}GPU ${color}$alignr ${nvidia gpufreq} Mhz
${color}${font}Memory $alignr ${nvidia memfreq} Mhz
${color1}${font}GPU Temp ${color}$alignr ${nvidia temp} °C
#${color}${font}Threshold${alignr}${color1}${nvidia threshold} °C
${color}CPU ${color}${alignr}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 1-39}
${color1}${font}CPU Temp${color}${alignr}${acpitemp}°C
${color}Running @${alignr}${color1}${freq cpu}${color} MHz
${color}CPU used${alignr}${cpu cpu}%
${color}Core 1 ${alignr}${cpu cpu1}%
${color}${cpugraph cpu1 20,250 FF4500 BD1810 -t}
${color}Core 2 ${alignr}${cpu cpu2}%
${color}${cpugraph cpu2 20,250 FF4500 BD1810 -t}
${color}Core 3 ${alignr}${cpu cpu3}%
${color}${cpugraph cpu3 20,250 FF4500 BD1810 -t}
${color}Core 4 ${alignr}${cpu cpu4}%
${color}${cpugraph cpu4 20,250 FF4500 BD1810 -t}
${color1}Top 5 Processes ${hr 1}
${color}Processes${goto 135}PID${goto 180}${color1}CPU% ${color}${alignr}MEM%
${color}${top name 1}${goto 130}${top pid 1}${goto 180}${top cpu 1}${alignr}${top mem 1}
${color}${top name 2}${goto 130}${top pid 2}${goto 180}${top cpu 2}${alignr}${top mem 2}
${color}${top name 3}${goto 130}${top pid 3}${goto 180}${top cpu 3}${alignr}${top mem 3}
${color}${top name 4}${goto 130}${top pid 4}${goto 180}${top cpu 4}${alignr}${top mem 4}
${color}${top name 5}${goto 130}${top pid 5}${goto 180}${top cpu 5}${alignr}${top mem 5}
#${color}${top name 6}${goto 130}${top pid 6}${goto 180}${top cpu 6}${alignr}${top mem 6}
#${color}${top name 7}${goto 130}${top pid 7}${goto 180}${top cpu 7}${alignr}${top mem 7}
#${color}${top name 8}${goto 130}${top pid 8}${goto 180}${top cpu 8}${alignr}${top mem 8}
#${color}${top name 9} ${alignr}${top pid 9} ${top cpu 9} ${top mem 9}
#${color}${top name 10} ${alignr}${top pid 10} ${top cpu 10} ${top mem 10}
${color1}MEM / DRIVESPACE ${hr 1}
${color}RAM: ${alignr}$mem / ${alignr}$memmax
${color}SWAP: ${alignr}$swap / ${alignr}$swapmax
${color1}MOUNT / HDD's ${color1}${hr 1}
${color}Root: ${alignr}${fs_used /} / ${alignr}${fs_size /}
${color}Available: ${color1}${fs_free_perc /}%
#${color}Home: ${alignr}${fs_used /home} / ${alignr}${fs_size /home}
#${color}Available: ${fs_free_perc /home}%
#
#
${color1}NETWORK ${color1}${hr 1}
${color}${upspeedgraph 20,250 FF4500 BD1810 -t}
${color}Up: ${alignr}${upspeed eth0}KB/s
${color}Total: ${alignr}${color1}${totalup eth0}
${color}${downspeedgraph 20,250 FF4500 BD1810 -t}
${color}Down: ${alignr}${downspeed eth0}KB/s
${color}Total: ${alignr}${color1}${totaldown eth0}
#
${color1}${hr 1}
#
${color}${font DejaVu Sans:size=12}${time %I:%M%p}${alignr}${time %A, %D}${font}
#
#==============================================================================
# base-conkyrc
#
# author : KYD
# version : v0.1
# license : Distributed under the terms of GNU GPL version 2 or later
#
#==============================================================================
use_xft yes
xftfont 911_porscha:size=8
xftalpha 0.8
text_buffer_size 2048
update_interval 2.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar
double_buffer yes
minimum_size 100
maximum_width 250
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 0
default_color DarkGrey
default_shade_color black
default_outline_color grey
own_window_colour DarkGrey
alignment top_right
gap_x 10
gap_y 20
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
TEXT
${color}${font}Uptime: ${color1}${alignr}${uptime}
${color}CPU Running @${alignr}${color1}${freq cpu}${color} MHz
${color}${font}CPU Temp ${alignr}${acpitemp}°C
${color}${font}HDD${alignr}${color1}${fs_free /}${color} / ${fs_size /}
${color3}Upload Speed:${color} ${alignr}${upspeed eth0}KB/s
${color}Total: ${alignr}${color1}${totalup eth0}
${color3}Download Speed:${color} ${alignr}${downspeed eth0}KB/s
${color}Total: ${alignr}${color1}${totaldown eth0}
# Author: Kyd
# Name : newconkyrc
# license : Distributed under the terms of GNU GPL version 2 or later
use_xft yes
xftfont Agency FB:size=10
xftalpha 0.8
text_buffer_size 2048
update_interval 5.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar
double_buffer yes
minimum_size 100
maximum_width 250
draw_shades no
draw_outline no
draw_borders no
stippled_borders 0
default_color grey
color1 205394
color2 B6DAE8
color3 3197F6
default_shade_color black
default_outline_color grey
own_window_colour white
alignment top_right
gap_x 0
gap_y 60
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
TEXT
${color1}${font Agency FB:style=bold:size=14}QNRB
${color}${font}Uptime: ${color1}${alignr}${uptime}
${color2}${font}NVidia ${color}Quadro ${color1}GPU ${color}$alignr ${nvidia gpufreq} Mhz
${color}${font}Memory $alignr ${nvidia memfreq} Mhz
${color1}${font}GPU Temp ${color}$alignr ${nvidia temp} °C
#${color}${font}Threshold${alignr}${color1}${nvidia threshold} °C
${color}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 10-50}
${color1}${font}CPU Temp${color}${alignr}${acpitemp}°C
${color}Running @${alignr}${color1}${freq cpu}${color} MHz
${color}CPU used${alignr}${cpu cpu}%
${color1}${hr 1}
${color}Core 1 ${alignr}${cpu cpu1}%
${color}${cpugraph cpu1 12,250 D6E8F2 14345B -l}
${color}Core 2 ${alignr}${cpu cpu2}%
${color}${cpugraph cpu2 12,250 D6E8F2 14345B -l}
${color}Core 3 ${alignr}${cpu cpu3}%
${color}${cpugraph cpu3 12,250 D6E8F2 14345B -l}
${color}Core 4 ${alignr}${cpu cpu4}%
${color}${cpugraph cpu4 12,250 D6E8F2 14345B -l}
${color1}Top 5 Processes ${hr 1}
${color}Processes${goto 135}PID${goto 180}${color1}CPU% ${color}${alignr}MEM%
${color}${top name 1}${goto 130}${top pid 1}${goto 180}${top cpu 1}${alignr}${top mem 1}
${color}${top name 2}${goto 130}${top pid 2}${goto 180}${top cpu 2}${alignr}${top mem 2}
${color}${top name 3}${goto 130}${top pid 3}${goto 180}${top cpu 3}${alignr}${top mem 3}
${color}${top name 4}${goto 130}${top pid 4}${goto 180}${top cpu 4}${alignr}${top mem 4}
${color}${top name 5}${goto 130}${top pid 5}${goto 180}${top cpu 5}${alignr}${top mem 5}
${color1}MEM / DRIVESPACE ${hr 1}
${color}RAM: ${alignr}$mem / ${alignr}$memmax
${color}SWAP: ${alignr}$swap / ${alignr}$swapmax
${color1}MOUNT / HDD's ${color1}${hr 1}
${color}Root: ${alignr}${fs_used /} / ${alignr}${fs_size /}
${color}Available: ${color3}${fs_free_perc /}%
#${color}Home: ${alignr}${fs_used /home} / ${alignr}${fs_size /home}
#${color}Available: ${fs_free_perc /home}%
${color1}Network: ${hr 1}
${color}External IP: ${exec curl -s www.icanhazip.com}
${color}Internal IP:${if_existing /proc/net/route eth0}${addr eth0}${color3} LAN${color}
Inbound ${alignr}${downspeed eth0}kb/s
${downspeedgraph eth0 10,250 D6E8F2 14345B -t}
Outbound ${alignr}${upspeed eth0}kb/s
${upspeedgraph eth0 10,250 D6E8F2 14345B -t}
${else}
${addr wlan0}${color3} WLAN${color}
Inbound ${alignr} ${downspeed wlan0} kb/s
${downspeedgraph wlan0 10,250 D6E8F2 14345B -t}
Outbound ${alignr}${upspeed wlan0} kb/s
${upspeedgraph wlan0 10,250 D6E8F2 14345B -t}
${else}
${color}Network disconnected${else}${endif}${endif}
${color}Total LAN Download: ${alignr}${color1}${totaldown eth0}
${color}Total LAN Upload: ${alignr}${color1}${totalup eth0}
${color}Total WLAN Download: ${alignr}${color1}${totaldown wlan0}
${color}Total WLAN Upload: ${alignr}${color1}${totalup wlan0}
${color1}${hr 1}
${color1}${font DejaVu Sans:size=8}${alignc}QNRB
#${time %I:%M%p}${alignr}${time %A, %D}${font}
......@@ -15,7 +15,9 @@ print "Multiple conkyrc file Python installer script"# Name of Conky
print("\n")
print "Please choose your conky from this list"# Name of Conky
print("""KYD_Grey_conkyrc
Siff_Grey_conkyrc """)
Siff_Grey_conkyrc
Mini-conkyrc
QNRBconkyrc """)
print("\n")
print("\n")
usrnpt = raw_input(prompt)
......@@ -23,6 +25,10 @@ if 'S' in usrnpt:
os.system("sudo cp ~/Downloads/ci-v0.2/Siff_Grey_conkyrc /etc/conky/conky.conf")# EG: sudo cp ~/Downloads/conkyrc /etc/conky/conky.conf
if 'k' in usrnpt:
os.system("sudo cp ~/Downloads/ci-v0.2/KYD_Grey_conkyrc /etc/conky/conky.conf")# EG: sudo cp ~/Downloads/conkyrc /etc/conky/conky.conf
if 'q' in usrnpt:
os.system("sudo cp ~/Downloads/ci-v0.2/QNRBconkyrc /etc/conky/conky.conf")# EG: sudo cp ~/Downloads/conkyrc /etc/conky/conky.conf
if 'm' in usrnpt:
os.system("sudo cp ~/Downloads/ci-v0.2/Mini-conkyrc /etc/conky/conky.conf")# EG: sudo cp ~/Downloads/conkyrc /etc/conky/conky.conf
else:
print ("Not Installed")
print("Please re-run the script and try again")
......@@ -32,14 +38,14 @@ print("\n")
## Uncomment if your installing a font with your conky.
## No need if your not.
#print ("Install font now?")
#usrnpt = raw_input(prompt)
#if 'y' in usrnpt:
# os.system('sudo cp Font-name.ttf /etc/fonts/Font-name.ttf')#replace Name of font.
#else:
# print ("Not Installed")
#print("\n")
#print("\n")
print ("Install font now?")
usrnpt = raw_input(prompt)
if 'y' in usrnpt:
os.system('sudo cp Font-name.ttf /etc/fonts/Font-name.ttf')#replace Name of font.
else:
print ("Not Installed")
print("\n")
print("\n")
print ("Multi-conky install script complete")# Name of conky
print("\n")
print ("You can start conky by typing 'conky' in a terminal window.")
......
#!/usr/bin/python
# Python script to install conky files
#
import os
import sys
from sys import argv
usrnpt = argv
prompt = ".:|"
os.system('clear')
print "Name-of-Conky-to-be-installed-here"# Name of Conky
print("\n")
print("\n")
print ("Install Conky file now?")
print("WARNING This will overwrite your default conky.conf file")
print("Type no to cancel")
usrnpt = raw_input(prompt)
if 'y' in usrnpt:
os.system("sudo cp /NAME/OF/DIRECTORY/filename /etc/conky/conky.conf")
# Default: sudo cp ~/Downloads/ic-v0.1/conkyrc /etc/conky/conky.conf
if 'no' in usrnpt:
print ("Not Installed")
print ("Install script not complete")
os.system(CTRL-C)
print("\n")
print("\n")
## Uncomment if your installing a font with your conky.
## No need if your not.
#print ("Install font now?")
#usrnpt = raw_input(prompt)
#if 'y' in usrnpt:
# os.system('sudo cp Font-name.ttf /etc/fonts/Font-name.ttf')#replace Font-name.ttf.
#else:
# print ("Not Installed")
#print("\n")
#print("\n")
print ("Name-Of-Conky install script complete")# Name of conky
print("\n")
print ("You can start conky by typing 'conky' in a terminal window.")
print("\n")
#!/usr/bin/python
# Python script to install multiple conky files.
#
import os
import sys
from sys import argv
usrnpt = argv
prompt = ".:|"
os.system('clear')
print "Multiple conkyrc file Python installer script"
print("\n")
print "Please choose your conky from this list"# Name of Conky
print("""KYD_Grey_conkyrc
Siff_Grey_conkyrc """)
print("\n")
print("\n")
usrnpt = raw_input(prompt)
if 'Siff' in usrnpt:
os.system("sudo cp ~/Downloads/Siff_Grey_conkyrc /etc/conky/conky.conf")# EG: sudo cp ~/Downloads/conkyrc /etc/conky/conky.conf
if 'KYD' in usrnpt:
os.system("sudo cp ~/Downloads/KYD_Grey_conkyrc /etc/conky/conky.conf")# EG: sudo cp ~/Downloads/conkyrc /etc/conky/conky.conf
else:
print ("Not Installed")
print("Please re-run the script and try again")
print("\n")
print("\n")
print("Please re-run the script and try again")
## Uncomment if your installing a font with your conky.
## No need if your not.
#print ("Install font now?")
#usrnpt = raw_input(prompt)
#if 'y' in usrnpt:
# os.system('sudo cp Font-name.ttf /etc/fonts/Font-name.ttf')#replace Name of font.
#else:
# print ("Not Installed")
#print("\n")
#print("\n")
print ("Multi-conky install script complete")# Name of conky
print("\n")
print ("You can start conky by typing 'conky' in a terminal window.")
print("\n")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment