Parts of the LCARS Desktop Environment
lcarsde consists of five parts. The core is the window manager lcarswm. It handles the windows and draws the main frame. On the left lower big bar is the application menu that lists open windows and allows to focus and close them. On the top area is the status bar that shows system information and provides a few adjustable buttons. Additionally, there is a program selection for listing and running installed software as well as a logout application that allows to shutdown, restart, or logout. These two applications will show up in the main area when they are selected.
The following picture shows an overview of the primary screen with the colorful status bar on the top, the program menu on the left and a browser window in the main area.
Back to index
LCARS Window Manager
The window manager lcarswm takes care of managing the windows. That is, it manages the windows showing and hiding and drawing its frame with the title bar below the window. It also handles actions to move windows from screen to screen and changing their size in the different screen modes. It also draws the basic frame, which is shown without any windows in the following image.
What are the basic things, that can be done with the window manager? There are some default key bindings as well as a configuration that can be adjusted to your needs. First, these are the default key bindings:
- Win+Q: close the window manager
- Win+M: toggle display mode between normal, maximized and fullscreen
- Alt+Tab: toggle through the windows
- Alt+Win+Up/Down: move the focused window to another monitor
- Alt+F4: close the focused window
Windows can also be moved to other monitors by clicking, holding and dragging the titlebar of a window. The titlebar is below the window.
There are a view more key bindings that will open programs, but those are probably what needs to be adjusted, which brings us to configuration files. There is one configuration file for lcarswm located in /etc/lcarsde: settings.xml. Don't edit the files in this directory! Instead, if they need adjustment, copy them to ~/.config/lcarsde and adjust them there.
settings.xml contains key bindings for window manager actions and command executions. Especially the executions may be something to change and/or extend. Check the file for examples. Possible modifier keys are: Shift, Ctrl, Alt, Win/Lin/Super, Meta, Hyper. Below the key bindings, there are some general settings, which are the title, that is shown in the top frame part and the font that is used by the window manager. It is possible to set a title image, which overrides the title. The image has to be an xpm file with a height of 40 pixels and its width should be smaller then the space for the top blue bar.
lcarswm will also autostart any applications that are defined in *.desktop files that are in /etc/xdg/autostart/ or ~/.config/autostart/. The autostart of lcarswm follows the Desktop Autostart Specification. You can use
NotShowIn to specify, which window manager should load which applications. You can copy the file from /etc/xdg/autostart to ~/.config/autostart and adjust the lines in there. The file in your home folder will override the global one in /etc. For instance you can add
NotShowIn=lcarsde. Multiple wm entries are separated by comma.
Back to index
The status bar shows some system information like CPU usage and connectivity status and offers some buttons to perform actions like open a program or adjusting the sound. The status bar is shown in the following image.
The widgets, that are shown in the status bar can be configured. The fields with numbers on the left side are randomly generated to fill the otherwise empty space. status-config.xml is the default configuration and located in /etc/lcarsde. To adjust the settings for a user copy it to ~/.config/lcarsde and modify it there.
Every widget has a position setting. The position setting contains an x and y coordinate and its width and height, each in cells of the status bar grid. The status bar grid is always three cells high. The amount of vertical cells depends on the screen resolution. The x and y coordinates start at 0. The counting of x coordinates goes right to left (for design reasons). The counting of y coordinates goes from top to bottom. So, x=0, y=0 is in the top right corner of the status bar and x=4, y=2 is at the bottom of the status bar and 3 cells away from its right border.
The current available widgets with their special settings are:
- Shows the current time.
- Shows the current date.
- Shows the current star date (based on some TNG time calculation I found somewhere).
- Shows a graph with the temperatures from the computer temperature sensors.
- Shows a graph with the current usages of the different CPU cores.
- Shows the volume level and provides buttons for basic audio actions.
getDataneeds to be an executable or script that provides the audio status. It needs to print
volume;mutedwhere volume is a percentage from 0% to 100% and muted is yes or 1 for muted and no or 0 for unmuted. An example of the output would be 50%;no.
toggleMuteneeds to be a command that toggles the mute status.
raiseVolumeneeds to be a command that raises the volume.
lowerVolumeneeds to be a command that lowers the volume.
- Shows the computers battery status.
deviceneeds to be the name of a folder in the directory /sys/class/power_supply, for instance BAT0.
- Shows the status of a wifi connector.
deviceneeds to be the name of a folder in the directory /sys/class/net. The folder name should start with w to indicate a wifi device, like wlp1s0.
- Shows the status of an ethernet connector.
deviceneeds to be the name of a folder in the directory /sys/class/net. The folder name should start with e to indicate an ethernet device, like enp0s2.
- Button for executing a command/running a program.
textdefines the text of the button.
commandneeds to be the command to run.
colordefines the button color as hex color code.
- Shows the current memory usage.
- Used to fill empty space in the status bar; there's usually no need to explicitly configure it.
Back to index
The application selection lists all installed programs (with a desktop file) in their categories and allows to run them by clicking on the programs button. In the default status bar configuration, this application is available via the button that is labeled "programs". The following image shows the program selection.
Back to index
The logout application offers buttons for logout, shutdown, restart, ... . In the default status bar configuration, this application is available via the button that is labeled "close". The following image shows the logout application.
Back to index