-
Notifications
You must be signed in to change notification settings - Fork 3
/
conkyrc
96 lines (95 loc) · 3.51 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
conky.config = {
out_to_x = false,
out_to_console = true,
update_interval = 1.0,
total_run_times = 0,
use_spacer = none,
use_xft = true,
override_utf8_locale = true,
font = 'xos4 Terminus:style=Regular:pixelsize=24:antialias=true',
};
conky.text = [[
${if_existing .update_count}\
^fg(\#af5f00)^bg(\#af5f00)^fg(\#262626)^i(.dzen/bitmap/net_up_02.xbm) ${exec cat ~/.update_count} \
${endif}\
^fg(\#262626)^bg(\#262626)^fg(\#bcbcbc) ${kernel} \
${if_match ${cpu} >=90}\
^fg(\#cc6666)^bg(\#cc6666)^fg(\#e4e4e4)^i(.dzen/bitmap/cpu.xbm) \
${else}${if_match ${cpu} >=70}\
^fg(\#f0c674)^bg(\#f0c674)^fg(\#262626)^i(.dzen/bitmap/cpu.xbm) \
${else}\
^fg(\#b5bd68)^bg(\#b5bd68)^fg(\#262626)^i(.dzen/bitmap/cpu.xbm) \
${endif}${endif}\
${cpu}%\
${if_match ${hwmon temp 2} >=70}\
^fg(\#cc6666)^bg(\#cc6666)^fg(\#e4e4e4)^i(.dzen/bitmap/temp.xbm) \
${else}${if_match ${hwmon temp 2} >=60}\
^fg(\#f0c674)^bg(\#f0c674)^fg(\#262626)^i(.dzen/bitmap/temp.xbm) \
${else}\
^fg(\#b5bd68)^bg(\#b5bd68)^fg(\#262626)^i(.dzen/bitmap/temp.xbm) \
${endif}${endif}\
${hwmon temp 2}°C \
^fg(\#262626)^bg(\#262626)^fg(\#bcbcbc)^i(.dzen/bitmap/fs_01.xbm) ${loadavg 1} \
${if_match ${memperc} >=90}\
^fg(\#cc6666)^bg(\#cc6666)^fg(\#e4e4e4)^i(.dzen/bitmap/mem.xbm) \
${else}${if_match ${memperc} >=70}\
^fg(\#f0c674)^bg(\#f0c674)^fg(\#262626)^i(.dzen/bitmap/mem.xbm) \
${else}\
^fg(\#b5bd68)^bg(\#b5bd68)^fg(\#262626)^i(.dzen/bitmap/mem.xbm) \
${endif}${endif}\
${memperc}% \
${if_match ${swapperc} >=80}\
^fg(\#cc6666)^bg(\#cc6666)^fg(\#e4e4e4)\
${else}${if_match ${swapperc} >0}\
^fg(\#f0c674)^bg(\#f0c674)^fg(\#262626)\
${else}\
^fg(\#b5bd68)^bg(\#b5bd68)^fg(\#262626)\
${endif}${endif}\
${swapperc}% \
^fg(\#262626)^bg(\#262626)^fg(\#bcbcbc)\
${if_up enp4s0}\
^i(.dzen/bitmap/net_down_03.xbm) ${downspeedf enp4s0} KiB \
${endif}\
^i(.dzen/bitmap/spkr_01.xbm) ${execp ~/bin/soundkeys.py volume}% \
${if_match "${hddtemp /dev/sda}" == "N/A"}${else}\
^i(.dzen/bitmap/temp.xbm) sda ${hddtemp /dev/sda}°C \
${endif}\
${if_match "${hddtemp /dev/sdb}" == "N/A"}${else}\
^i(.dzen/bitmap/temp.xbm) sdb ${hddtemp /dev/sdb}°C \
${endif}\
${if_match ${fs_used_perc /home} >=75}\
^fg(\#cc6666)^bg(\#cc6666)^fg(\#e4e4e4)\
${else}${if_match ${fs_used_perc /home} >=60}\
^fg(\#f0c674)^bg(\#f0c674)^fg(\#262626)\
${else}\
^fg(\#b5bd68)^bg(\#b5bd68)^fg(\#262626)\
${endif}${endif}\
^i(.dzen/bitmap/diskette.xbm) ${fs_used_perc /home}% \
^fg(\#262626)^bg(\#262626)\
${if_running spotify}\
${if_match "${execp ~/bin/spotify-monitor.py playback}" == "Playing"}\
^fg(\#b5bd68)^bg(\#b5bd68)^fg(\#262626)^i(.dzen/bitmap/note.xbm) \
${endif}\
${if_match "${execp ~/bin/spotify-monitor.py playback}" == "Paused"}\
^fg(\#f0c674)^bg(\#f0c674)^fg(\#262626)^i(.dzen/bitmap/pause.xbm) \
${endif}\
${if_match "${execp ~/bin/spotify-monitor.py playback}" == "Stopped"}\
^fg(\#cc6666)^bg(\#cc6666)^fg(\#e4e4e4)^i(.dzen/bitmap/stop.xbm) \
${endif}\
${execp ~/bin/spotify-monitor.py playing} \
${else} ${if_running mpd}\
${if_match "${mpd_status}" == "Playing"}\
^fg(\#b5bd68)^bg(\#b5bd68)^fg(\#262626)^i(.dzen/bitmap/note.xbm) \
${endif}\
${if_match "${mpd_status}" == "Paused"}\
^fg(\#f0c674)^bg(\#f0c674)^fg(\#262626)^i(.dzen/bitmap/pause.xbm) \
${endif}\
${if_match "${mpd_status}" == "Stopped"}\
^fg(\#cc6666)^bg(\#cc6666)^fg(\#e4e4e4)^i(.dzen/bitmap/stop.xbm) \
${endif} \
${mpd_smart} \
${if_mpd_playing}\
(${mpd_elapsed}/${mpd_length})\
${endif}\
${endif}\
]];