Change the IRQ shortcut key from R to Q. R is alread used for the RAID plugins. Also update the docs for the IRQ plugin. Last but not leat, change the ReadTheDoc theme

This commit is contained in:
nicolargo 2016-08-23 20:12:49 +02:00
parent 122cc576dc
commit 9650ce0d67
6 changed files with 17 additions and 8 deletions

View File

@ -66,6 +66,10 @@ Command-Line Options
disable folder module disable folder module
.. option:: --disable-irq
disable IRQ module
.. option:: --disable-sensors .. option:: --disable-sensors
disable sensors module disable sensors module
@ -363,6 +367,9 @@ The following commands (key pressed) are supported while in Glances:
``q|ESC`` ``q|ESC``
Quit the current Glances session Quit the current Glances session
``Q``
Show/hide IRQ module
``r`` ``r``
Reset history Reset history

View File

@ -115,15 +115,12 @@ todo_include_todos = False
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # a list of builtin themes.
html_theme = 'alabaster' html_theme = 'sphinx_rtd_theme'
# Theme options are theme-specific and customize the look and feel of a theme # Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the # further. For a list of options available for each theme, see the
# documentation. # documentation.
html_theme_options = { html_theme_options = {
'github_user': 'nicolargo',
'github_repo': 'glances',
'show_powered_by': False
} }
# Add any paths that contain custom themes here, relative to this directory. # Add any paths that contain custom themes here, relative to this directory.

View File

@ -123,6 +123,11 @@ disable folder module
.UNINDENT .UNINDENT
.INDENT 0.0 .INDENT 0.0
.TP .TP
.B \-\-disable\-irq
disable IRQ module
.UNINDENT
.INDENT 0.0
.TP
.B \-\-disable\-sensors .B \-\-disable\-sensors
disable sensors module disable sensors module
.UNINDENT .UNINDENT

View File

@ -361,8 +361,6 @@ class _GlancesCurses(object):
elif self.pressedkey == ord('d'): elif self.pressedkey == ord('d'):
# 'd' > Show/hide disk I/O stats # 'd' > Show/hide disk I/O stats
self.args.disable_diskio = not self.args.disable_diskio self.args.disable_diskio = not self.args.disable_diskio
elif self.pressedkey == ord('R'):
self.args.disable_irq = not self.args.disable_irq
elif self.pressedkey == ord('D'): elif self.pressedkey == ord('D'):
# 'D' > Show/hide Docker stats # 'D' > Show/hide Docker stats
self.args.disable_docker = not self.args.disable_docker self.args.disable_docker = not self.args.disable_docker
@ -417,6 +415,8 @@ class _GlancesCurses(object):
elif self.pressedkey == ord('P'): elif self.pressedkey == ord('P'):
# 'P' > Disable ports scan plugins # 'P' > Disable ports scan plugins
self.args.disable_ports = not self.args.disable_ports self.args.disable_ports = not self.args.disable_ports
elif self.pressedkey == ord('Q'):
self.args.disable_irq = not self.args.disable_irq
elif self.pressedkey == ord('r'): elif self.pressedkey == ord('r'):
# 'r' > Reset history # 'r' > Reset history
self.reset_history_tag = not self.reset_history_tag self.reset_history_tag = not self.reset_history_tag

View File

@ -104,7 +104,7 @@ glancesApp.controller('statsController', function ($scope, $rootScope, $interval
// d => Show/hide disk I/O stats // d => Show/hide disk I/O stats
$scope.arguments.disable_diskio = !$scope.arguments.disable_diskio; $scope.arguments.disable_diskio = !$scope.arguments.disable_diskio;
break; break;
case $event.shiftKey && $event.keyCode == keycodes.R: case $event.shiftKey && $event.keyCode == keycodes.Q:
// R => Show/hide IRQ // R => Show/hide IRQ
$scope.arguments.disable_irq = !$scope.arguments.disable_irq; $scope.arguments.disable_irq = !$scope.arguments.disable_irq;
break; break;

View File

@ -74,7 +74,7 @@ class Plugin(GlancesPlugin):
self.view_data['sort_cpu_times'] = msg_col.format('t', 'Sort processes by TIME') self.view_data['sort_cpu_times'] = msg_col.format('t', 'Sort processes by TIME')
self.view_data['show_hide_help'] = msg_col2.format('h', 'Show/hide this help screen') self.view_data['show_hide_help'] = msg_col2.format('h', 'Show/hide this help screen')
self.view_data['show_hide_diskio'] = msg_col.format('d', 'Show/hide disk I/O stats') self.view_data['show_hide_diskio'] = msg_col.format('d', 'Show/hide disk I/O stats')
self.view_data['show_hide_irq'] = msg_col2.format('R', 'Show/hide IRQ stats') self.view_data['show_hide_irq'] = msg_col2.format('Q', 'Show/hide IRQ stats')
self.view_data['view_network_io_combination'] = msg_col2.format('T', 'View network I/O as combination') self.view_data['view_network_io_combination'] = msg_col2.format('T', 'View network I/O as combination')
self.view_data['show_hide_filesystem'] = msg_col.format('f', 'Show/hide filesystem stats') self.view_data['show_hide_filesystem'] = msg_col.format('f', 'Show/hide filesystem stats')
self.view_data['view_cumulative_network'] = msg_col2.format('U', 'View cumulative network I/O') self.view_data['view_cumulative_network'] = msg_col2.format('U', 'View cumulative network I/O')