~linkat/+junk/linkat-linkat-conky-corporatiu.18.04

« back to all changes in this revision

Viewing changes to debian/linkat-conky-corporatiu/usr/share/linkat/linkat-conky-corporatiu/linkat-conky-corporatiu.conf

  • Committer: Projecte Linkat
  • Date: 2022-10-18 13:17:00 UTC
  • Revision ID: linkat@xtec.cat-20221018131700-37f2ew76ybzfivy0
updated source

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
conky.config = {
 
2
    alignment = 'bottom_right',
 
3
    background = false,
 
4
    border_width = 1,
 
5
    cpu_avg_samples = 2,
 
6
        default_color = 'black',
 
7
    default_outline_color = 'black',
 
8
    default_shade_color = 'black',
 
9
    draw_borders = false,
 
10
    draw_graph_borders = true,
 
11
    draw_outline = false,
 
12
    draw_shades = false,
 
13
    use_xft = true,
 
14
    font = 'DejaVu Sans Mono:size=12',
 
15
    net_avg_samples = 2,
 
16
    no_buffers = true,
 
17
    out_to_console = false,
 
18
    out_to_stderr = false,
 
19
    extra_newline = false,
 
20
    own_window = true,
 
21
    own_window_class = 'Conky',
 
22
    own_window_type = 'dock',
 
23
    own_window_hints='undecorated, below, sticky, skip_taskbar, skip_pager',
 
24
    own_window_transparent=true,
 
25
    own_window_argb_visual=true,
 
26
    stippled_borders = 0,
 
27
    update_interval = 10.0,
 
28
    gap_x = 50,
 
29
    gap_y = 50
 
30
}
 
31
 
 
32
conky.text = [[
 
33
${color white}     Servei d'Atenció a l'Usuari
 
34
$hr
 
35
 
 
36
${color white}Telèfon: 900 82 82 82 (4)
 
37
${color white}Correu: sau.tic@gencat.cat
 
38
 
 
39
${color white}Id. Equip: $nodename
 
40
${color white}Sace: ${exec cat /opt/configuracio/sace}
 
41
${color white}Versió: ${exec lsb_release -dc |grep Description | cut -d ":" -f 2 | sed -e "s/Ubuntu/Linkat/g" | sed -e 's/^[\t]*//'}
 
42
${if_existing /sys/class/net/_ETH_/operstate up}${color white}Adreça IP: ${addr _ETH_}
 
43
Connexió: Cable
 
44
Adreça MAC: ${execi 99999 cat /sys/class/net/_ETH_/address}
 
45
${else}${if_existing /sys/class/net/_WLAN_/operstate up}${color white}Adreça IP: ${addr _WLAN_}
 
46
Connexió: Wifi
 
47
Adreça MAC: ${execi 99999 cat /sys/class/net/_WLAN_/address}
 
48
${else}Adreça IP: No disponible
 
49
Connexió: No disponible
 
50
Adreça MAC: No disponible
 
51
${endif}
 
52
${endif}
 
53
]]