tuigreet/README.md

82 lines
3.0 KiB
Markdown
Raw Normal View History

2020-06-28 18:18:43 +03:00
# tuigreet
2020-06-27 12:40:40 +03:00
Graphical console greeter for [greetd](https://git.sr.ht/~kennylevinsen/greetd).
2020-06-27 12:40:40 +03:00
2020-06-28 18:18:43 +03:00
![Screenshot of tuigreet](https://github.com/apognu/tuigreet/blob/master/contrib/screenshot.png)
2020-06-27 12:40:40 +03:00
```
2020-06-28 18:18:43 +03:00
Usage: tuigreet [OPTIONS]
2020-06-27 12:40:40 +03:00
Options:
-h, --help show this usage information
2020-07-02 09:24:35 +03:00
-v, --version print version information
2020-06-27 12:40:40 +03:00
-c, --cmd COMMAND command to run
-w, --width WIDTH width of the main prompt (default: 80)
2020-06-27 12:40:40 +03:00
-i, --issue show the host's issue file
-g, --greeting GREETING
show custom text above login prompt
-t, --time display the current date and time
--container-padding PADDING
padding inside the main prompt container (default: 1)
--prompt-padding PADDING
padding between prompt rows (default: 1)
2020-06-27 12:40:40 +03:00
```
## Usage
The default configuration tends to be as minimal as possible, visually speaking, only showing the authentication prompts and some minor information in the status bar. You may print your system's `/etc/issue` at the top of the prompt with `--issue` and the current date and time with `--time`. You may include a custom one-line greeting message instead of `/etc/issue` with `--greeting`.
The initial prompt container will be 80 column wide. You may change this with `--width` in case you need more space (for example, to account for large PAM challenge messages). Please refer to usage information (`--help`) for more customizaton options.
You may change the command that will be executed after opening a session by hitting `F2` and amending the command. Alternatively, you can list the system-declared sessions by hitting `F3`.
## Install
### From source
Building from source requires an installation of Rust's `stable` toolchain, including `cargo`.
```
$ git clone https://github.com/apognu/tuigreet && cd tuigreet
$ cargo build --release
# mv target/release/tuigreet /usr/local/bin/tuigreet
```
### From AUR
On ArchLinux, `tuigreeter` is available on [AUR](https://aur.archlinux.org/packages/greetd-tuigreet-git) and is installable through your preferred AUR helper:
```
$ yay -S greetd-tuigreet-git
```
### From Gentoo
On Gentoo, `tuigreet` is available as a package `gui-apps/tuigreet`:
```
$ emege --ask --verbose gui-apps/tuigreet
```
### Pre-built binaries
Pre-built binaries of `tuigreet` for several architectures can be found in the [releases](https://github.com/apognu/tuigreet/releases) section of this repository. The [tip prerelease](https://github.com/apognu/tuigreet/releases/tag/tip) is continuously built and kept in sync with the `master` branch.
Actual tag releases will be created when the project stabilizes.
2020-06-27 12:40:40 +03:00
## Configuration
2020-06-28 18:18:43 +03:00
Edit `/etc/greetd/config.toml` and set the `command` setting to use `tuigreet`:
2020-06-27 12:40:40 +03:00
```
[terminal]
vt = 1
[default_session]
2020-06-28 18:18:43 +03:00
command = "tuigreet --cmd sway"
2020-06-27 12:40:40 +03:00
user = "greeter"
```
Please refer to [greetd's wiki](https://man.sr.ht/~kennylevinsen/greetd/) for more information on setting up `greetd`.