greetd/sway移行メモ。
KDEだと
emerge -a gui-apps/tuigreet
私は
emerge -a gui/libs/display-manager-init
rc-update add display-manager default
greetdを
# /etc/conf.d/display-manager
# What display manager do you use ?
# [ xdm | greetd | gdm | sddm | gpe | lightdm | entrance ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
DISPLAYMANAGER="greetd"
さらに
設定例を
# /etc/greetd/config.toml
[default_session]
command = "tuigreet -r -s '/usr/local/share/wayland-sessions'"
user = "greetd"
/usr/share/wayland-sessionsに
[Desktop Entry]
Name=Sway
Comment=An i3-compatible Wayland compositor
Exec=$HOME/.dotfiles/sway-wrapper.sh
Type=Application
上記で
swayの
#!/bin/sh
# ~/.dotfiles/sway-wrapper.sh
export EDITOR=/usr/local/bin/nvim
export XDG_CACHE_HOME=/var/tmp/share/$USER
exec dbus-run-session -- sway
sway起動時に
これが
exec dbus-update-activation-environment --all
ステータスバーは
emerge -a waybar
この