mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-25 20:11:11 +00:00
$memwithbuffers object and bar (sf.net #2954143)
I've added $memwithbuffers to complement $mem, $memeasyfree, etc. This variable indicates the used system memory, regardless of buffers/caches. If the "no_buffers" option is set to "no", it will be the same as $mem. The reason I find this change useful is that I like to display both the total used system memory and the memory being used by applications. I've also included a memwithbuffersbar, which is the same as membar except that it uses $memwithbuffers as the size instead of $mem. Signed-off-by: Pavel Labath <pavelo@centrum.sk>
This commit is contained in:
parent
9b1a89e617
commit
c7fa36a5f2
@ -1,3 +1,6 @@
|
|||||||
|
2010-02-18
|
||||||
|
* $memwithbuffers object and bar (sf.net #2954143), thanks kingfishr
|
||||||
|
|
||||||
2009-12-09
|
2009-12-09
|
||||||
* Replaced GHashTable with tr1::unordered_map in tcp_portmon.
|
* Replaced GHashTable with tr1::unordered_map in tcp_portmon.
|
||||||
This means portmon no longer depends on glib.
|
This means portmon no longer depends on glib.
|
||||||
|
@ -1971,6 +1971,15 @@
|
|||||||
<listitem>Amount of memory in use
|
<listitem>Amount of memory in use
|
||||||
<para /></listitem>
|
<para /></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<command>
|
||||||
|
<option>memwithbuffers</option>
|
||||||
|
</command>
|
||||||
|
</term>
|
||||||
|
<listitem>Amount of memory in use, including that used by system buffers and caches
|
||||||
|
<para /></listitem>
|
||||||
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<command>
|
<command>
|
||||||
@ -1981,6 +1990,16 @@
|
|||||||
<listitem>Bar that shows amount of memory in use
|
<listitem>Bar that shows amount of memory in use
|
||||||
<para /></listitem>
|
<para /></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<command>
|
||||||
|
<option>memwithbuffersbar</option>
|
||||||
|
</command>
|
||||||
|
<option>(height),(width)</option>
|
||||||
|
</term>
|
||||||
|
<listitem>Bar that shows amount of memory in use (including memory used by system buffers and caches)
|
||||||
|
<para /></listitem>
|
||||||
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<command>
|
<command>
|
||||||
|
@ -11,7 +11,7 @@ color green "\<(alignment|append_file|background|border_inner_margin|border_oute
|
|||||||
color yellow "\<(above|below|bottom_left|bottom_right|bottom_middle|desktop|dock|no|none|normal|override|skip_pager|skip_taskbar|sticky|top_left|top_right|top_middle|middle_left|middle_right|middle_middle|undecorated|yes)\>"
|
color yellow "\<(above|below|bottom_left|bottom_right|bottom_middle|desktop|dock|no|none|normal|override|skip_pager|skip_taskbar|sticky|top_left|top_right|top_middle|middle_left|middle_right|middle_middle|undecorated|yes)\>"
|
||||||
|
|
||||||
## Variables
|
## Variables
|
||||||
color brightblue "\<(acpiacadapter|acpifan|acpitemp|addr|addrs|alignc|alignr|apcupsd|apcupsd_cable|apcupsd_charge|apcupsd_lastxfer|apcupsd_linev|apcupsd_load|apcupsd_loadbar|apcupsd_loadgauge|apcupsd_loadgraph|apcupsd_model|apcupsd_name|apcupsd_status|apcupsd_temp|apcupsd_timeleft|apcupsd_upsmode|apm_adapter|apm_battery_life|apm_battery_time|audacious_bar|audacious_bitrate|audacious_channels|audacious_filename|audacious_frequency|audacious_length|audacious_length_seconds|audacious_main_volume|audacious_playlist_length|audacious_playlist_position|audacious_position|audacious_position_seconds|audacious_status|audacious_title|battery|battery_bar|battery_percent|battery_short|battery_time|blink|bmpx_album|bmpx_artist|bmpx_bitrate|bmpx_title|bmpx_track|bmpx_uri|buffers|cached|cmdline_to_pid|color|color0|color1|color2|color3|color4|color5|color6|color7|color8|color9|combine|conky_build_arch|conky_build_date|conky_version|cpu|cpubar|cpugauge|cpugraph|curl|desktop|desktop_name|desktop_number|disk_protect|diskio|diskio_read|diskio_write|diskiograph|diskiograph_read|diskiograph_write|downspeed|downspeedf|downspeedgraph|draft_mails|else|endif|entropy_avail|entropy_bar|entropy_perc|entropy_poolsize|eval|eve|exec|execbar|execgauge|execgraph|execi|execibar|execigauge|execigraph|execp|execpi|flagged_mails|font|format_time|forwarded_mails|freq|freq_g|fs_bar|fs_bar_free|fs_free|fs_free_perc|fs_size|fs_type|fs_used|fs_used_perc|goto|gw_iface|gw_ip|hddtemp|head|hr|hwmon|i2c|i8k_ac_status|i8k_bios|i8k_buttons_status|i8k_cpu_temp|i8k_left_fan_rpm|i8k_left_fan_status|i8k_right_fan_rpm|i8k_right_fan_status|i8k_serial|i8k_version|ibm_brightness|ibm_fan|ibm_temps|ibm_volume|iconv_start|iconv_stop|if_empty|if_existing|if_gw|if_match|if_mixer_mute|if_mounted|if_mpd_playing|if_running|if_smapi_bat_installed|if_up|if_updatenr|if_xmms2_connected|image|imap_messages|imap_unseen|include|ioscheduler|kernel|laptop_mode|lines|loadavg|loadgraph|lua|lua_bar|lua_gauge|lua_graph|lua_parse|machine|mails|mboxscan|mem|membar|memeasyfree|memfree|memgauge|memgraph|memmax|memperc|mixer|mixerbar|mixerl|mixerlbar|mixerr|mixerrbar|moc_album|moc_artist|moc_bitrate|moc_curtime|moc_file|moc_rate|moc_song|moc_state|moc_timeleft|moc_title|moc_totaltime|monitor|monitor_number|mpd_album|mpd_artist|mpd_bar|mpd_bitrate|mpd_elapsed|mpd_file|mpd_length|mpd_name|mpd_percent|mpd_random|mpd_repeat|mpd_smart|mpd_status|mpd_title|mpd_track|mpd_vol|nameserver|new_mails|nodename|nvidia|obsd_product|obsd_sensors_fan|obsd_sensors_temp|obsd_sensors_volt|obsd_vendor|offset|outlinecolor|pb_battery|pid_chroot|pid_cmdline|pid_cwd|pid_environ|pid_environ_list|pid_exe|pid_nice|pid_openfiles|pid_parent|pid_priority|pid_state|pid_state_short|pid_stderr|pid_stdin|pid_stdout|pid_threads|pid_thread_list|pid_time_kernelmode|pid_time_usermode|pid_time|pid_uid|pid_euid|pid_suid|pid_fsuid|pid_gid|pid_egid|pid_sgid|pid_fsgid|pid_read|pid_vmpeak|pid_vmsize|pid_vmlck|pid_vmhwm|pid_vmrss|pid_vmdata|pid_vmstk|pid_vmexe|pid_vmlib|pid_vmpte|pid_write|platform|pop3_unseen|pop3_used|pre_exec|processes|read_tcp|replied_mails|rss|running_processes|running_threads|scroll|seen_mails|shadecolor|smapi|smapi_bat_bar|smapi_bat_perc|smapi_bat_power|smapi_bat_temp|sony_fanspeed|stippled_hr|swap|swapbar|swapfree|swapmax|swapperc|sysname|tab|tail|tcp_portmon|template0|template1|template2|template3|template4|template5|template6|template7|template8|template9|texeci|texecpi|threads|time|to_bytes|top|top_io|top_mem|top_time|totaldown|totalup|trashed_mails|tztime|gid_name|uid_name|unflagged_mails|unforwarded_mails|unreplied_mails|unseen_mails|updates|upspeed|upspeedf|upspeedgraph|uptime|uptime_short|user_names|user_number|user_terms|user_times|user_time|utime|voffset|voltage_mv|voltage_v|weather|wireless_ap|wireless_bitrate|wireless_essid|wireless_link_bar|wireless_link_qual|wireless_link_qual_max|wireless_link_qual_perc|wireless_mode|words|xmms2_album|xmms2_artist|xmms2_bar|xmms2_bitrate|xmms2_comment|xmms2_date|xmms2_duration|xmms2_elapsed|xmms2_genre|xmms2_id|xmms2_percent|xmms2_playlist|xmms2_size|xmms2_smart|xmms2_status|xmms2_timesplayed|xmms2_title|xmms2_tracknr|xmms2_url)\>"
|
color brightblue "\<(acpiacadapter|acpifan|acpitemp|addr|addrs|alignc|alignr|apcupsd|apcupsd_cable|apcupsd_charge|apcupsd_lastxfer|apcupsd_linev|apcupsd_load|apcupsd_loadbar|apcupsd_loadgauge|apcupsd_loadgraph|apcupsd_model|apcupsd_name|apcupsd_status|apcupsd_temp|apcupsd_timeleft|apcupsd_upsmode|apm_adapter|apm_battery_life|apm_battery_time|audacious_bar|audacious_bitrate|audacious_channels|audacious_filename|audacious_frequency|audacious_length|audacious_length_seconds|audacious_main_volume|audacious_playlist_length|audacious_playlist_position|audacious_position|audacious_position_seconds|audacious_status|audacious_title|battery|battery_bar|battery_percent|battery_short|battery_time|blink|bmpx_album|bmpx_artist|bmpx_bitrate|bmpx_title|bmpx_track|bmpx_uri|buffers|cached|cmdline_to_pid|color|color0|color1|color2|color3|color4|color5|color6|color7|color8|color9|combine|conky_build_arch|conky_build_date|conky_version|cpu|cpubar|cpugauge|cpugraph|curl|desktop|desktop_name|desktop_number|disk_protect|diskio|diskio_read|diskio_write|diskiograph|diskiograph_read|diskiograph_write|downspeed|downspeedf|downspeedgraph|draft_mails|else|endif|entropy_avail|entropy_bar|entropy_perc|entropy_poolsize|eval|eve|exec|execbar|execgauge|execgraph|execi|execibar|execigauge|execigraph|execp|execpi|flagged_mails|font|format_time|forwarded_mails|freq|freq_g|fs_bar|fs_bar_free|fs_free|fs_free_perc|fs_size|fs_type|fs_used|fs_used_perc|goto|gw_iface|gw_ip|hddtemp|head|hr|hwmon|i2c|i8k_ac_status|i8k_bios|i8k_buttons_status|i8k_cpu_temp|i8k_left_fan_rpm|i8k_left_fan_status|i8k_right_fan_rpm|i8k_right_fan_status|i8k_serial|i8k_version|ibm_brightness|ibm_fan|ibm_temps|ibm_volume|iconv_start|iconv_stop|if_empty|if_existing|if_gw|if_match|if_mixer_mute|if_mounted|if_mpd_playing|if_running|if_smapi_bat_installed|if_up|if_updatenr|if_xmms2_connected|image|imap_messages|imap_unseen|include|ioscheduler|kernel|laptop_mode|lines|loadavg|loadgraph|lua|lua_bar|lua_gauge|lua_graph|lua_parse|machine|mails|mboxscan|mem|memwithbuffers|membar|memwithbuffersbar|memeasyfree|memfree|memgauge|memgraph|memmax|memperc|mixer|mixerbar|mixerl|mixerlbar|mixerr|mixerrbar|moc_album|moc_artist|moc_bitrate|moc_curtime|moc_file|moc_rate|moc_song|moc_state|moc_timeleft|moc_title|moc_totaltime|monitor|monitor_number|mpd_album|mpd_artist|mpd_bar|mpd_bitrate|mpd_elapsed|mpd_file|mpd_length|mpd_name|mpd_percent|mpd_random|mpd_repeat|mpd_smart|mpd_status|mpd_title|mpd_track|mpd_vol|nameserver|new_mails|nodename|nvidia|obsd_product|obsd_sensors_fan|obsd_sensors_temp|obsd_sensors_volt|obsd_vendor|offset|outlinecolor|pb_battery|pid_chroot|pid_cmdline|pid_cwd|pid_environ|pid_environ_list|pid_exe|pid_nice|pid_openfiles|pid_parent|pid_priority|pid_state|pid_state_short|pid_stderr|pid_stdin|pid_stdout|pid_threads|pid_thread_list|pid_time_kernelmode|pid_time_usermode|pid_time|pid_uid|pid_euid|pid_suid|pid_fsuid|pid_gid|pid_egid|pid_sgid|pid_fsgid|pid_read|pid_vmpeak|pid_vmsize|pid_vmlck|pid_vmhwm|pid_vmrss|pid_vmdata|pid_vmstk|pid_vmexe|pid_vmlib|pid_vmpte|pid_write|platform|pop3_unseen|pop3_used|pre_exec|processes|read_tcp|replied_mails|rss|running_processes|running_threads|scroll|seen_mails|shadecolor|smapi|smapi_bat_bar|smapi_bat_perc|smapi_bat_power|smapi_bat_temp|sony_fanspeed|stippled_hr|swap|swapbar|swapfree|swapmax|swapperc|sysname|tab|tail|tcp_portmon|template0|template1|template2|template3|template4|template5|template6|template7|template8|template9|texeci|texecpi|threads|time|to_bytes|top|top_io|top_mem|top_time|totaldown|totalup|trashed_mails|tztime|gid_name|uid_name|unflagged_mails|unforwarded_mails|unreplied_mails|unseen_mails|updates|upspeed|upspeedf|upspeedgraph|uptime|uptime_short|user_names|user_number|user_terms|user_times|user_time|utime|voffset|voltage_mv|voltage_v|weather|wireless_ap|wireless_bitrate|wireless_essid|wireless_link_bar|wireless_link_qual|wireless_link_qual_max|wireless_link_qual_perc|wireless_mode|words|xmms2_album|xmms2_artist|xmms2_bar|xmms2_bitrate|xmms2_comment|xmms2_date|xmms2_duration|xmms2_elapsed|xmms2_genre|xmms2_id|xmms2_percent|xmms2_playlist|xmms2_size|xmms2_smart|xmms2_status|xmms2_timesplayed|xmms2_title|xmms2_tracknr|xmms2_url)\>"
|
||||||
|
|
||||||
color brightblue "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
color brightblue "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
||||||
color cyan "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
color cyan "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
||||||
|
@ -50,7 +50,7 @@ syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcV
|
|||||||
|
|
||||||
syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
|
syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
|
||||||
|
|
||||||
syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite acpiacadapter acpifan acpitemp addr addrs alignc alignr apcupsd apcupsd_cable apcupsd_charge apcupsd_lastxfer apcupsd_linev apcupsd_load apcupsd_loadbar apcupsd_loadgauge apcupsd_loadgraph apcupsd_model apcupsd_name apcupsd_status apcupsd_temp apcupsd_timeleft apcupsd_upsmode apm_adapter apm_battery_life apm_battery_time audacious_bar audacious_bitrate audacious_channels audacious_filename audacious_frequency audacious_length audacious_length_seconds audacious_main_volume audacious_playlist_length audacious_playlist_position audacious_position audacious_position_seconds audacious_status audacious_title battery battery_bar battery_percent battery_short battery_time blink bmpx_album bmpx_artist bmpx_bitrate bmpx_title bmpx_track bmpx_uri buffers cached cmdline_to_pid color color0 color1 color2 color3 color4 color5 color6 color7 color8 color9 combine conky_build_arch conky_build_date conky_version cpu cpubar cpugauge cpugraph curl desktop desktop_name desktop_number disk_protect diskio diskio_read diskio_write diskiograph diskiograph_read diskiograph_write downspeed downspeedf downspeedgraph draft_mails else endif entropy_avail entropy_bar entropy_perc entropy_poolsize eval eve exec execbar execgauge execgraph execi execibar execigauge execigraph execp execpi flagged_mails font format_time forwarded_mails freq freq_g fs_bar fs_bar_free fs_free fs_free_perc fs_size fs_type fs_used fs_used_perc goto gw_iface gw_ip hddtemp head hr hwmon i2c i8k_ac_status i8k_bios i8k_buttons_status i8k_cpu_temp i8k_left_fan_rpm i8k_left_fan_status i8k_right_fan_rpm i8k_right_fan_status i8k_serial i8k_version ibm_brightness ibm_fan ibm_temps ibm_volume iconv_start iconv_stop if_empty if_existing if_gw if_match if_mixer_mute if_mounted if_mpd_playing if_running if_smapi_bat_installed if_up if_updatenr if_xmms2_connected image imap_messages imap_unseen include ioscheduler kernel laptop_mode lines loadavg loadgraph lua lua_bar lua_gauge lua_graph lua_parse machine mails mboxscan mem membar memeasyfree memfree memgauge memgraph memmax memperc mixer mixerbar mixerl mixerlbar mixerr mixerrbar moc_album moc_artist moc_bitrate moc_curtime moc_file moc_rate moc_song moc_state moc_timeleft moc_title moc_totaltime monitor monitor_number mpd_album mpd_artist mpd_bar mpd_bitrate mpd_elapsed mpd_file mpd_length mpd_name mpd_percent mpd_random mpd_repeat mpd_smart mpd_status mpd_title mpd_track mpd_vol nameserver new_mails nodename nvidia obsd_product obsd_sensors_fan obsd_sensors_temp obsd_sensors_volt obsd_vendor offset outlinecolor pb_battery pid_chroot pid_cmdline pid_cwd pid_environ pid_environ_list pid_exe pid_nice pid_openfiles pid_parent pid_priority pid_state pid_state_short pid_stderr pid_stdin pid_stdout pid_threads pid_thread_list pid_time_kernelmode pid_time_usermode pid_time pid_uid pid_euid pid_suid pid_fsuid pid_gid pid_egid pid_sgid pid_fsgid pid_read pid_vmpeak pid_vmsize pid_vmlck pid_vmhwm pid_vmrss pid_vmdata pid_vmstk pid_vmexe pid_vmlib pid_vmpte pid_write platform pop3_unseen pop3_used pre_exec processes read_tcp replied_mails rss running_processes running_threads scroll seen_mails shadecolor smapi smapi_bat_bar smapi_bat_perc smapi_bat_power smapi_bat_temp sony_fanspeed stippled_hr swap swapbar swapfree swapmax swapperc sysname tab tail tcp_portmon template0 template1 template2 template3 template4 template5 template6 template7 template8 template9 texeci texecpi threads time to_bytes top top_io top_mem top_time totaldown totalup trashed_mails tztime gid_name uid_name unflagged_mails unforwarded_mails unreplied_mails unseen_mails updates upspeed upspeedf upspeedgraph uptime uptime_short user_names user_number user_terms user_times user_time utime voffset voltage_mv voltage_v weather wireless_ap wireless_bitrate wireless_essid wireless_link_bar wireless_link_qual wireless_link_qual_max wireless_link_qual_perc wireless_mode words xmms2_album xmms2_artist xmms2_bar xmms2_bitrate xmms2_comment xmms2_date xmms2_duration xmms2_elapsed xmms2_genre xmms2_id xmms2_percent xmms2_playlist xmms2_size xmms2_smart xmms2_status xmms2_timesplayed xmms2_title xmms2_tracknr xmms2_url
|
syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite acpiacadapter acpifan acpitemp addr addrs alignc alignr apcupsd apcupsd_cable apcupsd_charge apcupsd_lastxfer apcupsd_linev apcupsd_load apcupsd_loadbar apcupsd_loadgauge apcupsd_loadgraph apcupsd_model apcupsd_name apcupsd_status apcupsd_temp apcupsd_timeleft apcupsd_upsmode apm_adapter apm_battery_life apm_battery_time audacious_bar audacious_bitrate audacious_channels audacious_filename audacious_frequency audacious_length audacious_length_seconds audacious_main_volume audacious_playlist_length audacious_playlist_position audacious_position audacious_position_seconds audacious_status audacious_title battery battery_bar battery_percent battery_short battery_time blink bmpx_album bmpx_artist bmpx_bitrate bmpx_title bmpx_track bmpx_uri buffers cached cmdline_to_pid color color0 color1 color2 color3 color4 color5 color6 color7 color8 color9 combine conky_build_arch conky_build_date conky_version cpu cpubar cpugauge cpugraph curl desktop desktop_name desktop_number disk_protect diskio diskio_read diskio_write diskiograph diskiograph_read diskiograph_write downspeed downspeedf downspeedgraph draft_mails else endif entropy_avail entropy_bar entropy_perc entropy_poolsize eval eve exec execbar execgauge execgraph execi execibar execigauge execigraph execp execpi flagged_mails font format_time forwarded_mails freq freq_g fs_bar fs_bar_free fs_free fs_free_perc fs_size fs_type fs_used fs_used_perc goto gw_iface gw_ip hddtemp head hr hwmon i2c i8k_ac_status i8k_bios i8k_buttons_status i8k_cpu_temp i8k_left_fan_rpm i8k_left_fan_status i8k_right_fan_rpm i8k_right_fan_status i8k_serial i8k_version ibm_brightness ibm_fan ibm_temps ibm_volume iconv_start iconv_stop if_empty if_existing if_gw if_match if_mixer_mute if_mounted if_mpd_playing if_running if_smapi_bat_installed if_up if_updatenr if_xmms2_connected image imap_messages imap_unseen include ioscheduler kernel laptop_mode lines loadavg loadgraph lua lua_bar lua_gauge lua_graph lua_parse machine mails mboxscan mem memwithbuffers membar memwithbuffersbar memeasyfree memfree memgauge memgraph memmax memperc mixer mixerbar mixerl mixerlbar mixerr mixerrbar moc_album moc_artist moc_bitrate moc_curtime moc_file moc_rate moc_song moc_state moc_timeleft moc_title moc_totaltime monitor monitor_number mpd_album mpd_artist mpd_bar mpd_bitrate mpd_elapsed mpd_file mpd_length mpd_name mpd_percent mpd_random mpd_repeat mpd_smart mpd_status mpd_title mpd_track mpd_vol nameserver new_mails nodename nvidia obsd_product obsd_sensors_fan obsd_sensors_temp obsd_sensors_volt obsd_vendor offset outlinecolor pb_battery pid_chroot pid_cmdline pid_cwd pid_environ pid_environ_list pid_exe pid_nice pid_openfiles pid_parent pid_priority pid_state pid_state_short pid_stderr pid_stdin pid_stdout pid_threads pid_thread_list pid_time_kernelmode pid_time_usermode pid_time pid_uid pid_euid pid_suid pid_fsuid pid_gid pid_egid pid_sgid pid_fsgid pid_read pid_vmpeak pid_vmsize pid_vmlck pid_vmhwm pid_vmrss pid_vmdata pid_vmstk pid_vmexe pid_vmlib pid_vmpte pid_write platform pop3_unseen pop3_used pre_exec processes read_tcp replied_mails rss running_processes running_threads scroll seen_mails shadecolor smapi smapi_bat_bar smapi_bat_perc smapi_bat_power smapi_bat_temp sony_fanspeed stippled_hr swap swapbar swapfree swapmax swapperc sysname tab tail tcp_portmon template0 template1 template2 template3 template4 template5 template6 template7 template8 template9 texeci texecpi threads time to_bytes top top_io top_mem top_time totaldown totalup trashed_mails tztime gid_name uid_name unflagged_mails unforwarded_mails unreplied_mails unseen_mails updates upspeed upspeedf upspeedgraph uptime uptime_short user_names user_number user_terms user_times user_time utime voffset voltage_mv voltage_v weather wireless_ap wireless_bitrate wireless_essid wireless_link_bar wireless_link_qual wireless_link_qual_max wireless_link_qual_perc wireless_mode words xmms2_album xmms2_artist xmms2_bar xmms2_bitrate xmms2_comment xmms2_date xmms2_duration xmms2_elapsed xmms2_genre xmms2_id xmms2_percent xmms2_playlist xmms2_size xmms2_smart xmms2_status xmms2_timesplayed xmms2_title xmms2_tracknr xmms2_url
|
||||||
|
|
||||||
hi def link ConkyrcComment Comment
|
hi def link ConkyrcComment Comment
|
||||||
hi def link ConkyrcSetting Keyword
|
hi def link ConkyrcSetting Keyword
|
||||||
|
@ -517,6 +517,7 @@ void print_##name(struct text_object *obj, char *p, int p_max_size) \
|
|||||||
}
|
}
|
||||||
|
|
||||||
PRINT_HR_GENERATOR(mem)
|
PRINT_HR_GENERATOR(mem)
|
||||||
|
PRINT_HR_GENERATOR(memwithbuffers)
|
||||||
PRINT_HR_GENERATOR(memeasyfree)
|
PRINT_HR_GENERATOR(memeasyfree)
|
||||||
PRINT_HR_GENERATOR(memfree)
|
PRINT_HR_GENERATOR(memfree)
|
||||||
PRINT_HR_GENERATOR(memmax)
|
PRINT_HR_GENERATOR(memmax)
|
||||||
@ -538,6 +539,13 @@ double mem_barval(struct text_object *obj)
|
|||||||
return info.memmax ? ((double)info.mem / info.memmax) : 0;
|
return info.memmax ? ((double)info.mem / info.memmax) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double mem_with_buffers_barval(struct text_object *obj)
|
||||||
|
{
|
||||||
|
(void)obj;
|
||||||
|
|
||||||
|
return info.memmax ? ((double)info.memwithbuffers / info.memmax) : 0;
|
||||||
|
}
|
||||||
|
|
||||||
uint8_t swap_percentage(struct text_object *obj)
|
uint8_t swap_percentage(struct text_object *obj)
|
||||||
{
|
{
|
||||||
(void)obj;
|
(void)obj;
|
||||||
|
@ -105,6 +105,7 @@ uint8_t cpu_percentage(struct text_object *);
|
|||||||
double cpu_barval(struct text_object *);
|
double cpu_barval(struct text_object *);
|
||||||
|
|
||||||
void print_mem(struct text_object *, char *, int);
|
void print_mem(struct text_object *, char *, int);
|
||||||
|
void print_memwithbuffers(struct text_object *, char *, int);
|
||||||
void print_memeasyfree(struct text_object *, char *, int);
|
void print_memeasyfree(struct text_object *, char *, int);
|
||||||
void print_memfree(struct text_object *, char *, int);
|
void print_memfree(struct text_object *, char *, int);
|
||||||
void print_memmax(struct text_object *, char *, int);
|
void print_memmax(struct text_object *, char *, int);
|
||||||
@ -113,6 +114,7 @@ void print_swapfree(struct text_object *, char *, int);
|
|||||||
void print_swapmax(struct text_object *, char *, int);
|
void print_swapmax(struct text_object *, char *, int);
|
||||||
uint8_t mem_percentage(struct text_object *);
|
uint8_t mem_percentage(struct text_object *);
|
||||||
double mem_barval(struct text_object *);
|
double mem_barval(struct text_object *);
|
||||||
|
double mem_with_buffers_barval(struct text_object *);
|
||||||
uint8_t swap_percentage(struct text_object *);
|
uint8_t swap_percentage(struct text_object *);
|
||||||
double swap_barval(struct text_object *);
|
double swap_barval(struct text_object *);
|
||||||
|
|
||||||
|
@ -209,7 +209,8 @@ struct information {
|
|||||||
double uptime;
|
double uptime;
|
||||||
|
|
||||||
/* memory information in kilobytes */
|
/* memory information in kilobytes */
|
||||||
unsigned long long mem, memeasyfree, memfree, memmax, swap, swapfree, swapmax;
|
unsigned long long mem, memwithbuffers, memeasyfree, memfree, memmax;
|
||||||
|
unsigned long long swap, swapfree, swapmax;
|
||||||
unsigned long long bufmem, buffers, cached;
|
unsigned long long bufmem, buffers, cached;
|
||||||
|
|
||||||
unsigned short procs;
|
unsigned short procs;
|
||||||
|
@ -839,6 +839,8 @@ struct text_object *construct_text_object(char *s, const char *arg, long
|
|||||||
obj->callbacks.free = &free_mboxscan;
|
obj->callbacks.free = &free_mboxscan;
|
||||||
END OBJ(mem, &update_meminfo)
|
END OBJ(mem, &update_meminfo)
|
||||||
obj->callbacks.print = &print_mem;
|
obj->callbacks.print = &print_mem;
|
||||||
|
END OBJ(memwithbuffers, &update_meminfo)
|
||||||
|
obj->callbacks.print = &print_memwithbuffers;
|
||||||
END OBJ(memeasyfree, &update_meminfo)
|
END OBJ(memeasyfree, &update_meminfo)
|
||||||
obj->callbacks.print = &print_memeasyfree;
|
obj->callbacks.print = &print_memeasyfree;
|
||||||
END OBJ(memfree, &update_meminfo)
|
END OBJ(memfree, &update_meminfo)
|
||||||
@ -853,6 +855,9 @@ struct text_object *construct_text_object(char *s, const char *arg, long
|
|||||||
END OBJ(membar, &update_meminfo)
|
END OBJ(membar, &update_meminfo)
|
||||||
scan_bar(obj, arg, 1);
|
scan_bar(obj, arg, 1);
|
||||||
obj->callbacks.barval = &mem_barval;
|
obj->callbacks.barval = &mem_barval;
|
||||||
|
END OBJ(memwithbuffersbar, &update_meminfo)
|
||||||
|
scan_bar(obj, arg, 1);
|
||||||
|
obj->callbacks.barval = &mem_with_buffers_barval;
|
||||||
#ifdef BUILD_X11
|
#ifdef BUILD_X11
|
||||||
END OBJ(memgraph, &update_meminfo)
|
END OBJ(memgraph, &update_meminfo)
|
||||||
char *buf = 0;
|
char *buf = 0;
|
||||||
|
@ -177,6 +177,7 @@ void update_meminfo(void)
|
|||||||
|
|
||||||
info.memmax = total_pages * (pagesize >> 10);
|
info.memmax = total_pages * (pagesize >> 10);
|
||||||
info.mem = (total_pages - free_pages - inactive_pages) * (pagesize >> 10);
|
info.mem = (total_pages - free_pages - inactive_pages) * (pagesize >> 10);
|
||||||
|
info.memwithbuffers = info.mem;
|
||||||
info.memeasyfree = info.memfree = info.memmax - info.mem;
|
info.memeasyfree = info.memfree = info.memmax - info.mem;
|
||||||
|
|
||||||
if ((swapmode(&swap_avail, &swap_free)) >= 0) {
|
if ((swapmode(&swap_avail, &swap_free)) >= 0) {
|
||||||
|
@ -161,8 +161,8 @@ void update_meminfo(void)
|
|||||||
/* unsigned int a; */
|
/* unsigned int a; */
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|
||||||
info.mem = info.memmax = info.swap = info.swapfree = info.swapmax = info.bufmem =
|
info.mem = info.memwithbuffers = info.memmax = info.swap = info.swapfree = info.swapmax =
|
||||||
info.buffers = info.cached = info.memfree = info.memeasyfree = 0;
|
info.bufmem = info.buffers = info.cached = info.memfree = info.memeasyfree = 0;
|
||||||
|
|
||||||
if (!(meminfo_fp = open_file("/proc/meminfo", &rep))) {
|
if (!(meminfo_fp = open_file("/proc/meminfo", &rep))) {
|
||||||
return;
|
return;
|
||||||
@ -188,7 +188,7 @@ void update_meminfo(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
info.mem = info.memmax - info.memfree;
|
info.mem = info.memwithbuffers = info.memmax - info.memfree;
|
||||||
info.memeasyfree = info.memfree;
|
info.memeasyfree = info.memfree;
|
||||||
info.swap = info.swapmax - info.swapfree;
|
info.swap = info.swapmax - info.swapfree;
|
||||||
|
|
||||||
|
@ -135,6 +135,7 @@ void update_meminfo()
|
|||||||
|
|
||||||
info.memmax = (total_pages * pagesize) >> 10;
|
info.memmax = (total_pages * pagesize) >> 10;
|
||||||
info.mem = ((total_pages - free_pages - inactive_pages) * pagesize) >> 10;
|
info.mem = ((total_pages - free_pages - inactive_pages) * pagesize) >> 10;
|
||||||
|
info.memwithbuffers = info.mem;
|
||||||
info.memeasyfree = info.memfree = info.memmax - info.mem;
|
info.memeasyfree = info.memfree = info.memmax - info.mem;
|
||||||
|
|
||||||
if (swapmode(&swap_avail, &swap_free) >= 0) {
|
if (swapmode(&swap_avail, &swap_free) >= 0) {
|
||||||
|
@ -183,7 +183,7 @@ void update_meminfo()
|
|||||||
}
|
}
|
||||||
|
|
||||||
info.memmax = pagetok(vmtotal.t_rm) + pagetok(vmtotal.t_free);
|
info.memmax = pagetok(vmtotal.t_rm) + pagetok(vmtotal.t_free);
|
||||||
info.mem = pagetok(vmtotal.t_rm);
|
info.mem = info.memwithbuffers = pagetok(vmtotal.t_rm);
|
||||||
info.memeasyfree = info.memfree = info.memmax - info.mem;
|
info.memeasyfree = info.memfree = info.memmax - info.mem;
|
||||||
|
|
||||||
if ((swapmode(&swap_used, &swap_avail)) >= 0) {
|
if ((swapmode(&swap_used, &swap_avail)) >= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user