summaryrefslogtreecommitdiffstats
path: root/src/constants.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-08-17 12:41:37 -0700
committerGitHub <noreply@github.com>2020-08-17 15:41:37 -0400
commit3c373d7129f953242bca813a62b6e920d25f65f5 (patch)
treee474b558f0e0ab22e121e12d1788113a589e6ad8 /src/constants.rs
parent59ce90f5779f63b8d21af92279189c2691a7b7d1 (diff)
feature: Add appox. total mem as an option for processes and basic mem
Adds a way to display the memory value as a column in the processes widget and the basic memory widget, rather than just the percentage.
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/constants.rs b/src/constants.rs
index c2483aed..5710b040 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -42,14 +42,15 @@ lazy_static! {
}
// Help text
-pub const HELP_CONTENTS_TEXT: [&str; 7] = [
+pub const HELP_CONTENTS_TEXT: [&str; 8] = [
"Press the corresponding numbers to jump to the section, or scroll:\n",
"1 - General\n",
"2 - CPU widget\n",
"3 - Process widget\n",
"4 - Process search widget\n",
"5 - Process sort widget\n",
- "6 - Battery widget",
+ "6 - Battery widget\n",
+ "7 - Basic memory widget",
];
pub const GENERAL_HELP_TEXT: [&str; 29] = [
@@ -91,7 +92,7 @@ pub const CPU_HELP_TEXT: [&str; 2] = [
// TODO [Help]: Search in help?
// TODO [Help]: Move to using tables for easier formatting?
-pub const PROCESS_HELP_TEXT: [&str; 11] = [
+pub const PROCESS_HELP_TEXT: [&str; 12] = [
"3 - Process widget\n",
"dd Kill the selected process\n",
"c Sort by CPU usage, press again to reverse sorting order\n",
@@ -102,7 +103,8 @@ pub const PROCESS_HELP_TEXT: [&str; 11] = [
"Ctrl-f, / Open process search widget\n",
"P Toggle between showing the full path or just the process name\n",
"s, F6 Open process sort widget\n",
- "I Invert current sort",
+ "I Invert current sort\n",
+ "% Toggle between values and percentages for memory usage",
];
pub const SEARCH_HELP_TEXT: [&str; 43] = [
@@ -166,6 +168,11 @@ pub const BATTERY_HELP_TEXT: [&str; 3] = [
"Right Go to next battery",
];
+pub const BASIC_MEM_HELP_TEXT: [&str; 2] = [
+ "7 - Basic memory widget\n",
+ "% Toggle between values and percentages for memory usage",
+];
+
lazy_static! {
pub static ref HELP_TEXT: Vec<Vec<&'static str>> = vec![
HELP_CONTENTS_TEXT.to_vec(),
@@ -175,6 +182,7 @@ lazy_static! {
SEARCH_HELP_TEXT.to_vec(),
SORT_HELP_TEXT.to_vec(),
BATTERY_HELP_TEXT.to_vec(),
+ BASIC_MEM_HELP_TEXT.to_vec(),
];
}