You are not logged in.

#1 2024-05-30 06:59:05

Sarazil
Member
From: England
Registered: 2024-05-30
Posts: 5

[Solved] Ly login manager not running cmatrix in the background

I installed the ly login manager on my laptop and configured it to run cmatrix in the background.
I can boot the laptop, log in as myself, and all that works, but to get cmatrix to load, I have to restart ly.service after logging in.

I've tried making it start after the multi-user target which changed nothing, and after the graphical interface which just disabled it.

Any thoughts or solutions appreciated.

Last edited by Sarazil (2024-06-02 14:30:30)

Offline

#2 2024-05-30 12:04:31

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,854

Re: [Solved] Ly login manager not running cmatrix in the background

You did install cmatrix from extra repo  ?

Please post your /etc/ly/config.ini .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-05-30 23:43:13

Sarazil
Member
From: England
Registered: 2024-05-30
Posts: 5

Re: [Solved] Ly login manager not running cmatrix in the background

Yes, cmatrix is installed via pacman from the extra repo.

Here is my config.ly:

# Animation enabled/disabled
animate = true

# The active animation
# 0 -> PSX DOOM fire (default)
# 1 -> CMatrix 
animation = 1

# format string for clock in top right corner (see strftime specification)
#clock = %c

# enable/disable big clock
#bigclock = true

# The character used to mask the password
# asterisk = X

# Erase password input on failure
blank_password = true

#The `fg` and `bg` color settings take a digit 0-8 corresponding to:
#define TB_DEFAULT 0x00
#define TB_BLACK   0x01
#define TB_RED     0x02
#define TB_GREEN   0x03
#define TB_YELLOW  0x04
#define TB_BLUE    0x05
#define TB_MAGENTA 0x06
#define TB_CYAN    0x07
#define TB_WHITE   0x08
#
# Setting both to zero makes `bg` black and `fg` white. To set the actual color palette you are encouraged to use another tool 
# such as [mkinitcpio-colors](https://github.com/evanpurkhiser/mkinitcpio-colors). Note that the color palette defined with 
# `mkinitcpio-colors` takes 16 colors (0-15), only values 0-8 are valid for `ly` config and these values do not correspond 
# exactly. For instance, in defining palettes with `mkinitcpio-colors` the order is black, dark red, dark green, brown, dark 
# blue, dark purple, dark cyan, light gray, dark gray, bright red, bright green, yellow, bright blue, bright purple, bright 
# cyan, and white, indexed in that order 0 through 15. For example, the color defined for white (indexed at 15 in the mkinitcpio 
# config) will be used by `ly` for `fg = 8`.

# Background color id
#bg = 0

# Foreground color id
#fg = 9

# Blank main box background
# Setting to false will make it transparent
#blank_box = true

# Remove main box borders
#hide_borders = false

# Main box margins
#margin_box_h = 2
#margin_box_v = 1

# Input boxes length
#input_len = 34

# Max input sizes
#max_desktop_len = 100
#max_login_len = 255
#max_password_len = 255


# Input box active by default on startup
#default_input = 2

# Load the saved desktop and username
#load = true

# Save the current desktop and login as defaults
#save = true

# File in which to save and load the default desktop and login
#save_file = /etc/ly/save


# Remove F1/F2 command hints
#hide_f1_commands = false

# Command executed when pressing F1
#shutdown_cmd = /sbin/shutdown -a now

# Command executed when pressing F2
#restart_cmd = /sbin/shutdown -r now


# Active language
# Available languages are found in /etc/ly/lang/
#lang = en


# tty in use
#tty = 2

# Console path
#console_dev = /dev/console

# Default path
#path = /sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin


# Event timeout in milliseconds
#min_refresh_delta = 5

# Service name (set to ly to use the provided pam config file)
#service_name = ly

# Terminal reset command (tput is faster)
#term_reset_cmd = /usr/bin/tput reset

# Cookie generator
#mcookie_cmd = /usr/bin/mcookie


# Wayland setup command
#wayland_cmd = /etc/ly/wsetup.sh

# Add wayland specifier to session names
#wayland_specifier = false

# Wayland desktop environments
#waylandsessions = /usr/share/wayland-sessions


# xinitrc
#xinitrc = ~/.xinitrc

# Xorg server command
#x_cmd = /usr/bin/X

# Xorg setup command
#x_cmd_setup = /etc/ly/xsetup.sh

# Xorg xauthority edition tool
#xauth_cmd = /usr/bin/xauth

# Xorg desktop environments
#xsessions = /usr/share/xsessions

For reference, I'm using Sway as a WM, so anything xorg related is less likely to be relevant.

Offline

#4 2024-05-31 09:09:57

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,854

Re: [Solved] Ly login manager not running cmatrix in the background

Sarazil wrote:

I installed the ly login manager on my laptop and configured it to run cmatrix in the background.

no sign of cmatrix in the ly config, how/where did you configure the background start ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2024-06-01 05:40:04

Sarazil
Member
From: England
Registered: 2024-05-30
Posts: 5

Re: [Solved] Ly login manager not running cmatrix in the background

The first 6 lines of the config refer to the 'animation' being enabled, and cmatrix being the selected animation.

# Animation enabled/disabled
animate = true

# The active animation
# 0 -> PSX DOOM fire (default)
# 1 -> CMatrix 
animation = 1

If, after logging in, I restart the ly service, the animation runs.

Last edited by Sarazil (2024-06-01 05:44:07)

Offline

#6 2024-06-01 09:31:05

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,854

Re: [Solved] Ly login manager not running cmatrix in the background

Guess I overlooked that.

It's  a bug in ly that has been solved by its developers.

You can wait for the fix to be in next release or switch to the aur ly-git package .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2024-06-01 10:28:09

Sarazil
Member
From: England
Registered: 2024-05-30
Posts: 5

Re: [Solved] Ly login manager not running cmatrix in the background

Ah hah! Well spotted, thank you!

Offline

#8 2024-06-02 08:52:52

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,854

Re: [Solved] Ly login manager not running cmatrix in the background

If you're satisfied with the answer, prepend [Solved] to the thread title (edit first post).


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2024-06-02 14:30:51

Sarazil
Member
From: England
Registered: 2024-05-30
Posts: 5

Re: [Solved] Ly login manager not running cmatrix in the background

Thanks, was wondering how that works.

Offline

Board footer

Powered by FluxBB