Skip to content

About

A module for the MagicMirror 2 that adds touch buttons for showing/hiding other modules.

Topics

Resources

Code of conduct

Stars

19 stars

Watchers

4 watching

Forks

Repository files navigation

MMM-Modulebar

This is an extension for MagicMirror².

This module adds a touch menu to hide or show the modules defined in config.js.

The all button covers the screen with a black overlay and leaves its restore button accessible. Press it again to restore the previous view, including the visibility of any swapped modules. Legacy display: none rules for .paint-it-black in custom.css are supported.

Screenshots

Module with symbols only in row mode:

Modulebar Row Symbols

Module with symbols only in column mode:

Modulebar Column Symbols

Module with symbols and text in column mode:

Modulebar Column Symbols Text

Module with symbols and text in row mode:

Modulebar Row Symbols Text

This is my own mirrors view (Bottom Bar) using some addition in the custom.css see below

Modulebar Custom CSS

Installation

In your terminal, go to your MagicMirror² modules folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/Snille/MMM-Modulebar.git
cd MMM-Modulebar

Update

To update the module:

cd ~/MagicMirror/modules/MMM-Modulebar
git pull
npm ci --omit=dev

Using The Module

To use this module, add it to config/config.js:

{
	module: "MMM-Modulebar",
	position: "bottom_bar", // This can be any of the regions.
	header: "Modules", // Optional
	classes: "default everyone", // Optional
	config: {
		// See 'Configuration options' for more information.
	}
},

Configuration Options

The following properties can be configured:

Option Default Description
allowForce false Allow the module to force modules to be shown (if hidden and locked by ex. profile-switcher).

Possible values: true or false
forceSwap [] Module names that replace each other when shown using this bar. Showing one member hides visible members with a different name. Buttons outside this list work independently. See Swapping Modules.
showBorder true Determines if the border around the buttons should be shown.

Possible values: true or false
minWidth 0px The minimum width for all the buttons.

Possible values: css length
minHeight 0px The minimum height for all the buttons.

Possible values: