Work In Progress


Moksha Desktop for Artix Linux

Package repository of Moksha for Artix Linux as well as Arch and derivatives.

Updated for the 2024 release

Introduction

Moksha Window Manager and Desktop Environment

Credits

All credits for Moksha go to the developers of Moksha.

Moksha is a fork of Enlightenment release E17, and focuses on stability and low resource usage. It is developed for Bodhi Linux, but can also be used on other distributions.

In 2010 the Moksa fork was created to get more focus on quality and stability. Also the resulting Window Manager and Desktop Envrionment were integrated with a Ubuntu distribution. This became the Moksha Desktop Environment on Bodhi Linux

Moksha is known as a Window Manager but provides most of the functionality found in much more resource-hungry Desktop Environments. You could say that it straddles the line between a Window Manager and a Desktop Environment.

Moksha is written using the Enlightenment Foundation Libraries (EFL), and remains in active development to this day.

Two ideals and qualities of Moksha are:

  1. Minimalism: A default install of Moksha will run in less than 100 MB of RAM. That is FAR less than most modern Windows Managers, not to mention complete Desktop Environments. But it doesn't come at the expense of great looks or functionality. Moksha is one of the most elegant Window Managers available and is highly extensible through the use of Modules.
  2. User Choice: Moksha is likely the most highly configurable Window Manager in existence, so you can make your system look and work the way you want.

Moksha for Artix Linux has been built completely from source on Artix Linux.

Random desktops can look like this (click on image for full size): [[Attach:moksha-for-artix.png Δ|Attach:moksha-for-artix.png Δ ]] [[Attach:moksha-for-artix-2.png Δ|Attach:moksha-for-artix-2.png Δ ]]

Available Help Resources

Moksha for Artix has 3 menu items for getting help:

  1. Applications / System Tools / Artix Moksha help → Moksha info and help for Artix as link to this page
  2. Applications / System Tools / Moksha Quickstart → Moksha Quickstart as link to a installed, localized html page
  3. Moksha Desktop / Help → Moksha Guide on the Bodhi Linux site

Installation

To install Moksha add the following to the /etc/pacman.conf file:

[moksha]
Server = https://omniverse.artixlinux.org/$arch/moksha2024test

Moksha

Moksha can be installed using: pacman -Sy moksha

This will also install packages moksha-help, moksha-menu and moksha-arandr, where the last one is required for setting up and saving the display configuration as explained below.

There a are two additional package groups available:

Additional Moksha Modules (optional)

These are the modules with which Moksha's functionallity can be extended. These can be installed separately or all using: sudo pacman -Sy moksha-modules-extra

A desription of all modules can be found here https://www.bodhilinux.com/softwaregroup/modules/

Additional Moksha Themes (optional)

These are the themes for Moksha, and can be installed separately or all together using: sudo pacman -Sy moksha-themes

Additional Packages (optional)


LightDM

Moksha integrates nicely with eg. LightDM. To use this install eg. lightdm, lightdm-runit/openrc/s6/suite66/dinit and lightdm-gtk-greeter, or as alternative for lightdm-gtk-greeter install and set up lightdm-slick-greeter, eg: sudo pacman -Sy lightdm lightdm-runit lightdm-gtk-greeter and enable and start the lightdm service

It is also possible to start Moksha by inserting command 'enlightenment_start' in file .xinitrc and running command 'startx'.

ACPID

Install acpid and its service for power events, laptop lid events and backlight, eg.: sudo pacman -Sy acpid-runit enable and start the acpid service.

Terminmal emulator

Enlightenment and Moksa have their own terminal emulator called Terminology which can be installed from the terminology package. It has no scrollbar but a mini view instead, and does have a lot of features: https://www.enlightenment.org/about-terminology

Setup and Usage

Important! The Mixer module should only be enabled when Pulse Audio is installed and active. It should not be used with Pipewire audio, even if pipewire-pulse is enabled; this will eventually result in a frozen desktop. For Pipewire audio eg. the pasystray package can be installed and used, together with pavucontrol.

Elogind and Seatd

Moskha on Artix can be used with elogind and seatd.

Init Systems

Moskha on Artix can be used with all init system supported by Artix.

Menu Expansion

By moving the mouse over the Main Menu items you get to sub-menus, and mousing over these may lead to further sub-menus (sub-menus may sometimes 'disappear' off the right of the screen; if this happens simply move the mouse pointer to the right edge of the screen and the menus will shift to the left).

Startup Applications

These can be enabled in the Applcations section of the Settings menu.

Startup Commands and Scripts

To specify commands and scripts to be executed when Moksha starts, these need to be inserted in file .e/e/applications/startup/startupcommands as eg.:

conky -p 1 -d | \
picom

Note: The pipe symbol '|' is needed to separate commands in this file

Shutdown and Reboot Arguments

Depending on the init system that is being used, specific arguments have to be set for the shutdown and reboot commands. This is done in file: /etc/enlightenment/sysactions.conf which is updated automatically by pacman.

# ENLIGHTENMENT SYSTEM ACTIONS CONFIGURATION
#
# ...
#
# shutdown and reboot commands commands for dinit:
action:   halt      /sbin/shutdown -p
action:   reboot    /sbin/shutdown -r

Note: When switching to another init system, these commands might need to be updated.

Multi Screen Setup

When using multiple screens it can be usefull to set up the login screen identical to what is used and saved for the session. For LightDM this can be done as follows:

  • Setup the screens using Monitor Settings / ARandR and save it
  • Check and remove the 'xrandr ...' line from file ~/.e/e/applications/startup/startupcommands
  • Put this line into the [Seat:*] section of file /etc/lightdm/lightdm.conf as 'display-setup-script=xrandr ...'
  • Optionally add an agrument to the xrandr command for the screen refresh frequency.

Screenshot Tools

The Print-Screen key starts the Shot module which can be use as a simple sreenshot tool. Package moksha-modules-screenshot can be installed to obtain the Screenshot module which has more features. Once this module has been enabled it is available as a systray iocn. It uses the emprint program which can also be called directly using eg: emprint --region screenshot`date "+T"`.png for which eg. a keybinding can be created.

Module Configuration Files

The configuration files for the Moksha modules are in binary format. For each module up to 10 numbered versions are stored in directory: ~/.e/e/config/default/<module>

Configuration Backup

To make a complete backup of the Moksha configuration setup, simply copy directories ~/e and ~/.elementary
When downgrading, file /etc/enlightenment/sysactions.conf might be overwritten, so backup this file as well.

Potentional Issues

Shutdown or reboot not completing

In case a reboot or shutdown results in a hanging popup showing "Resetting", most probably the reboot or shutdown command is incorrectly set in file /usr/etc/enlightenment/sysactions.conf

Flashing or rapidly alternating windows

In case application windows start rapidly alternating focus, in the Settings Panel for Windows / Windows Display, select Allow windows partly/completely out of visual screen limits.


Maintainer: artist for Artix Linux

Last update: 27 Jul 2024