diff --git a/dist-gentoo/README.md b/dist-gentoo/README.md index 3a41fbb24..528bc45a9 100644 --- a/dist-gentoo/README.md +++ b/dist-gentoo/README.md @@ -26,10 +26,13 @@ Note: 4. gsettings and kwriteconfig6 are set (same as dist-arch). ## Recommended use flags (useflags) +- **The recommended useflags are not required, this is a more out of the box experience with these** - 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 +- elogind is expected to be installed and run as a service on OpenRC to set ```XDG_RUNTIME_DIR``` + - NOT recommended: seatd will require more manual setup - 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. @@ -49,3 +52,8 @@ if status --is-interactive; and [ (tty) = "/dev/tty1" ] exec Hyprland end ``` + +## Known Issues +- If Hyprland is just blank, rebuild Quickshell (emerge -q gui-apps/quickshell) +- ```Hyprland: error while loading shared libraries: libhyprgraphics.so.0: cannot open shared object file: No such file or directory``` + - The Hyprland live ebuild sometimes has linkage issues, deleting _Hyprland_ and _hyprland_ from ```/usr/bin/``` and then re-emerging usually fixes this. diff --git a/dist-gentoo/additional-useflags b/dist-gentoo/additional-useflags new file mode 100644 index 000000000..2e089e6de --- /dev/null +++ b/dist-gentoo/additional-useflags @@ -0,0 +1,29 @@ +############ Additional needed useflags +x11-libs/cairo X +dev-cpp/cairomm X +dev-python/pycairo X +media-libs/libglvnd X +x11-libs/libxkbcommon X +media-libs/libpulse X +media-plugins/alsa-plugins pulseaudio +kde-frameworks/kcoreaddons dbus +kde-frameworks/prison qml +kde-frameworks/kguiaddons X dbus wayland +kde-frameworks/kidletime X wayland +kde-frameworks/kwindowsystem X wayland +kde-frameworks/kconfig dbus qml +kde-frameworks/sonnet qml +x11-base/xwayland libei +sys-apps/dbus X +sys-libs/zlib minizip +dev-qt/qtquick3d opengl +media-video/ffmpeg X bzip2 dav1d drm fontconfig gnutls gpl libass opencl opengl openh264 opus postproc svg truetype vaapi vpx vulkan x264 x265 xml zlib +media-libs/leptonica jpeg png zlib tiff webp +media-libs/libva X wayland +app-text/xmlto text +app-crypt/gcr gtk +media-video/vlc wayland ogg dbus mp3 +dev-libs/qcoro dbus qml +media-libs/freetype harfbuzz +media-libs/mesa wayland +x11-libs/gtk+ wayland diff --git a/dist-gentoo/install-deps.sh b/dist-gentoo/install-deps.sh index 036479d2e..a0cc24222 100644 --- a/dist-gentoo/install-deps.sh +++ b/dist-gentoo/install-deps.sh @@ -1,15 +1,23 @@ printf "${STY_YELLOW}" -printf "============WARNING/NOTE============\n" +printf "============WARNING/NOTE (1)============\n" printf "GCC in use: $(which gcc)\n" printf "GCC version info: $(gcc --version | grep gcc)\n" printf "GCC version number: $(gcc --version | grep gcc | awk '{print $3}')\n" printf "GCC-15>= is required for Hyprland\n" printf "If you have GCC-15>= and it's currently set then you can safely ignore this\n" -printf "If not, you must ensure you are using the correct GCC version and set it (gcc-config ), then emerge re-emerge @world with an empty tree (emerge -e @world)\n" +printf "If not, you must ensure you are using the correct GCC version and set it (gcc-config )\n" +printf "It is heavily recommended to re-emerge @world with an empty tree after changing GCC version (emerge -e @world)\n\n" printf "${STY_RESET}" pause -x sudo emerge --noreplace app-eselect/eselect-repository +printf "${STY_YELLOW}" +printf "============WARNING/NOTE (2)============\n" +printf "Ensure you have a global use flag for elogind or systemd in your make.conf for simplicity\n" +printf "Or you can manually add the use flags for each package that requires it\n" +printf "${STY_RESET}" +pause + +x sudo emerge --noreplace --quiet app-eselect/eselect-repository if [[ -z $(eselect repository list | grep localrepo) ]]; then v sudo eselect repository create localrepo @@ -34,10 +42,11 @@ v sudo cp ./dist-gentoo/keywords-user /etc/portage/package.accept_keywords/illog # Use Flags v sudo cp ./dist-gentoo/useflags /etc/portage/package.use/illogical-impulse +v sudo sh -c 'cat ./dist-gentoo/additional-useflags >> /etc/portage/package.use/illogical-impulse' # Update system v sudo emerge --sync -v sudo emerge --ask --verbose --newuse --update --deep @world +v sudo emerge --quiet --newuse --update --deep @world v sudo emerge --depclean # Remove old ebuilds (if this isn't done the wildcard will fuck upon a version change) @@ -74,4 +83,5 @@ for i in "${metapkgs[@]}"; do v sudo emerge --quiet app-misc/${i} done - +# Currently using 3.12 python, this doesn't need to be default though +v sudo emerge --noreplace --quiet dev-lang/python:3.12 diff --git a/dist-gentoo/install-setups.sh b/dist-gentoo/install-setups.sh index 9181d09c2..91a824893 100644 --- a/dist-gentoo/install-setups.sh +++ b/dist-gentoo/install-setups.sh @@ -6,7 +6,10 @@ showfun install-python-packages v install-python-packages -v getent group i2c || sudo groupadd i2c +if [[ -z $(getent group i2c) ]]; then + v sudo groupadd i2c +fi + v sudo usermod -aG video,i2c,input "$(whoami)" if [[ ! -z $(systemctl --version) ]]; then @@ -28,8 +31,6 @@ else pause fi -v sudo chown -R $(whoami):$(whoami) ~/.local/share/icons/ -v sudo chown -R $(whoami):$(whoami) ~/.local/share/konsole/ v sudo chown -R $(whoami):$(whoami) ~/.config/hypr/ v sudo chown -R $(whoami):$(whoami) ~/.config/quickshell/ diff --git a/dist-gentoo/keywords b/dist-gentoo/keywords index 5a1a67448..9716ace7a 100644 --- a/dist-gentoo/keywords +++ b/dist-gentoo/keywords @@ -14,6 +14,8 @@ app-misc/illogical-impulse-toolkit app-misc/illogical-impulse-widgets x11-misc/matugen media-fonts/twemoji +app-misc/brightnessctl +app-misc/cliphist gui-apps/hypridle gui-apps/hyprlock gui-apps/hyprpicker @@ -36,3 +38,4 @@ gui-libs/hyprcursor ** gui-libs/hyprland-qt-support ** gui-libs/hyprland-qtutils ** gui-wm/hyprland ** +x11-libs/libxkbcommon diff --git a/dist-gentoo/useflags b/dist-gentoo/useflags index 08be4f6bd..c3e12ed8e 100644 --- a/dist-gentoo/useflags +++ b/dist-gentoo/useflags @@ -60,6 +60,9 @@ net-misc/networkmanager concheck introspection nss ppp tools wifi -wext -modemma kde-apps/dolphin -handbook kde-plasma/systemsettings -handbook +################### MICROTEX-GIT ################### +dev-cpp/gtkmm X wayland + ################### PORTAL ################### sys-apps/xdg-desktop-portal seccomp #sys-plasma/xdg-desktop-portal-kde (nothing needed) @@ -112,11 +115,3 @@ gui-apps/quickshell -X -i3 -i3-ipc -breakpad bluetooth hyprland hyprland-focus-g #app-i18n/translate-shell (nothing needed) #gui-apps/wlogout (no use flags) media-gfx/imagemagick xml - -############ Additional needed useflags -x11-libs/cairo X -media-libs/libglvnd X -x11-libs/libxkbcommon X -media-libs/libpulse X -media-plugins/alsa-plugins pulseaudio -