• Stars
    star
    2,234
  • Rank 20,419 (Top 0.5 %)
  • Language
    C
  • License
    Do What The F*ck ...
  • Created over 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

display manager with console UI

Ly - a TUI display manager

Ly screenshot

Ly is a lightweight TUI (ncurses-like) display manager for Linux and BSD.

Dependencies

  • a C99 compiler (tested with tcc and gcc)
  • a C standard library
  • GNU make
  • pam
  • xcb
  • xorg
  • xorg-xauth
  • mcookie
  • tput
  • shutdown

On Debian-based distros running apt install build-essential libpam0g-dev libxcb-xkb-dev as root should install all the dependencies for you. For Fedora try running dnf install make automake gcc gcc-c++ kernel-devel pam-devel libxcb-devel

Support

The following desktop environments were tested with success

  • awesome
  • bspwm
  • budgie
  • cinnamon
  • deepin
  • dwm
  • enlightenment
  • gnome
  • i3
  • kde
  • labwc
  • lxde
  • lxqt
  • mate
  • maxx
  • pantheon
  • qtile
  • spectrwm
  • sway
  • windowmaker
  • xfce
  • xmonad

Ly should work with any X desktop environment, and provides basic wayland support (sway works very well, for example).

systemd?

Unlike what you may have heard, Ly does not require systemd, and was even specifically designed not to depend on logind. You should be able to make it work easily with a better init, changing the source code won't be necessary :)

Cloning and Compiling

Clone the repository

$ git clone --recurse-submodules https://github.com/fairyglade/ly

Change the directory to ly

$ cd ly

Compile

$ make

Test in the configured tty (tty2 by default) or a terminal emulator (but desktop environments won't start)

# make run

Install Ly and the provided systemd service file

# make install installsystemd

Enable the service

# systemctl enable ly.service

If you need to switch between ttys after Ly's start you also have to disable getty on Ly's tty to prevent "login" from spawning on top of it

# systemctl disable [email protected]

OpenRC

Clone, compile and test.

Install Ly and the provided OpenRC service

# make install installopenrc

Enable the service

# rc-update add ly

You can edit which tty Ly will start on by editing the tty option in the configuration file.

If you choose a tty that already has a login/getty running (has a basic login prompt), then you have to disable the getty so it doesn't respawn on top of ly

# rc-update del agetty.tty2

runit

$ make
# make install installrunit
# ln -s /etc/sv/ly /var/service/

By default, ly will run on tty2. To change the tty it must be set in /etc/ly/config.ini

You should as well disable your existing display manager service if needed, e.g.:

# rm /var/service/lxdm

The agetty service for the tty console where you are running ly should be disabled. For instance, if you are running ly on tty2 (that's the default, check your /etc/ly/config.ini) you should disable the agetty-tty2 service like this:

# rm /var/service/agetty-tty2

Arch Linux Installation

You can install ly from the [extra] repos:

$ sudo pacman -S ly

Configuration

You can find all the configuration in /etc/ly/config.ini. The file is commented, and includes the default values.

Controls

Use the up and down arrow keys to change the current field, and the left and right arrow keys to change the target desktop environment while on the desktop field (above the login field).

.xinitrc

If your .xinitrc doesn't work make sure it is executable and includes a shebang. This file is supposed to be a shell script! Quoting from xinit's man page:

If no specific client program is given on the command line, xinit will look for a file in the user's home directory called .xinitrc to run as a shell script to start up client programs.

On Arch Linux, the example .xinitrc (/etc/X11/xinit/xinitrc) starts like this:

#!/bin/sh

Tips

The numlock and capslock state is printed in the top-right corner. Use the F1 and F2 keys to respectively shutdown and reboot. Take a look at your .xsession if X doesn't start, as it can interfere (this file is launched with X to configure the display properly).

PSX DOOM fire animation

To enable the famous PSX DOOM fire described by Fabien Sanglard, just uncomment animate = true in /etc/ly/config.ini. You may also disable the main box borders with hide_borders = true.

Additional Information

The name "Ly" is a tribute to the fairy from the game Rayman. Ly was tested by oxodao, who is some seriously awesome dude.

More Repositories

1

excalibar

sharp and shiny taskbar
C
39
star
2

globox

portable windowing library (Linux, Windows, macOS)
C
37
star
3

argoat

goat-based command-line arg parser
C
36
star
4

ghck

The C code typed by Dr. Willis in Ghost in the Shell (1995)
C
29
star
5

mpiric

portable, fast, approximate math functions
C
25
star
6

gog_tomb_raider_extractor

extracts data from gog's tomb raider trilogy setup executable for use with OpenLara or OpenTomb
Shell
12
star
7

sshram

USB tool for portable SSH key management
C
10
star
8

willis

independent and portable lib for low-level input handling
C
9
star
9

instant_macos_sdk

download the macOS SDK legally without an Apple account
Shell
9
star
10

dpishit

portable pixel-density information getter
C
8
star
11

testoasterror

goat-based minimalistic C unit testing library
C
7
star
12

cursoryx

portable mouse cursor library
Shell
6
star
13

mechascribe

Portable, Noto-powered font-rendering abstraction based on FreeType and Raqm
C
4
star
14

configator

goat-based ini config parser
C
4
star
15

dragonfail

goat-based error handler
C
4
star
16

instant_osx

one-click macOS-Simple-KVM installer for ArchLinux
Shell
4
star
17

bayou

n-tree memory pool
C
3
star
18

cylinder_scripts

scripts for cylinder iOS tweak (https://github.com/rweichler/cylinder)
Lua
3
star
19

cp77_wiimote_driving_tutorial

wiimote driving controls on cyberpunk 2077 (tutorial)
2
star
20

plymouth_psx

PSX boot animation for plymouth
2
star
21

wii_ios_backup

tools to make a full IOS backup from NUS
2
star
22

razorbeard

simple & humble widget toolkit
C
2
star
23

freeture

WTFPL licensed faithful 16x16 minecraft texturepack
2
star
24

hydraquill

library for providing compressed "Noto" fonts (Linux, Windows, macOS)
Shell
2
star
25

snippets

C
1
star
26

bayou_demo

simple memory management illustration with bayou
C
1
star
27

bwshrink

bit-packing tool for black and white rgb data
C
1
star
28

chrono

timer stuff
C
1
star
29

doltool

dol gamecube & wii utility by loser / TenOfTen / deufeufeu / Steve_-
C++
1
star
30

math32

integer math
C
1
star
31

brain_analysis_logs

logs from the brain analysis of the interpreter, in 1995 ghost in the shell
1
star