From a87223cf1460d6579e478ca5d6a1905abbe7b609 Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Mon, 11 Apr 2022 10:01:49 -0400 Subject: [PATCH] greetd: set shell for agreety, change default vt --- srcpkgs/greetd/patches/change-default-vt.patch | 13 +++++++++++++ srcpkgs/greetd/patches/fix-shell.patch | 17 +++++++++++++++++ srcpkgs/greetd/template | 2 +- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/greetd/patches/change-default-vt.patch create mode 100644 srcpkgs/greetd/patches/fix-shell.patch diff --git a/srcpkgs/greetd/patches/change-default-vt.patch b/srcpkgs/greetd/patches/change-default-vt.patch new file mode 100644 index 000000000000..3dad61740587 --- /dev/null +++ b/srcpkgs/greetd/patches/change-default-vt.patch @@ -0,0 +1,13 @@ +diff --git a/config.toml b/config.toml +index 3768a6e315..2a933309b4 100644 +--- a/config.toml ++++ b/config.toml +@@ -1,7 +1,7 @@ + [terminal] + # The VT to run the greeter on. Can be "next", "current" or a number + # designating the VT. +-vt = 1 ++vt = 7 + + # The default session, also known as the greeter. + [default_session] diff --git a/srcpkgs/greetd/patches/fix-shell.patch b/srcpkgs/greetd/patches/fix-shell.patch new file mode 100644 index 000000000000..fbe416cbed8d --- /dev/null +++ b/srcpkgs/greetd/patches/fix-shell.patch @@ -0,0 +1,17 @@ +# $SHELL is not set, use /bin/sh because it's available +diff --git a/config.toml b/config.toml +index 3768a6e..c323af2 100644 +--- a/config.toml ++++ b/config.toml +@@ -6,9 +6,9 @@ vt = 1 + # The default session, also known as the greeter. + [default_session] + +-# `agreety` is the bundled agetty/login-lookalike. You can replace `$SHELL` ++# `agreety` is the bundled agetty/login-lookalike. You can replace `/bin/sh` + # with whatever you want started, such as `sway`. +-command = "agreety --cmd $SHELL" ++command = "agreety --cmd /bin/sh" + + # 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 diff --git a/srcpkgs/greetd/template b/srcpkgs/greetd/template index cf5f3c400b0c..0f5e9c88f501 100644 --- a/srcpkgs/greetd/template +++ b/srcpkgs/greetd/template @@ -1,7 +1,7 @@ # Template file for 'greetd' pkgname=greetd version=0.8.0 -revision=1 +revision=2 build_style=cargo conf_files="/etc/greetd/config.toml" hostmakedepends="pkg-config scdoc"