aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2023-12-31 11:31:53 -0500
committerRyan Kavanagh <rak@rak.ac>2023-12-31 11:31:53 -0500
commit50952339b46048424e705e89f69ed0cdaf57f689 (patch)
tree504526a323d9e8e6089a09237660c21ba16bb5fd
parentuse emacs keybindings in gtk3 too (diff)
greetd config
-rw-r--r--etc/greetd/config.toml19
-rw-r--r--etc/greetd/sway-config12
-rw-r--r--etc/greetd/sway-config.d/xbd4
-rw-r--r--etc/greetd/wlgreet.toml33
4 files changed, 68 insertions, 0 deletions
diff --git a/etc/greetd/config.toml b/etc/greetd/config.toml
new file mode 100644
index 0000000..45a2ef8
--- /dev/null
+++ b/etc/greetd/config.toml
@@ -0,0 +1,19 @@
+[terminal]
+# The VT to run the greeter on. Can be "next", "current" or a number
+# designating the VT.
+vt = 7
+
+# 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 = "sway --config /etc/greetd/sway-config"
+# command = "/usr/sbin/agreety --cmd /usr/bin/sway"
+# if using wlgreet
+#command = "sway --config /etc/greetd/sway-config"
+
+# 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 = "_greetd"
diff --git a/etc/greetd/sway-config b/etc/greetd/sway-config
new file mode 100644
index 0000000..306cfb5
--- /dev/null
+++ b/etc/greetd/sway-config
@@ -0,0 +1,12 @@
+exec "/usr/sbin/wlgreet; swaymsg exit"
+
+bindsym Mod4+shift+e exec swaynag \
+ -t warning \
+ -m 'What do you want to do?' \
+ -b 'Poweroff' 'systemctl poweroff -i' \
+ -b 'Reboot' 'systemctl reboot -i'
+
+output * bg #000000 solid_color
+
+include /etc/sway/config.d/*
+include /etc/greetd/sway-config.d/*
diff --git a/etc/greetd/sway-config.d/xbd b/etc/greetd/sway-config.d/xbd
new file mode 100644
index 0000000..12bd5ec
--- /dev/null
+++ b/etc/greetd/sway-config.d/xbd
@@ -0,0 +1,4 @@
+input * {
+ xkb_layout us
+ xkb_variant dvp
+}
diff --git a/etc/greetd/wlgreet.toml b/etc/greetd/wlgreet.toml
new file mode 100644
index 0000000..a13b9ae
--- /dev/null
+++ b/etc/greetd/wlgreet.toml
@@ -0,0 +1,33 @@
+command = "sway"
+outputMode = "all"
+scale = 1
+
+[background]
+red = 0
+green = 0
+blue = 0
+opacity = 0.9
+
+[headline]
+red = 1.0
+green = 1.0
+blue = 1.0
+opacity = 1.0
+
+[prompt]
+red = 1.0
+green = 1.0
+blue = 1.0
+opacity = 1.0
+
+[promptErr]
+red = 1.0
+green = 1.0
+blue = 1.0
+opacity = 1.0
+
+[border]
+red = 1.0
+green = 1.0
+blue = 1.0
+opacity = 1.0