From b4a979999baab5de4aaa71bce74a6eebd0ddc404 Mon Sep 17 00:00:00 2001 From: pancakes Date: Mon, 2 Oct 2023 21:05:05 +1000 Subject: [PATCH] Replace greetd-tuigreet with greetd-wlgreet --- greetd-sway-config | 9 +++++++++ greetd.toml | 2 +- install.sh | 3 ++- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 greetd-sway-config diff --git a/greetd-sway-config b/greetd-sway-config new file mode 100644 index 0000000..5e06137 --- /dev/null +++ b/greetd-sway-config @@ -0,0 +1,9 @@ +exec "wlgreet --command sway; swaymsg exit" + +bindsym Mod4+shift+e exec swaynag \ +-t warning \ +-m 'What do you want to do?' \ +-b 'Poweroff' 'systemctl poweroff' \ +-b 'Reboot' 'systemctl reboot' + +include /etc/sway/config.d/* diff --git a/greetd.toml b/greetd.toml index fbb9bf3..42e7033 100644 --- a/greetd.toml +++ b/greetd.toml @@ -2,5 +2,5 @@ vt = 1 [default_session] -command = "tuigreet --cmd sway --asterisks --issue --time --user-menu" +command = "sway --config /etc/greetd/sway-config" user = "greeter" diff --git a/install.sh b/install.sh index ca63046..beb4f9b 100755 --- a/install.sh +++ b/install.sh @@ -31,8 +31,9 @@ sudo pacman -S --needed --noconfirm easyeffects helvum pamixer pipewire pipewire sudo pacman -S --needed --noconfirm gst-libav gst-plugin-pipewire gst-plugins-base gst-plugins-good gstreamer gstreamer-vaapi libde265 # Greeter -sudo pacman -S --needed --noconfirm greetd greetd-tuigreet +paru -S --needed --noconfirm greetd greetd-wlgreet sudo cp ./greetd.toml /etc/greetd/config.toml +sudo cp ./greetd-sway-config /etc/greetd/sway-config sudo systemctl enable greetd # Window Manager