Skip to content

Latest commit

 

History

History
78 lines (66 loc) · 5.03 KB

readme.md

File metadata and controls

78 lines (66 loc) · 5.03 KB

lcarswm

lcarswm or LCARS Window Manager is a window manager written in Kotlin that is designed to look like an LCARS interface.

lcarswm has two kinds of monitors, one primary monitor (which maps to the X primary monitor) and "other" monitors. Only the primary screen has the upper (currently empty) information area and the side bar that shows the app menu. The information area and the app menu are only visible in the normal screen mode. There are three screen modes:

  • Normal mode: app menu and information area on the primary screen, upper and lower bars on the other screens
  • Maximized mode: upper and lower bars on all screens
  • Fullscreen mode: no bars, windows are maximized

If there's no primary screen defined in the X server, then lcarswm will use the first monitor it finds as primary.

lcarswm is a stacking window manager and displays one window at a time per screen. Windows always open on the primary monitor and can be moved to other monitors with keyboard short cuts.

So far the window manager interaction is mostly based on key commands, as listed below. However windows can also be switched and closed using mouse actions by either clicking on the window or using the application menu.

The window manager's application menu is displayed in the main bar on the primary monitor in normal mode. The application menu shows all open windows and can be used to select windows or close them with mouse actions.

Checkout https://www.andreas-tennert.de/#2-0006 for images :-)

Copyright

Copyright (C) 2019 Andreas Tennert

Acknowledgements

Thank you very much to the creators of the following resources:

Functionality

  • Window title bar, with window name and different colors for active and inactive windows
  • App menu in the normal screen mode on the primary screen that lists all active windows with
    • a window selection button (blue with program name)
    • a close button (red, small without text)
  • Windows are resized when the screen resolution is changed and the size depends on the window manager mode.
  • Windows are always opened on the primary monitor
  • If a monitor is removed, it's windows are moved to the primary monitor
  • Autostart applications from *.desktop files in /etc/xdg/autostart/ and ~/.config/autostart/
  • The settings file contains key handling and general settings per user and is created as ~/.config/lcarswm/settings.xml if it doesn't exist and can be edited afterwards
    • Key handling
      • Windows + Q closes the window manager
      • Windows + M toggles the display mode between normal, maximized and fullscreen
      • Alt + Tab toggles through the windows
      • Alt + Shift + Tab toggles backwards through the windows
      • Alt + Windows + Up/Down moves the active window to other monitors
      • Alt + F4 closes the active window
      • Other key combinations can be connected to commands via a settings file
      • Modifier keys are
        • Shift
        • Ctrl
        • Alt
        • Win / Lin / Super
        • Meta
        • Hyper
      • By clicking and holding a window title bar with the left mouse button and dragging the window can be moved between monitors
    • General settings
      • title: title that is displayed in the top bar in normal and maximized mode
      • title-image: optional, path to image in XPM format, if set, it will be shown instead of the title. Should have a height of 40px and be at least 16px shorter then the normal modes' top bar.
      • font: the font used for drawing the title and the window titles

Required

For compiling

  • header files and development libraries for XLib, randr, xpm, libxml2, glib and pango. Check the circle ci config file to find the build dependencies in the install routines for Ubuntu.

For using

  • Ubuntu Condensed font: It comes close enough to LCARS letters and is used by lcarswm as default for writing.
  • Libraries for XLib, randr, xpm, libxml2, glib and pango. Check the circle ci config file for details via the corresponding dev libs.
  • Python 3.8 with Python 3 PyGObject, posix-ipc, numpy, psutil and pyalsaaudio packages for the app menu
  • The applications for the default keybindings are recommended in the debian setup and are xterm, firefox and alsa-utils (amixer). The default application key bindings are
    • Lin+T -> xterm
    • Lin+B -> firefox (B for browser)
    • Audio-keys -> amixer ... (mute toggle, louder, quieter)

Credits

Original author: Andreas Tennert
Current author: Andreas Tennert