From d6e3a4651f2ff944a00e8acfb316db8be2fbcf3e Mon Sep 17 00:00:00 2001 From: Sxmourai <49468969+Sxmourai@users.noreply.github.com> Date: Fri, 22 Sep 2023 11:46:59 +0200 Subject: Renamed hyperland to hyprland, fixed seatd via post_installation and added waybar-hyprland (#1824) * Renamed hyperland to hyprland, fixed seatd via post_installation and installed waybar * Removed the launching of seatd on the installation process * Starting to add nvidia support, and automatic configuring of hyprland * Starting to add auto configuration of hyprland... But this will need maintenance * Added hyprpaper auto config Gonna make waybar auto config next * Waybar auto config is starting... I can't test rn I'm on vacation and my connection is quite bad (68 days for arch iso) * Added wlogout support (and swaylock) * Fixed file managers printing * Starting to add a shell config... Definitely don't push this * Reverted custom-shell config (create a separate PR) * Removed systemd-logind, as that was just for testing the selector * Added polkit as an option for the seat. As it's a dependency of the hyprland package * Flake8 fix * The name change wasn't propegated to the menu * Added newline at the end of general_conf.py to not alter it * Removed newline at the end of general_conf.py to not alter it * Renamed the Hyprland class --------- Co-authored-by: Anton Hvornum Co-authored-by: Anton Hvornum --- archinstall/default_profiles/desktops/hyprland.py | 62 +++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 archinstall/default_profiles/desktops/hyprland.py (limited to 'archinstall/default_profiles/desktops/hyprland.py') diff --git a/archinstall/default_profiles/desktops/hyprland.py b/archinstall/default_profiles/desktops/hyprland.py new file mode 100644 index 00000000..f464c828 --- /dev/null +++ b/archinstall/default_profiles/desktops/hyprland.py @@ -0,0 +1,62 @@ +from enum import Enum +from typing import List, Optional, TYPE_CHECKING, Any + +from archinstall.default_profiles.profile import ProfileType, GreeterType +from archinstall.default_profiles.xorg import XorgProfile +from archinstall.lib.menu import Menu + +if TYPE_CHECKING: + from archinstall.lib.installer import Installer + _: Any + + +class SeatAccess(Enum): + seatd = 'seatd' + polkit = 'polkit' + + +class HyprlandProfile(XorgProfile): + def __init__(self): + super().__init__('Hyprland', ProfileType.DesktopEnv, description='') + + self.custom_settings = {'seat_access': None} + + @property + def packages(self) -> List[str]: + return [ + "hyprland", + "dunst", + "xdg-desktop-portal-hyprland", + "qt5-wayland", + "qt6-wayland" + ] + + @property + def default_greeter_type(self) -> Optional[GreeterType]: + return GreeterType.Sddm + + @property + def services(self) -> List[str]: + if pref := self.custom_settings.get('seat_access', None): + return [pref] + return [] + + def _ask_seat_access(self): + # need to activate seat service and add to seat group + title = str(_('Hyprland needs access to your seat (collection of hardware devices i.e. keyboard, mouse, etc)')) + title += str(_('\n\nChoose an option to give Hyprland access to your hardware')) + + options = [e.value for e in SeatAccess] + default = None + + if seat := self.custom_settings.get('seat_access', None): + default = seat + + choice = Menu(title, options, skip=False, preset_values=default).run() + self.custom_settings['seat_access'] = choice.single_value + + def do_on_select(self): + self._ask_seat_access() + + def install(self, install_session: 'Installer'): + super().install(install_session) -- cgit v1.2.3-54-g00ecf From ca3051ebf3ddd45f90a3bd3244df4640fb0b1c58 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 22 Sep 2023 16:47:50 +0200 Subject: Added kitty, dolphin, wofi to hyprland (#2092) --- archinstall/default_profiles/desktops/hyprland.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'archinstall/default_profiles/desktops/hyprland.py') diff --git a/archinstall/default_profiles/desktops/hyprland.py b/archinstall/default_profiles/desktops/hyprland.py index f464c828..065ca6f2 100644 --- a/archinstall/default_profiles/desktops/hyprland.py +++ b/archinstall/default_profiles/desktops/hyprland.py @@ -26,6 +26,9 @@ class HyprlandProfile(XorgProfile): return [ "hyprland", "dunst", + "kitty", + "dolphin", + "wofi", "xdg-desktop-portal-hyprland", "qt5-wayland", "qt6-wayland" -- cgit v1.2.3-54-g00ecf From e5b6f46032283e722c449ca8ad7b68dc8c0b350f Mon Sep 17 00:00:00 2001 From: Uday Jadhav <110811053+udqy@users.noreply.github.com> Date: Sun, 5 May 2024 10:38:03 +0530 Subject: Add applications to Hyprland desktop profile (#2481) --- archinstall/default_profiles/desktops/hyprland.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'archinstall/default_profiles/desktops/hyprland.py') diff --git a/archinstall/default_profiles/desktops/hyprland.py b/archinstall/default_profiles/desktops/hyprland.py index 065ca6f2..0c5452eb 100644 --- a/archinstall/default_profiles/desktops/hyprland.py +++ b/archinstall/default_profiles/desktops/hyprland.py @@ -31,7 +31,10 @@ class HyprlandProfile(XorgProfile): "wofi", "xdg-desktop-portal-hyprland", "qt5-wayland", - "qt6-wayland" + "qt6-wayland", + "polkit-kde-agent", + "grim", + "slurp" ] @property -- cgit v1.2.3-54-g00ecf