-
Notifications
You must be signed in to change notification settings - Fork 0
/
conkyrc
109 lines (88 loc) · 4.87 KB
/
conkyrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
out_to_x no
own_window no
out_to_console yes
background no
max_text_width 0
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
short_units yes
# How strict should if_up be when testing an interface for being up?
# The value is one of up, link or address, to check for the interface
# being solely up, being up and having link or being up, having link
# and an assigned IP address.
if_up_strictness address
# Add spaces to keep things from moving about? This only affects certain objects.
# use_spacer should have an argument of left, right, or none
use_spacer left
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# Stuff after 'TEXT' will be formatted on screen
TEXT
# JSON for i3bar
[
# Weather
{"markup":"pango", "full_text" : "${exec cat /tmp/weather_icon}", "separator" : false, "separator_block_width" : 0, "align" : "center"},
{"markup":"pango", "full_text" : "${exec /home/avano/.config/i3/weather.sh <city_here> <openweather_api_key_here>} ", "separator" : false, "separator_block_width" : 0, "align" : "center", "min_width" : "99.99°C "},
# CPU
{"markup":"pango", "full_text" : "<span color='\#7780a1'></span>", "separator" : false, "separator_block_width":0},
{"markup":"pango", "full_text" : "${cpu}%", "align":"center","color" : \
${if_match ${cpu}<49}"\#ffffff"${else}${if_match ${cpu}<80}"\#d7e63b"${else}"\#ee829f"${endif}${endif}, "min_width":"100%","separator":false},
# RAM
{"markup":"pango", "full_text" : "<span color='\#7780a1'></span>", "separator" : false, "separator_block_width":0},
{"markup":"pango", "full_text" : "${mem}" ,"align":"center", "color" : \
${if_match ${memperc}<49}"\#ffffff"${else}${if_match ${memperc}<80}"\#d7e63b"${else}"\#ee829f"${endif}${endif},"min_width":"22.22G",
"separator":false},
# Disk I/O
{"markup":"pango", "full_text" : "<span color='\#7780a1'>⇄</span>", "separator" : false, "separator_block_width":0},
{"markup":"pango", "full_text" : "${diskio /dev/sda}" , "align":"center","min_width":"100.00K", "color" :
"\#ffffff","separator":false},
# Free storage space in /home
{"markup":"pango", "full_text" : "<span color='\#7780a1'></span>", "separator" : false, "separator_block_width":0},
{"markup":"pango", "full_text" : "${fs_free /home} Free" , "color" : "\#ffffff","separator":false},
# Networking
{"markup":"pango", "full_text" : "<span color='\#7780a1'></span>", "separator" : false, "separator_block_width":0},
${if_up wlan0} {"markup":"pango", "full_text" : "${wireless_essid wlan0}" , "color" : "\#ffffff",
"separator":false}, ${else}\
${if_up eth0} {"markup":"pango", "full_text" : "${addr eth0}", "color" : "\#FFFFFF","separator":false}, ${else}\
{"markup":"pango", "full_text" : "Disconnected", "separator": false, "color" : "\#ee829f"},
${endif}\
${endif}\
# Down speed
{"markup":"pango", "full_text" : "<span color='\#7780a1'></span>", "separator" : false, "separator_block_width":0},
${if_up eth0}{"markup":"pango", "full_text":"${downspeed eth0}","color":"\#FFFFFF","min_width":"99.99b",
"separator":false},${else}\
${if_up wlan0}{"markup":"pango", "full_text":"${downspeed wlan0}","color":"\#FFFFFF","min_width":"99.99b",
"separator":false},
${endif}\
${endif}\
# Up speed
{"markup":"pango", "full_text" : "<span color='\#7780a1'></span>", "separator" : false, "separator_block_width":0},
${if_up eth0}{"markup":"pango", "full_text":"${upspeed eth0}","color":"\#FFFFFF","min_width":"99.99b",
"separator":false},${else}\
${if_up wlan0}{"markup":"pango", "full_text":"${upspeed wlan0}","color":"\#FFFFFF","min_width":"99.99b","separator":false},
${endif}\
${endif}\
# Battery
{"markup":"pango","full_text": "${exec /home/avano/.config/i3/battery.sh}", "separator":false},
# Volume
{"markup":"pango", "full_text" : "<span color='\#7780a1'></span>", "separator" : false, "separator_block_width":0},
{"markup":"pango", "full_text" : "${exec /home/avano/.config/i3/volume}", "color" : "\#ffffff",
"min_width":"MUTE ", "separator":false},
# Keyboard layout
{"markup":"pango", "full_text" : "<span color='\#7780a1'></span>", "separator" : false, "separator_block_width":0},
{"markup":"pango", "full_text" : "${exec setxkbmap -query | grep layout | tail -c 3} ", "color" : "\#ffffff",
"separator":false},
# Date
{"markup":"pango", "full_text" : "<span color='\#7780a1'></span>", "separator" : false, "separator_block_width":0},
{"markup":"pango", "full_text" : "${exec date +'%d.%m.%Y'}" , "color" : "\#ffffff","separator":false},
# Time
{"markup":"pango", "full_text" : "<span color='\#7780a1'></span>", "separator" : false, "separator_block_width":0},
{"markup":"pango", "full_text" : "${time %H:%M:%S}" , "color" : "\#ffffff","separator":false}
],