-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconkyrc.symlink
executable file
·184 lines (172 loc) · 4.46 KB
/
conkyrc.symlink
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
red = "#ff0000"
blue = "#2E9AFE"
conky.config = {
out_to_x = false,
own_window = false,
out_to_console = true,
background = false,
max_text_width = 0,
-- Update interval in seconds
update_interval = 1,
-- 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 = true,
-- 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 = false,
-- number of cpu samples to average
-- set to 1 to disable averaging
cpu_avg_samples = 2,
-- Stuff after 'TEXT' will be formatted on screen
};
conky.text = [[
# JSON for i3bar
[
# Keyboard Status
{
"full_text":" ",
"color": ${if_match ${exec $HOME/.scripts/keyboard-status.sh} > 0}"\#00FF00"${else}"\#FF0000"${endif},
"separator":false,
"separator_block_width":6
},\
# Pacman
{
"full_text":" ",
"color": ${if_match ${execi 200 checkupdates | wc -l} > 0}"\#AEB404"${else}"\#2E9AFE"${endif},
"separator":false,
"separator_block_width":6
},\
{
"full_text":"[${execi 200 checkupdates | wc -l}]",
"color":"\#FFFFFF",
"separator_block_width":12
},\
# AUR
{
"full_text":" ",
"color":${if_match ${execi 1900 cower -u | wc -l} > 0}"\#AEB404"${else}"\#2E9AFE"${endif},
"separator":false,
"separator_block_width":6
},\
{
"full_text":"[${execi 1900 cower -u | wc -l}]",
"color":"\#FFFFFF",
"separator_block_width":12
},\
# Free Space
{
"full_text": " ",
"color" : "\#268BD2",
"separator": false,
"separator_block_width":6
},
{
"full_text": "${fs_free /home} / ${fs_size /home}",
"color" : "\#FFFFFF",
"separator_block_width":12
},
# Wifi
{
"full_text":" ",
"color":"\#00FF00",
"separator": false,
"separator_block_width":6
},
{
"full_text":"${upspeed wlp2s0}",
"color":"\#FFFFFF",
"separator_block_width":12
},
{
"full_text":" ",
"color":"\#00FF00",
"separator": false,
"separator_block_width":6
},
{
"full_text":"${downspeed wlp2s0}",
"color":"\#FFFFFF",
"separator_block_width":12
},
# RAM Usage
{
"full_text":" ",
"color":${if_match ${memperc}<90}"\#00FF00"${else}"\#ff0000"${endif},
"separator":false,
"separator_block_width":6
},
{
"full_text": "${memperc}%",
"color": ${if_match ${memperc}<90}"\#FFFFFF"${else}"\#ff0000"${endif},
"separator_block_width":12
},
# Battery
{
"full_text":" ",
"color" : ${if_match ${battery_percent BAT0}<25}"\#ff0000"${else}${if_match ${battery_percent BAT0}<75}"\#F7FE2E"${else}"\#00ff00"${endif}${endif},
"separator":false
},
{
"full_text":"[${battery_percent BAT0}%]",
"color":"\#FFFFFF",
"separator_block_width":12
},\
#Brightness
{
"full_text":" ",
"color":"\#2E9AFE",
"separator":false,
"separator_block_width":6
},\
{
"full_text":"[${exec xbacklight| awk '{printf("%d\n",$1 + 0.5)}'}%]",
"color":"\#FFFFFF",
"separator_block_width":12
},\
# Sound
{
"full_text":" ",
"color":"\#268BD2",
"separator":false,
"separator_block_width":6
},
{
"full_text":"${exec amixer | grep Front\ Left:\ Playback | cut -d " " -f7} ",
"color":"\#FFFFFF",
"separator_block_width":12
},
# Date
{
"full_text":" ",
"color":"\#2E9AFE",
"separator":false,
"separator_block_width":6
},
{
"full_text":"${time %a %b %d}",
"color":"\#FFFFFF",
"separator_block_width":12
},
# Time
{
"full_text":" ",
"color":"\#2E9AFE",
"separator":false,
"separator_block_width":6
},
{
"full_text":"${time %H:%M:%S}",
"color":"\#FFFFFF",
"separator_block_width":12
}
],
]];