]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - htoprc.in
bash/rc: improve comment
[config/dotfiles.git] / htoprc.in
index 515501d59e8f8660786c130c9c863627dabe99b9..194328d78db521d8bc8201e02d4fff0e65dd493e 100644 (file)
--- a/htoprc.in
+++ b/htoprc.in
@@ -1,6 +1,10 @@
 # htop configuration file.
 
-# Copyright (C) 2011-2012  Simon Ruderich
+# Useful mappings:
+#
+# Use \ to limit to only matching processes (like l in mutt). _Very_ useful.
+
+# Copyright (C) 2011-2014  Simon Ruderich
 #
 # This file is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 
 # Ordered in the same way htop orders them for easy diffing.
 
+# Display the following fields (trailing whitespace for easy diffing ...):
+#
+# - PID (0)
+# - USER (48)
+# - NICE (18)
+# - M_SIZE (38): virtual memory
+# - M_RESIDENT (39): resident memory
+# - M_SHARE (40): shared memory
+# - STATE (2)
+# - PERCENT_CPU (46)
+# - PERCENT_MEM (47)
+# - TIME (49)
+# - STARTTIME (20)
+# - Command (1)
+fields=0 48 18 38 39 40 2 46 47 49 20 1 
+
 # Don't display kernel threads.
 hide_kernel_threads=1
 # But display userland threads.
 hide_userland_threads=0
+# Display thread names. The command line is displayed in the tree view as
+# parent of the threads.
+show_thread_names=1
 
 # Highlight program base name.
 highlight_base_name=1
@@ -32,3 +55,22 @@ highlight_threads=1
 
 # Display detailed CPU information, including IO-Wait.
 detailed_cpu_time=1
+
+# Display the following meters.
+#
+# left: - first part of CPU usage, bar (LeftCPUs)
+#       - memory usage, bar (Memory)
+#       - swap usage, bar (Swap)
+#       - hostname, text (Hostname)
+#
+# right: - second part of CPU usage, bar (RightCPUs)
+#        - task statistics, text (Tasks)
+#        - load average, text (LoadAverage)
+#        - uptime, text (Uptime)
+#
+left_meters=LeftCPUs Memory Swap Hostname 
+left_meter_modes=1 1 1 2 
+right_meters=RightCPUs Tasks LoadAverage Uptime 
+right_meter_modes=1 2 2 2 
+
+# vim: ft=cfg