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
|
#!/usr/bin/perl
# '%sTitle:%s %s'
# | \ \ ` Value
# \ \ `-- End of BC (or start of NC)
# BC ` Label
# NC = normal color (color1)
# BC = bold color (color2)
#-- Other valid options are:
# USERNAME - ex: {USERNAME => '%sUsername:%s %s'},
# CPU_LOAD - ex: {CPU_LOAD => '%sCPU load average:%s %s'},
# OTHER - ex: {OTHER => '%sResolution:%s 1024x768'},
# COMMAND - ex: {COMMAND => ['%sBinaries:%s %s', 'ls /usr/bin | wc -l']},
# HARDCODED - ex: {HARDCODED => "\e[1;37m\e[41mTHIS IS ALSI\e[0m"},
# GTK3_THEME - ex: {GTK3_THEME => '%sGTK3 theme:%s %s'},
# GTK3_ICON_THEME - ex: {GTK3_ICON_THEME => '%sGTK3 icon theme:%s %s'},
# GTK3_FONT_NAME - ex: {GTK3_FONT_NAME => '%sGTK3 font name:%s %s'},
[
{HARDCODED => "\e[1;37m\e[41mOS Information:\e[0m"},
{OS => '%sOS:%s %s'}, # Operating system
{KERNEL => '%sKernel:%s %s'}, # Kernel version
{UPTIME => '%sUptime:%s %s'}, # Uptime
{PACKAGES => '%sPackages:%s %s'}, # Number of installed packages
{HOSTNAME => '%sHostname:%s %s'}, # Hostname
{USERNAME => '%sUsername:%s %s'}, # Username
{SHELL => '%sShell:%s %s'}, # Shell
{WM_DE => '%s%s:%s %s'}, # Window Manager or Desktop Environment
{HARDCODED => "\n"},
# {GTK2_ICON_THEME => '%sGTK2 icon theme:%s %s'}, # Gtk2 icon theme
# {GTK2_FONT_NAME => '%sGTK2 font name:%s %s'}, # Gtk2 font name
{HARDCODED => "\e[1;37m\e[41mHardware Information:\e[0m"},
{CPU => '%sCPU:%s %s'}, # CPU name
{RAM => '%sRAM:%s %s'}, # RAM usage
{HARDCODED => "\e[1;34mGPU:\e[0m GNUvisor LiberonX Pro (GLP-FTX 256)"},
# {SWAP => '%sSWAP:%s %s'}, # SWAP usage
{HARDCODED => "\n"},
# {PARTITIONS => undef}, # Partitions goes here
{HARDCODED => "\e[1;37m\e[41mTheme Information:\e[0m"},
{GTK2_THEME => '%sGTK2 theme:%s %s'}, # Gtk2 theme
{GTK3_THEME => '%sGTK3 theme:%s %s'},
]
|