mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
initial commit
This commit is contained in:
99
res/config.ini
Normal file
99
res/config.ini
Normal file
@@ -0,0 +1,99 @@
|
||||
# animation enabled
|
||||
#animate = false
|
||||
#animate = true
|
||||
|
||||
# the active animation (only animation '0' available for now)
|
||||
#animation = 0
|
||||
|
||||
# the char used to mask the password
|
||||
#asterisk = *
|
||||
#asterisk = o
|
||||
|
||||
# background color id
|
||||
#bg = 0
|
||||
|
||||
# blank main box
|
||||
#blank_box = true
|
||||
|
||||
# erase password input on failure
|
||||
#blank_password = true
|
||||
|
||||
# console path
|
||||
#console_dev = /dev/console
|
||||
|
||||
# input active by default on startup
|
||||
#default_input = 2
|
||||
|
||||
# foreground color id
|
||||
#fg = 9
|
||||
|
||||
# remove main box borders
|
||||
#hide_borders = false
|
||||
#hide_borders = true
|
||||
|
||||
# number of visible chars on an input
|
||||
#input_len = 34
|
||||
|
||||
# active language
|
||||
#lang = en
|
||||
#lang = fr
|
||||
|
||||
# load the saved desktop and login
|
||||
#load = true
|
||||
|
||||
# main box margins
|
||||
#margin_box_h = 2
|
||||
#margin_box_v = 1
|
||||
|
||||
# total input sizes
|
||||
#max_desktop_len = 100
|
||||
#max_login_len = 255
|
||||
#max_password_len = 255
|
||||
|
||||
# cookie generator
|
||||
#mcookie_cmd = /usr/bin/mcookie
|
||||
|
||||
# event timeout in milliseconds
|
||||
#min_refresh_delta = 5
|
||||
|
||||
# default path
|
||||
#path = /sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/env
|
||||
|
||||
# command executed when pressing F2
|
||||
#restart_cmd = /sbin/shutdown -r now
|
||||
|
||||
# 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
|
||||
|
||||
# service name (pam needs this set to login)
|
||||
#service_name = login
|
||||
|
||||
# command executed when pressing F1
|
||||
#shutdown_cmd = /sbin/shutdown -a now
|
||||
|
||||
# terminal reset command (tput is faster)
|
||||
#term_reset_cmd = /usr/bin/tput reset
|
||||
|
||||
# tty in use
|
||||
#tty = 2
|
||||
|
||||
# wayland setup command
|
||||
#wayland_cmd = /etc/ly/wsetup.sh
|
||||
|
||||
# wayland desktop environments
|
||||
#waylandsessions = /usr/share/wayland-sessions
|
||||
|
||||
# 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
|
||||
45
res/lang/en.ini
Normal file
45
res/lang/en.ini
Normal file
@@ -0,0 +1,45 @@
|
||||
capslock = capslock
|
||||
err_alloc = failed memory allocation
|
||||
err_bounds = out-of-bounds index
|
||||
err_chdir = failed to open home folder
|
||||
err_console_dev = failed to access console
|
||||
err_dgn_oob = log message
|
||||
err_domain = invalid domain
|
||||
err_hostname = failed to get hostname
|
||||
err_mlock = failed to lock password memory
|
||||
err_null = null pointer
|
||||
err_pam = pam transaction failed
|
||||
err_pam_abort = pam transaction aborted
|
||||
err_pam_acct_expired = account expired
|
||||
err_pam_auth = authentication error
|
||||
err_pam_authinfo_unavail = failed to get user info
|
||||
err_pam_authok_reqd = token expired
|
||||
err_pam_buf = memory buffer error
|
||||
err_pam_cred_err = failed to set credentials
|
||||
err_pam_cred_expired = credentials expired
|
||||
err_pam_cred_insufficient = insufficient credentials
|
||||
err_pam_cred_unavail = failed to get credentials
|
||||
err_pam_maxtries = reached maximum tries limit
|
||||
err_pam_perm_denied = permission denied
|
||||
err_pam_session = session error
|
||||
err_pam_sys = system error
|
||||
err_pam_user_unknown = unknown user
|
||||
err_path = failed to set path
|
||||
err_perm_dir = failed to change current directory
|
||||
err_perm_group = failed to downgrade group permissions
|
||||
err_perm_user = failed to downgrade user permissions
|
||||
err_pwnam = failed to get user info
|
||||
err_user_gid = failed to set user GID
|
||||
err_user_init = failed to initialize user
|
||||
err_user_uid = failed to set user UID
|
||||
err_xsessions_dir = failed to find sessions folder
|
||||
err_xsessions_open = failed to open sessions folder
|
||||
f1 = F1 shutdown
|
||||
f2 = F2 reboot
|
||||
login = login:
|
||||
logout = logged out
|
||||
numlock = numlock
|
||||
password = password:
|
||||
shell = shell
|
||||
wayland = wayland
|
||||
xinitrc = xinitrc
|
||||
45
res/lang/fr.ini
Normal file
45
res/lang/fr.ini
Normal file
@@ -0,0 +1,45 @@
|
||||
capslock = verr.maj
|
||||
err_alloc = échec d'allocation mémoire
|
||||
err_bounds = indice hors-limite
|
||||
err_chdir = échec de l'ouverture du répertoire home
|
||||
err_console_dev = échec d'accès à la console
|
||||
err_dgn_oob = message
|
||||
err_domain = domaine invalide
|
||||
err_hostname = échec de captation du nom d'hôte
|
||||
err_mlock = échec du verrouillage mémoire
|
||||
err_null = pointeur null
|
||||
err_pam = échec de la transaction pam
|
||||
err_pam_abort = transaction pam avortée
|
||||
err_pam_acct_expired = compte expiré
|
||||
err_pam_auth = erreur d'authentification
|
||||
err_pam_authok_reqd = tiquet expiré
|
||||
err_pam_authinfo_unavail = échec de l'obtention des infos utilisateur
|
||||
err_pam_buf = erreur de mémoire tampon
|
||||
err_pam_cred_err = échec de la modification des identifiants
|
||||
err_pam_cred_expired = identifiants expirés
|
||||
err_pam_cred_insufficient = identifiants insuffisants
|
||||
err_pam_cred_unavail = échec de l'obtention des identifiants
|
||||
err_pam_maxtries = limite d'essais atteinte
|
||||
err_pam_perm_denied = permission refusée
|
||||
err_pam_session = erreur de session
|
||||
err_pam_sys = erreur système
|
||||
err_pam_user_unknown = utilisateur inconnu
|
||||
err_path = échec de la modification du path
|
||||
err_perm_dir = échec de changement de répertoire
|
||||
err_perm_group = échec du déclassement des permissions de groupe
|
||||
err_perm_user = échec du déclassement des permissions utilisateur
|
||||
err_pwnam = échec de captation des infos utilisateur
|
||||
err_user_gid = échec de modification du GID
|
||||
err_user_init = échec d'initialisation de l'utilisateur
|
||||
err_user_uid = échec de modification du UID
|
||||
err_xsessions_dir = échec de la recherche du dossier de sessions
|
||||
err_xsessions_open = échec de l'ouverture du dossier de sessions
|
||||
f1 = F1 éteindre
|
||||
f2 = F2 redémarrer
|
||||
login = identifiant :
|
||||
logout = déconnection
|
||||
numlock = verr.num
|
||||
password = mot de passe :
|
||||
shell = shell
|
||||
wayland = wayland
|
||||
xinitrc = xinitrc
|
||||
15
res/ly.service
Normal file
15
res/ly.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=TUI display manager
|
||||
After=systemd-user-sessions.service plymouth-quit-wait.service
|
||||
After=getty@tty2.service
|
||||
|
||||
[Service]
|
||||
Type=idle
|
||||
ExecStart=/usr/bin/ly
|
||||
StandardInput=tty
|
||||
TTYPath=/dev/tty2
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
|
||||
[Install]
|
||||
Alias=display-manager.service
|
||||
31
res/valgrind.supp
Normal file
31
res/valgrind.supp
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
pam
|
||||
Memcheck:Leak
|
||||
...
|
||||
obj:/usr/lib/libpam.so.0.84.2
|
||||
...
|
||||
}
|
||||
|
||||
{
|
||||
termbox
|
||||
Memcheck:Leak
|
||||
...
|
||||
fun:tb_init
|
||||
...
|
||||
}
|
||||
|
||||
{
|
||||
libc/dynamic
|
||||
Memcheck:Leak
|
||||
...
|
||||
fun:_dl_catch_exception
|
||||
...
|
||||
}
|
||||
|
||||
{
|
||||
libc/groups
|
||||
Memcheck:Leak
|
||||
...
|
||||
fun:initgroups
|
||||
...
|
||||
}
|
||||
54
res/wsetup.sh
Executable file
54
res/wsetup.sh
Executable file
@@ -0,0 +1,54 @@
|
||||
#!/bin/sh
|
||||
# wayland-session - run as user
|
||||
# Copyright (C) 2015-2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
|
||||
|
||||
# This file is extracted from kde-workspace (kdm/kfrontend/genkdmconf.c)
|
||||
# Copyright (C) 2001-2005 Oswald Buddenhagen <ossi@kde.org>
|
||||
|
||||
# Note that the respective logout scripts are not sourced.
|
||||
case $SHELL in
|
||||
*/bash)
|
||||
[ -z "$BASH" ] && exec $SHELL $0 "$@"
|
||||
set +o posix
|
||||
[ -f /etc/profile ] && . /etc/profile
|
||||
if [ -f $HOME/.bash_profile ]; then
|
||||
. $HOME/.bash_profile
|
||||
elif [ -f $HOME/.bash_login ]; then
|
||||
. $HOME/.bash_login
|
||||
elif [ -f $HOME/.profile ]; then
|
||||
. $HOME/.profile
|
||||
fi
|
||||
;;
|
||||
*/zsh)
|
||||
[ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
|
||||
[ -d /etc/zsh ] && zdir=/etc/zsh || zdir=/etc
|
||||
zhome=${ZDOTDIR:-$HOME}
|
||||
# zshenv is always sourced automatically.
|
||||
[ -f $zdir/zprofile ] && . $zdir/zprofile
|
||||
[ -f $zhome/.zprofile ] && . $zhome/.zprofile
|
||||
[ -f $zdir/zlogin ] && . $zdir/zlogin
|
||||
[ -f $zhome/.zlogin ] && . $zhome/.zlogin
|
||||
emulate -R sh
|
||||
;;
|
||||
*/csh|*/tcsh)
|
||||
# [t]cshrc is always sourced automatically.
|
||||
# Note that sourcing csh.login after .cshrc is non-standard.
|
||||
wlsess_tmp=`mktemp /tmp/wlsess-env-XXXXXX`
|
||||
$SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c 'export -p' >! $wlsess_tmp"
|
||||
. $wlsess_tmp
|
||||
rm -f $wlsess_tmp
|
||||
;;
|
||||
*/fish)
|
||||
[ -f /etc/profile ] && . /etc/profile
|
||||
xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX`
|
||||
$SHELL --login -c "/bin/sh -c 'export -p' > $xsess_tmp"
|
||||
. $xsess_tmp
|
||||
rm -f $xsess_tmp
|
||||
;;
|
||||
*) # Plain sh, ksh, and anything we do not know.
|
||||
[ -f /etc/profile ] && . /etc/profile
|
||||
[ -f $HOME/.profile ] && . $HOME/.profile
|
||||
;;
|
||||
esac
|
||||
|
||||
exec $@
|
||||
4
res/xsetup.sh
Executable file
4
res/xsetup.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
~/.xsession
|
||||
exec $@
|
||||
Reference in New Issue
Block a user