005 Conky progettato per visualizzare informazioni relative al Sistema Operativo

1 Novembre, 2022 (14:26) | conky, Linux | By: sargonsei

--[[  Conky progettato per visualizzare informazioni relative al Sistema Operativo.
      conky -c /mnt/Dati1/conky2022/conkyEsaminaSO &
      Informazioni utili:
      http://conky.sourceforge.net/config_settings.html
      https://ubuntuforums.org/showthread.php?t=281865&page=2346
      http://www.ubaweb.it/miniguide/conky.php
      https://wiki.manjaro.org/index.php?title=Basic_Tips_for_conky
      https://wiki.archlinux.org/index.php/Conky_(Italiano)
      [Tutorial – Linux] Alla scoperta di Conky (Configurazione delle opzioni generali)
]] 
conky.config = {
-- ------------------------- Windows Settings
    own_window = true,
    own_window_transparent = no,
    own_window_argb_visual = true,
    own_window_argb_value = 255,
    own_window_colour = 'black',
    own_window_type = 'normal',
    own_window_hints = 'undecorated,skip_pager,below', -- sticky,skip_taskbar,

    double_buffer = true,    
    background = true,

-- ------------------------- Position
    alignment = 'top_left',

    minimum_width = 270,
    
    minimum_height = 200,
    gap_x = 270,
    gap_y = 55,

-- ------------------------- Font
    draw_shades = false,
    draw_outline = false,
    draw_borders = true,
    draw_graph_borders = true,

    default_bar_height = 3,
    default_graph_height = 20,

    use_spacer = 'right',

    use_xft = true,
    override_utf8_locale = true,

    font = 'DejaVu Sans Mono:size=8',


--------------------------- Other
    update_interval = 1,

----- text
    default_color = 'yellow',
----- headers
    color0 = 'white',
  
};

conky.text = [[
 ${color orange}Output del comando ${color red}lsblk -o vendor,model,serial,mode,size,fsused,fsuse%,fstype,kname,uuid,mountpoint,label|egrep -i 'sd|size'
${color0}${exec lsblk -o vendor,model,serial,mode,size,FSUSED,FSUSE%,fstype,kname,uuid,mountpoint,label|egrep -i 'sd|size'}
 ${color orange}Output del comando ${color red} cat /etc/issue ${color0}${exec cat /etc/issue} 
 ${color orange}Output del comando ${color red} cat /proc/version ${color0}
${exec cat /proc/version} 
 ${color orange}$sysname Kernel: ${color0}$kernel on $machine ${color red}  ${color orange}$sysname Desktop: ${color0}$DESKTOP_SESSION ${color0}
 ${color orange}Output del comando ${color red}cat /etc/*release ${color0}
${exec cat /etc/*release}
 ${color orange}Output del comando ${color red}dir /mnt ${color0}     ${exec dir /mnt}
 ${color orange}Output del comando ${color red} cat /mnt/PcLOS/etc/issue ${color0}${exec FILE=/mnt/PcLOS/etc/issue; if [ -f "$FILE" ]; then cat $FILE ;else echo "$FILE NON esiste"; fi}
 ${color orange}Output del comando ${color red} cat /mnt/ubuntuStudio/etc/issue ${color0}${exec FILE=/mnt/ubuntuStudio/etc/issue; if [ -f "$FILE" ]; then cat $FILE ;else echo "$FILE NON esiste"; fi}
 ${color orange}Output del comando ${color red} cat /mnt/L3/etc/issue ${color0}${exec FILE=/mnt/L3/etc/issue; [ -f $FILE ] && cat $FILE || echo "$FILE non esiste"}
 ${color orange}Output del comando ${color red} cat /mnt/L4/etc/issue ${color0}${exec FILE=/mnt/L4/etc/issue; if [ -f "$FILE" ]; then cat $FILE ;else echo "$FILE NON esiste"; fi}
 ${color orange}Output del comando ${color red} cat /mnt/L5/etc/issue ${color0}${exec FILE=/mnt/L5/etc/issue; [ -f $FILE ] && cat $FILE || echo "$FILE non esiste"}
 ${color orange}Output del comando ${color red} cat /mnt/L6/etc/issue ${color0}${exec FILE=/mnt/L6/etc/issue; if [ -f "$FILE" ]; then cat $FILE ;else echo "$FILE NON esiste"; fi}
 ${color orange}Output del comando ${color red} uptime ${color0}${exec uptime}
]]