Package Details: greetd-regreet-git 0.2.0.r0.c75486b-1

Git Clone URL: https://aur.archlinux.org/greetd-regreet-git.git (read-only, click to copy)
Package Base: greetd-regreet-git
Description: Clean and customizable greeter for greetd
Upstream URL: https://github.com/rharish101/ReGreet
Keywords: greetd greeter gtk4 wayland
Licenses: GPL-3.0-or-later
Conflicts: greetd-regreet
Provides: greetd-greeter
Replaces: regreet-git
Submitter: rharish
Maintainer: rharish
Last Packager: rharish
Votes: 5
Popularity: 0.000780
First Submitted: 2023-06-09 07:29 (UTC)
Last Updated: 2025-01-12 13:54 (UTC)

Latest Comments

b4shful commented on 2024-12-24 19:47 (UTC)

If anyone is getting errors while building like:

   Compiling regreet v0.1.2 (/tmp/makepkg/greetd-regreet-git/src/regreet)
error[E0716]: temporary value dropped while borrowed
   --> src/sysutil.rs:177:18
    |
174 |             let cmd_prefix = if is_x11 {
    |                 ---------- borrow later stored here
...
177 |                 &Vec::new()
    |                  ^^^^^^^^^^ creates a temporary value which is freed while still in use
178 |             };
    |             - temporary value is freed at the end of this statement
    |
    = note: consider using a `let` binding to create a longer lived value

For more information about this error, try `rustc --explain E0716`.
error: could not compile `regreet` (bin "regreet") due to 1 previous error

I fixed this by updating the Rust compiler using rustup update (you might need to update using different means if not using rustup). The latest updates to ReGreet require at least Rust 1.70 or greater. Rust from the official Arch repos is currently at 1.83 so if you're using that, then you shouldn't have any problems, but if using rustup just make sure it's up to date.

The README for the ReGreet repo is currently outdated, but I've created an issue for it here https://github.com/rharish101/ReGreet/issues/105

electricprism commented on 2024-02-02 00:05 (UTC) (edited on 2024-02-02 05:01 (UTC) by electricprism)

So far this is my favorite for desktop usage.

Arch Wiki on greetd and the main README were slightly vague on how to set a toml configuration and where, like for example does it automatically load a config file? And if so, what would the default path be.

The rest of the documentation showing what that sample toml file might look like was good. I wonder if it might be a good idea for the package to copy that or not.

The sway+regreet launch command I used is: exec "regreet --config /etc/greetd/regreet.toml; swaymsg exit

--

Edit:

So in case it helps anyone I have successfully enabled on-screen-keyboard for SFF or any devices using sway+greetd+regreet.

Sorry in advance if this is long. (Install squeekboard-git --

Create a sway rule to disable fullscreen on the regreet app

for_window [app_id="regreet"] fullscreen disable;

exec /home/greeter/sway-keyboard.sh

exec "busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true"

And here's the /home/greeter/sway-keyboard.sh -- you can hook this up to a waybar custom icon to invoke the keyboard manually as needed as-well.

#!/bin/bash

# WORKS -- GET KEYBOARD STATE
# https://source.puri.sm/Librem5/virtboard/-/merge_requests/18
# Output as JSON
# busctl --user get-property sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible -j | jq -r '.data'

# Required **
# ** SqueekBoard honors the gnome "screen-keyboard-enabled" setting.
# ** Either enable this through gnome-settings under accessibility or run:
# ** gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true

# If any process containing "squeekboard" is RUNNING
# If "squeekboard" is showing

if [[ $(pgrep -f squeekboard) ]] && [[ $(busctl --user get-property sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible -j | jq -r '.data') == "true" ]]; then

    # Set SqueekBoard to Visible
    # https://source.puri.sm/Librem5/squeekboard/blob/master/README.md#running
    busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false

    # Exit Script
    exit
fi

# If any process containing "squeekboard" is RUNNING
# If "squeekboard" is NOT showing

if [[ $(pgrep -f squeekboard) ]] && [[ $(busctl --user get-property sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible -j | jq -r '.data') == "false" ]]; then

    # Set SqueekBoard to Visible
    # https://source.puri.sm/Librem5/squeekboard/blob/master/README.md#running
    busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true

    # Exit Script
    exit
fi

# If anyprocess containing "squeekboard" is NOT RUNNING

if [[ ! $(pgrep -f squeekboard) ]]; then

    # Launch SqueekBoard
    # AS DARK THEME
    env GTK_THEME=Adwaita:dark squeekboard

    # Set SqueekBoard to Visible
    # https://source.puri.sm/Librem5/squeekboard/blob/master/README.md#running
    busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true

    # Exit Script
    exit
fi

rharish commented on 2023-06-09 07:42 (UTC)

@Porous3247 Thanks for the info! I just noticed the "greetd-regreet" package, and therefore I've renamed the package to "greetd-regreet-git". I've also submitted a merge request to merge the comments/votes of this older package to the newer package.

The changes you suggested should be at "greetd-regreet-git". Once the merge request goes through, please install that one.

Porous3247 commented on 2023-06-08 14:55 (UTC)

Can you add to the PKGBUILD:

provides=(greetd-greeter)
conflicts=(greetd-regreet)