diff --git a/root/greetd/etc/greetd/config.toml b/root/greetd/etc/greetd/config.toml new file mode 100644 index 0000000..53b21c0 --- /dev/null +++ b/root/greetd/etc/greetd/config.toml @@ -0,0 +1,23 @@ +[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 = "/usr/sbin/agreety -c /usr/local/bin/sway-run" +# 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" + +# Masuk otomatis +[initial_session] +command = "/usr/local/bin/sway-run" +user = "firman" diff --git a/root/sway-run/usr/local/bin/sway-run b/root/sway-run/usr/local/bin/sway-run new file mode 100755 index 0000000..59a1a10 --- /dev/null +++ b/root/sway-run/usr/local/bin/sway-run @@ -0,0 +1,17 @@ +#!/bin/sh + +# Sesi +export XDG_SESSION_TYPE=wayland +export XDG_SESSION_DESKTOP=sway +export XDG_CURRENT_DESKTOP=sway + +# Variabel Wayland +export MOZ_ENABLE_WAYLAND=1 +export QT_QPA_PLATFORM="wayland;xcb" +export SDL_VIDEODRIVER=wayland +export _JAVA_AWT_WM_NONREPARENTING=1 + +# Tema Bemenu +export BEMENU_OPTS="--center -il 24 -w -H 28 -W 0.35 -B 1 --tb '#000000' --tf '#ffffff' --fb '#000000' --ff '#ffffff' --cf '#ffffff' --nb '#000000' --nf '#ffffff' --hb '#ffffff' --hf '#000000' --ab '#000000' --af '#ffffff' --scb '#000000' --scf '#ffffff' --bdr '#ffffff' -p '>'" + +exec systemd-cat --identifier=sway sway $@