]> git.friedersdorff.com Git - max/dotfiles.git/blob - sway/.conkyrc
Show whitespace in vim
[max/dotfiles.git] / sway / .conkyrc
1 -- vim: ts=4 sw=4 noet ai cindent syntax=lua
2
3 conky.config = {
4         out_to_x = false,
5         own_window = false,
6         out_to_console = true,
7         short_units = true,
8         update_interval = 0.5,
9         background = false,
10         max_text_width = 0,
11         total_run_times = 0,
12         short_units = true,
13         if_up_strictness = 'address',
14         use_spacer = 'left',
15
16         cpu_avg_samples = 2,
17 };
18
19 conky.text = [[
20 [
21   ${if_running mutt} 
22     {"full_text": "${new_mails mail_aber/Inbox} new mails", "color": "\#ffa500"},
23   ${endif}
24   {"full_text": "Home ${fs_free /home} Free", "color": "\#ffffff"},
25   {"full_text": "Root ${fs_free /root} Free", "color": "\#ffffff"},
26   {"full_text": "Disk r:${diskio_read} w:${diskio_write}", "color": "\#ffffff"},
27   {"full_text": "CPU ${cpu cpu0}%", "color": "\#ffffff"},
28   ${if_match "${nodename_short}"=="magnesium"}
29     {
30       "full_text": "d:${downspeed eno1} u:${upspeed eno1} ${addr eno1}", 
31       "color":
32         ${if_match "${addr eno1}"=="No Address"}
33           "\#ff0000"
34         ${else}
35           "\#00ff00"
36         ${endif}
37     },
38   ${endif}
39   ${if_match "${nodename_short}"=="platinum"}
40     {
41       "full_text": "d:${downspeed wlp2s0} u:${upspeed wlp2s0} ${addr wlp2s0}", 
42       "color":
43         ${if_match "${addr wlp2s0}"=="No Address"}
44           "\#ff0000"
45         ${else}
46           "\#00ff00"
47         ${endif}
48     },
49   ${endif}
50   ${if_match "${addr tun0}"!="No Address"}
51         {"full_text": "VPN", "color": "\#00ff00"},
52   ${endif}
53   {
54         "full_text": "RAM ${memperc}%", 
55         "color": 
56           ${if_match ${memperc}<90}
57             "\#ffffff"
58           ${else}
59                 "\#ff0000"
60           ${endif} 
61   },
62   ${if_match "${nodename_short}"=="platinum"}
63         {
64           "full_text": "BAT ${battery_short} ${battery_time}", 
65           "color": 
66           ${if_match ${battery_percent}<20}
67             "\#ff0000"
68           ${else}
69                 "\#00ff00"
70           ${endif}
71         },
72   ${endif}
73   {"full_text": "${time}", "color": "\#ffffff"}
74 ],
75 ]];
76