forked from Shinonome/dots-hyprland
2.0 KiB
2.0 KiB
End-4 dot-files for Gentoo by @jwihardi
install-deps.sh
- Enables localrepo and guru overlays if not already enabled.
- Copies keywords to keywords-user and appends the correct unmask keywords for the user's architecture (adm64, arm64, and x86 are supported).
- keywords-user and useflags are copies over into the proper portage directories. Quickshell also uses a live ebuild.
- Syncs, updates, and depcleans @world.
- Copies over the custom live ebuilds (hyprgraphics, hyprland-qt-support, hyprland-qtutils, hyprlang, hyprwayland-scanner) into localrepo and digests them.
- Loops through all illogical-impulse ebuilds to digest and emerge them.
install-setup.sh
- Creates the i2c group since Gentoo doesn't have this by default, then adds the user to it.
- Enables bluetooth and ydotool services (systemd or openrc)
- icons, konsole, hypr, and quickshell are are chowned to user since they're emerge in as root by default.
- gsettings and kwriteconfig6 are set (same as dist-arch).
Recommended use flags (useflags)
- Pipewire is used, alsa and pulseaudio are disabled (enabling them won't hurt).
- Init system is not assumed or considered so disabling systemd should be done in make.conf, same with session managers (elogind is recommended).
Making the dot-files work
- pipewire, pipewire-pulse, and wireplumber must be started after a dbus-session is created and before Hyprland is launched.
If you want to start after logging into tty1 you can do something like this.
if status --is-interactive; and [ (tty) = "/dev/tty1" ]
# Start DBus session if not running
if not set -q DBUS_SESSION_BUS_ADDRESS
dbus-launch --sh-syntax | sed 's/^/set -gx /; s/=/ /' | source
end
# Start PipeWire if not running
pgrep -x pipewire >/dev/null; or pipewire &
pgrep -x pipewire-pulse >/dev/null; or pipewire-pulse &
pgrep -x wireplumber >/dev/null; or wireplumber &
# Launch Hyprland with DBus session
exec Hyprland
end