mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
Arrange config alphabetically
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
172
res/config.ini
172
res/config.ini
@@ -1,6 +1,3 @@
|
|||||||
# The number of failed authentications before a special animation is played... ;)
|
|
||||||
auth_fails = 10
|
|
||||||
|
|
||||||
# The active animation
|
# The active animation
|
||||||
# none -> Nothing (default)
|
# none -> Nothing (default)
|
||||||
# doom -> PSX DOOM fire
|
# doom -> PSX DOOM fire
|
||||||
@@ -12,28 +9,13 @@ animation = none
|
|||||||
# 1..2e12 -> Stop the animation after this many seconds
|
# 1..2e12 -> Stop the animation after this many seconds
|
||||||
animation_timeout_sec = 0
|
animation_timeout_sec = 0
|
||||||
|
|
||||||
# Format string for clock in top right corner (see strftime specification). Example: %c
|
|
||||||
# If null, the clock won't be shown
|
|
||||||
clock = null
|
|
||||||
|
|
||||||
# Enable/disable big clock
|
|
||||||
bigclock = false
|
|
||||||
|
|
||||||
# The character used to mask the password
|
# The character used to mask the password
|
||||||
# If null, the password will be hidden
|
# If null, the password will be hidden
|
||||||
# Note: you can use a # by escaping it like so: \#
|
# Note: you can use a # by escaping it like so: \#
|
||||||
asterisk = *
|
asterisk = *
|
||||||
|
|
||||||
# Erase password input on failure
|
# The number of failed authentications before a special animation is played... ;)
|
||||||
clear_password = false
|
auth_fails = 10
|
||||||
|
|
||||||
# Enable vi keybindings
|
|
||||||
vi_mode = false
|
|
||||||
|
|
||||||
# Default vi mode
|
|
||||||
# normal -> normal mode
|
|
||||||
# insert -> insert mode
|
|
||||||
vi_default_mode = normal
|
|
||||||
|
|
||||||
# The `fg` and `bg` color settings take a digit 0-8 corresponding to:
|
# The `fg` and `bg` color settings take a digit 0-8 corresponding to:
|
||||||
#define TB_DEFAULT 0x00
|
#define TB_DEFAULT 0x00
|
||||||
@@ -57,88 +39,84 @@ vi_default_mode = normal
|
|||||||
# Background color id
|
# Background color id
|
||||||
bg = 0
|
bg = 0
|
||||||
|
|
||||||
# Foreground color id
|
# Enable/disable big clock
|
||||||
fg = 8
|
bigclock = false
|
||||||
|
|
||||||
# Background color errors
|
# Blank main box background
|
||||||
error_bg = 0
|
# Setting to false will make it transparent
|
||||||
|
blank_box = true
|
||||||
|
|
||||||
# Foreground color errors
|
# Border foreground color id
|
||||||
# Default is red and bold: TB_RED | TB_BOLD
|
|
||||||
error_fg = 258
|
|
||||||
|
|
||||||
# CMatrix animation foreground color id
|
|
||||||
cmatrix_fg = 3
|
|
||||||
|
|
||||||
# Border color
|
|
||||||
border_fg = 8
|
border_fg = 8
|
||||||
|
|
||||||
# Title to show at the top of the main box
|
# Title to show at the top of the main box
|
||||||
# If set to null, none will be shown
|
# If set to null, none will be shown
|
||||||
box_title = null
|
box_title = null
|
||||||
|
|
||||||
# Initial text to show on the info line
|
# Brightness +/- percentage in one step
|
||||||
# If set to null, the info line defaults to the hostname
|
brightness_change = 10
|
||||||
initial_info_text = null
|
|
||||||
|
|
||||||
# Blank main box background
|
# Brightness decrease key
|
||||||
# Setting to false will make it transparent
|
brightness_down_key = F5
|
||||||
blank_box = true
|
|
||||||
|
|
||||||
# Remove main box borders
|
# Brightness increase key
|
||||||
hide_borders = false
|
brightness_up_key = F6
|
||||||
|
|
||||||
# Main box margins
|
# Brightness control command
|
||||||
margin_box_h = 2
|
brightnessctl = $PREFIX_DIRECTORY/bin/brightnessctl
|
||||||
margin_box_v = 1
|
|
||||||
|
|
||||||
# Input boxes length
|
# Erase password input on failure
|
||||||
input_len = 34
|
clear_password = false
|
||||||
|
|
||||||
|
# Format string for clock in top right corner (see strftime specification). Example: %c
|
||||||
|
# If null, the clock won't be shown
|
||||||
|
clock = null
|
||||||
|
|
||||||
|
# CMatrix animation foreground color id
|
||||||
|
cmatrix_fg = 3
|
||||||
|
|
||||||
|
# Console path
|
||||||
|
console_dev = /dev/console
|
||||||
|
|
||||||
# Input box active by default on startup
|
# Input box active by default on startup
|
||||||
# Available inputs: info_line, session, login, password
|
# Available inputs: info_line, session, login, password
|
||||||
default_input = login
|
default_input = login
|
||||||
|
|
||||||
# Load the saved desktop and username
|
# Error background color id
|
||||||
load = true
|
error_bg = 0
|
||||||
|
|
||||||
# Save the current desktop and login as defaults
|
# Error foreground color id
|
||||||
save = true
|
# Default is red and bold: TB_RED | TB_BOLD
|
||||||
|
error_fg = 258
|
||||||
|
|
||||||
|
# Foreground color id
|
||||||
|
fg = 8
|
||||||
|
|
||||||
|
# Remove main box borders
|
||||||
|
hide_borders = false
|
||||||
|
|
||||||
# Remove power management command hints
|
# Remove power management command hints
|
||||||
hide_key_hints = false
|
hide_key_hints = false
|
||||||
|
|
||||||
# Specifies the key used for shutdown (F1-F12)
|
# Initial text to show on the info line
|
||||||
shutdown_key = F1
|
# If set to null, the info line defaults to the hostname
|
||||||
|
initial_info_text = null
|
||||||
|
|
||||||
# Specifies the key used for restart (F1-F12)
|
# Input boxes length
|
||||||
restart_key = F2
|
input_len = 34
|
||||||
|
|
||||||
# Specifies the key used for sleep (F1-F12)
|
|
||||||
sleep_key = F3
|
|
||||||
|
|
||||||
# Command executed when pressing shutdown_key
|
|
||||||
shutdown_cmd = /sbin/shutdown -a now
|
|
||||||
|
|
||||||
# Command executed when pressing restart_key
|
|
||||||
restart_cmd = /sbin/shutdown -r now
|
|
||||||
|
|
||||||
# Command executed when pressing sleep key (can be null)
|
|
||||||
sleep_cmd = null
|
|
||||||
|
|
||||||
# Active language
|
# Active language
|
||||||
# Available languages are found in $CONFIG_DIRECTORY/ly/lang/
|
# Available languages are found in $CONFIG_DIRECTORY/ly/lang/
|
||||||
lang = en
|
lang = en
|
||||||
|
|
||||||
# TTY in use
|
# Load the saved desktop and username
|
||||||
tty = $DEFAULT_TTY
|
load = true
|
||||||
|
|
||||||
# Console path
|
# Main box horizontal margin
|
||||||
console_dev = /dev/console
|
margin_box_h = 2
|
||||||
|
|
||||||
# Default path
|
# Main box vertical margin
|
||||||
# If null, ly doesn't set a path
|
margin_box_v = 1
|
||||||
path = /sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
|
|
||||||
|
|
||||||
# Event timeout in milliseconds
|
# Event timeout in milliseconds
|
||||||
min_refresh_delta = 5
|
min_refresh_delta = 5
|
||||||
@@ -146,30 +124,60 @@ min_refresh_delta = 5
|
|||||||
# Set numlock on/off at startup
|
# Set numlock on/off at startup
|
||||||
numlock = false
|
numlock = false
|
||||||
|
|
||||||
|
# Default path
|
||||||
|
# If null, ly doesn't set a path
|
||||||
|
path = /sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
|
# Command executed when pressing restart_key
|
||||||
|
restart_cmd = /sbin/shutdown -r now
|
||||||
|
|
||||||
|
# Specifies the key used for restart (F1-F12)
|
||||||
|
restart_key = F2
|
||||||
|
|
||||||
|
# Save the current desktop and login as defaults
|
||||||
|
save = true
|
||||||
|
|
||||||
# Service name (set to ly to use the provided pam config file)
|
# Service name (set to ly to use the provided pam config file)
|
||||||
service_name = ly
|
service_name = ly
|
||||||
|
|
||||||
# Setup command
|
# Setup command
|
||||||
setup_cmd = $CONFIG_DIRECTORY/ly/setup.sh
|
setup_cmd = $CONFIG_DIRECTORY/ly/setup.sh
|
||||||
|
|
||||||
|
# Command executed when pressing shutdown_key
|
||||||
|
shutdown_cmd = /sbin/shutdown -a now
|
||||||
|
|
||||||
|
# Specifies the key used for shutdown (F1-F12)
|
||||||
|
shutdown_key = F1
|
||||||
|
|
||||||
|
# Command executed when pressing sleep key (can be null)
|
||||||
|
sleep_cmd = null
|
||||||
|
|
||||||
|
# Specifies the key used for sleep (F1-F12)
|
||||||
|
sleep_key = F3
|
||||||
|
|
||||||
|
# TTY in use
|
||||||
|
tty = $DEFAULT_TTY
|
||||||
|
|
||||||
|
# Default vi mode
|
||||||
|
# normal -> normal mode
|
||||||
|
# insert -> insert mode
|
||||||
|
vi_default_mode = normal
|
||||||
|
|
||||||
|
# Enable vi keybindings
|
||||||
|
vi_mode = false
|
||||||
|
|
||||||
# Wayland desktop environments
|
# Wayland desktop environments
|
||||||
waylandsessions = $PREFIX_DIRECTORY/share/wayland-sessions
|
waylandsessions = $PREFIX_DIRECTORY/share/wayland-sessions
|
||||||
|
|
||||||
# xinitrc
|
|
||||||
# If null, the xinitrc session will be hidden
|
|
||||||
xinitrc = ~/.xinitrc
|
|
||||||
|
|
||||||
# Xorg server command
|
# Xorg server command
|
||||||
x_cmd = $PREFIX_DIRECTORY/bin/X
|
x_cmd = $PREFIX_DIRECTORY/bin/X
|
||||||
|
|
||||||
# Xorg xauthority edition tool
|
# Xorg xauthority edition tool
|
||||||
xauth_cmd = $PREFIX_DIRECTORY/bin/xauth
|
xauth_cmd = $PREFIX_DIRECTORY/bin/xauth
|
||||||
|
|
||||||
|
# xinitrc
|
||||||
|
# If null, the xinitrc session will be hidden
|
||||||
|
xinitrc = ~/.xinitrc
|
||||||
|
|
||||||
# Xorg desktop environments
|
# Xorg desktop environments
|
||||||
xsessions = $PREFIX_DIRECTORY/share/xsessions
|
xsessions = $PREFIX_DIRECTORY/share/xsessions
|
||||||
|
|
||||||
# Brightness control
|
|
||||||
brightness_down_key = F5
|
|
||||||
brightness_up_key = F6
|
|
||||||
brightnessctl = $PREFIX_DIRECTORY/bin/brightnessctl
|
|
||||||
brightness_change = 10
|
|
||||||
|
|||||||
@@ -5,22 +5,27 @@ const Animation = enums.Animation;
|
|||||||
const Input = enums.Input;
|
const Input = enums.Input;
|
||||||
const ViMode = enums.ViMode;
|
const ViMode = enums.ViMode;
|
||||||
|
|
||||||
auth_fails: u64 = 10,
|
|
||||||
animation: Animation = .none,
|
animation: Animation = .none,
|
||||||
|
animation_timeout_sec: u12 = 0,
|
||||||
asterisk: ?u8 = '*',
|
asterisk: ?u8 = '*',
|
||||||
|
auth_fails: u64 = 10,
|
||||||
bg: u16 = 0,
|
bg: u16 = 0,
|
||||||
bigclock: bool = false,
|
bigclock: bool = false,
|
||||||
blank_box: bool = true,
|
blank_box: bool = true,
|
||||||
border_fg: u16 = 8,
|
border_fg: u16 = 8,
|
||||||
box_title: ?[]const u8 = null,
|
box_title: ?[]const u8 = null,
|
||||||
|
brightness_change: []const u8 = "10",
|
||||||
|
brightness_down_key: []const u8 = "F5",
|
||||||
|
brightness_up_key: []const u8 = "F6",
|
||||||
|
brightnessctl: [:0]const u8 = build_options.prefix_directory ++ "/bin/brightnessctl",
|
||||||
clear_password: bool = false,
|
clear_password: bool = false,
|
||||||
clock: ?[:0]const u8 = null,
|
clock: ?[:0]const u8 = null,
|
||||||
|
cmatrix_fg: u16 = 3,
|
||||||
console_dev: []const u8 = "/dev/console",
|
console_dev: []const u8 = "/dev/console",
|
||||||
default_input: Input = .login,
|
default_input: Input = .login,
|
||||||
error_bg: u16 = 0,
|
error_bg: u16 = 0,
|
||||||
error_fg: u16 = 258,
|
error_fg: u16 = 258,
|
||||||
fg: u16 = 8,
|
fg: u16 = 8,
|
||||||
cmatrix_fg: u16 = 3,
|
|
||||||
hide_borders: bool = false,
|
hide_borders: bool = false,
|
||||||
hide_key_hints: bool = false,
|
hide_key_hints: bool = false,
|
||||||
initial_info_text: ?[]const u8 = null,
|
initial_info_text: ?[]const u8 = null,
|
||||||
@@ -42,15 +47,10 @@ shutdown_key: []const u8 = "F1",
|
|||||||
sleep_cmd: ?[]const u8 = null,
|
sleep_cmd: ?[]const u8 = null,
|
||||||
sleep_key: []const u8 = "F3",
|
sleep_key: []const u8 = "F3",
|
||||||
tty: u8 = build_options.tty,
|
tty: u8 = build_options.tty,
|
||||||
vi_mode: bool = false,
|
|
||||||
vi_default_mode: ViMode = .normal,
|
vi_default_mode: ViMode = .normal,
|
||||||
|
vi_mode: bool = false,
|
||||||
waylandsessions: []const u8 = build_options.prefix_directory ++ "/share/wayland-sessions",
|
waylandsessions: []const u8 = build_options.prefix_directory ++ "/share/wayland-sessions",
|
||||||
x_cmd: []const u8 = build_options.prefix_directory ++ "/bin/X",
|
x_cmd: []const u8 = build_options.prefix_directory ++ "/bin/X",
|
||||||
xinitrc: ?[]const u8 = "~/.xinitrc",
|
|
||||||
xauth_cmd: []const u8 = build_options.prefix_directory ++ "/bin/xauth",
|
xauth_cmd: []const u8 = build_options.prefix_directory ++ "/bin/xauth",
|
||||||
|
xinitrc: ?[]const u8 = "~/.xinitrc",
|
||||||
xsessions: []const u8 = build_options.prefix_directory ++ "/share/xsessions",
|
xsessions: []const u8 = build_options.prefix_directory ++ "/share/xsessions",
|
||||||
brightness_down_key: []const u8 = "F5",
|
|
||||||
brightness_up_key: []const u8 = "F6",
|
|
||||||
brightnessctl: [:0]const u8 = build_options.prefix_directory ++ "/bin/brightnessctl",
|
|
||||||
brightness_change: []const u8 = "10",
|
|
||||||
animation_timeout_sec: u12 = 0,
|
|
||||||
|
|||||||
Reference in New Issue
Block a user