[UP] use ion3-plus haha.
[arrow.git] / archlinux_conf / etc / ion3 / cfg_statusbar.lua
blob820c1afd744b19d7b26078054fdaeee8ab179788
1 --
2 -- Ion statusbar module configuration file
3 --
6 -- Create a statusbar
7 mod_statusbar.create{
8 -- First screen, bottom left corner
9 screen=0,
10 pos='bl',
11 -- Set this to true if you want a full-width statusbar
12 fullsize=false,
13 -- Swallow systray windows
14 systray=true,
16 -- Template. Tokens %string are replaced with the value of the
17 -- corresponding meter. Currently supported meters are:
18 -- date date
19 -- load load average (1min, 5min, 15min)
20 -- load_Nmin N minute load average (N=1, 5, 15)
21 -- mail_new mail count (mbox format file $MAIL)
22 -- mail_unread mail count
23 -- mail_total mail count
24 -- mail_*_new mail count (from an alternate mail folder, see below)
25 -- mail_*_unread mail count
26 -- mail_*_total mail count
28 -- Space preceded by % adds stretchable space for alignment of variable
29 -- meter value widths. > before meter name aligns right using this
30 -- stretchable space , < left, and | centers.
31 -- Meter values may be zero-padded to a width preceding the meter name.
32 -- These alignment and padding specifiers and the meter name may be
33 -- enclosed in braces {}.
35 -- %filler causes things on the marker's sides to be aligned left and
36 -- right, respectively, and %systray is a placeholder for system tray
37 -- windows and icons.
39 --template="[ %date || load: %load ] %filler%systray",
40 template=
41 "%date " ..
42 "|| %mcpu_0:" ..
43 "%mcpu_1/" ..
44 "%mcpu_0_user:%mcpu_1_user " ..
45 --"%cpustat_user " ..
46 "%laptopstatus_temperature " ..
47 --"%cpufreq_G " ..
48 "|| bat: %laptopstatus_batterypercent %laptopstatus_batterytimeleft (%linuxbatt %linuxbatt_state) " ..
49 "|| vol: %volume_level %volume_state " ..
50 "|| [%wsname] " ..
51 "|| mail: " ..
52 "%maildir_INBOX_new/" ..
53 "%maildir_INBOX_total " ..
54 "ARCHSS/KERNEL" ..
55 "%filler%systray",
57 --template="[ %date || load:% %>load || mail:% %>mail_new/%>mail_total ] %filler%systray",
58 --template="[ %date || load: %05load_1min || mail: %02mail_new/%02mail_total ] %filler%systray",
62 -- Launch ion-statusd. This must be done after creating any statusbars
63 -- for necessary statusd modules to be parsed from the templates.
64 mod_statusbar.launch_statusd{
65 -- Date meter
66 date={
67 -- ISO-8601 date format with additional abbreviated day name
68 -- date_format='%a %Y-%m-%d %H:%M',
69 date_format='%w %Y-%m-%d %H:%M',
71 -- Finnish etc. date format
72 --date_format='%a %d.%m.%Y %H:%M',
73 -- Locale date format (usually shows seconds, which would require
74 -- updating rather often and can be distracting)
75 --date_format='%c',
77 -- Additional date formats.
78 --[[
79 formats={
80 time = '%H:%M', -- %date_time
82 --]]
83 },
85 -- Load meter
86 load={
87 --update_interval=10*1000,
88 --important_threshold=1.5,
89 --critical_threshold=4.0,
92 -- Mail meter
94 -- To monitor more mbox files, add them to the files table. For
95 -- example, add mail_work_new and mail_junk_new to the template
96 -- above, and define them in the files table:
98 -- files = { work = "/path/to/work_email", junk = "/path/to/junk" }
100 -- Don't use the keyword 'spool' as it's reserved for mbox.
101 mail={
102 --update_interval=60*1000,
103 --mbox=os.getenv("MAIL"),
104 --files={},