docs: create dotfiles/greetd

This commit is contained in:
David Thurstenson 2024-03-09 01:26:23 +00:00 committed by David Thurstenson
parent 94454299e2
commit 761eb0a7a1
1 changed files with 42 additions and 0 deletions

42
dotfiles/greetd.md Normal file
View File

@ -0,0 +1,42 @@
---
title: Greetd
description:
published: false
date: 2024-03-09T01:26:21.021Z
tags:
editor: markdown
dateCreated: 2024-03-09T01:26:21.021Z
---
# Kiosk mode
`greetd` is great for running one full-size app started at boot with the help of [`cage`](https://www.hjdskes.nl/projects/cage/). Here are some examples
## Running a browser tab/window
## Running `bpytop`
[`bpytop`](https://github.com/aristocratos/bpytop) is a great little resource monitor. I have a server with a
```toml
[terminal]
# The VT to run the greeter on. Can be "next", "current" or a number
# designating the VT.
vt = 1
# The default session, also known as the greeter.
[default_session]
# `agreety` is the bundled agetty/login-lookalike. You can replace `/bin/sh`
# with whatever you want started, such as `sway`.
#command = "agreety --cmd /bin/sh"
#command = "fbterm -- bpytop"
command = "cage -s -- alacritty -e bpytop"
# The user to run the command as. The privileges this user must have depends
# on the greeter. A graphical greeter may for example require the user to be
# in the `video` group.
user = "thurstylark"
```