File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from typing import override
22
33from archinstall .default_profiles .profile import GreeterType , ProfileType
4- from archinstall .default_profiles .xorg import XorgProfile
4+ from archinstall .default_profiles .wayland import WaylandProfile
55
66
7- class CosmicProfile (XorgProfile ):
7+ class CosmicProfile (WaylandProfile ):
88 def __init__ (self ) -> None :
99 super ().__init__ ('Cosmic' , ProfileType .DesktopEnv )
1010
Original file line number Diff line number Diff line change 11from typing import override
22
33from archinstall .default_profiles .profile import GreeterType , ProfileType
4- from archinstall .default_profiles .xorg import XorgProfile
4+ from archinstall .default_profiles .wayland import WaylandProfile
55
66
7- class GnomeProfile (XorgProfile ):
7+ class GnomeProfile (WaylandProfile ):
88 def __init__ (self ) -> None :
99 super ().__init__ ('GNOME' , ProfileType .DesktopEnv )
1010
Original file line number Diff line number Diff line change 22
33from archinstall .default_profiles .desktops import SeatAccess
44from archinstall .default_profiles .profile import GreeterType , ProfileType
5- from archinstall .default_profiles .xorg import XorgProfile
5+ from archinstall .default_profiles .wayland import WaylandProfile
66from archinstall .lib .menu .helpers import Selection
77from archinstall .lib .translationhandler import tr
88from archinstall .tui .ui .menu_item import MenuItem , MenuItemGroup
99from archinstall .tui .ui .result import ResultType
1010
1111
12- class HyprlandProfile (XorgProfile ):
12+ class HyprlandProfile (WaylandProfile ):
1313 def __init__ (self ) -> None :
1414 super ().__init__ ('Hyprland' , ProfileType .DesktopEnv )
1515
Original file line number Diff line number Diff line change 22
33from archinstall .default_profiles .desktops import SeatAccess
44from archinstall .default_profiles .profile import GreeterType , ProfileType
5- from archinstall .default_profiles .xorg import XorgProfile
5+ from archinstall .default_profiles .wayland import WaylandProfile
66from archinstall .lib .menu .helpers import Selection
77from archinstall .lib .translationhandler import tr
88from archinstall .tui .ui .menu_item import MenuItem , MenuItemGroup
99from archinstall .tui .ui .result import ResultType
1010
1111
12- class LabwcProfile (XorgProfile ):
12+ class LabwcProfile (WaylandProfile ):
1313 def __init__ (self ) -> None :
1414 super ().__init__ (
1515 'Labwc' ,
Original file line number Diff line number Diff line change 22
33from archinstall .default_profiles .desktops import SeatAccess
44from archinstall .default_profiles .profile import GreeterType , ProfileType
5- from archinstall .default_profiles .xorg import XorgProfile
5+ from archinstall .default_profiles .wayland import WaylandProfile
66from archinstall .lib .menu .helpers import Selection
77from archinstall .lib .translationhandler import tr
88from archinstall .tui .ui .menu_item import MenuItem , MenuItemGroup
99from archinstall .tui .ui .result import ResultType
1010
1111
12- class NiriProfile (XorgProfile ):
12+ class NiriProfile (WaylandProfile ):
1313 def __init__ (self ) -> None :
1414 super ().__init__ (
1515 'Niri' ,
Original file line number Diff line number Diff line change 11from typing import override
22
33from archinstall .default_profiles .profile import GreeterType , ProfileType
4- from archinstall .default_profiles .xorg import XorgProfile
4+ from archinstall .default_profiles .wayland import WaylandProfile
55
66
7- class PlasmaProfile (XorgProfile ):
7+ class PlasmaProfile (WaylandProfile ):
88 def __init__ (self ) -> None :
99 super ().__init__ ('KDE Plasma' , ProfileType .DesktopEnv )
1010
Original file line number Diff line number Diff line change 11from typing import override
22
33from archinstall .default_profiles .profile import GreeterType , ProfileType
4- from archinstall .default_profiles .xorg import XorgProfile
4+ from archinstall .default_profiles .wayland import WaylandProfile
55
66
7- class RiverProfile (XorgProfile ):
7+ class RiverProfile (WaylandProfile ):
88 def __init__ (self ) -> None :
99 super ().__init__ ('River' , ProfileType .WindowMgr )
1010
Original file line number Diff line number Diff line change 22
33from archinstall .default_profiles .desktops import SeatAccess
44from archinstall .default_profiles .profile import GreeterType , ProfileType
5- from archinstall .default_profiles .xorg import XorgProfile
5+ from archinstall .default_profiles .wayland import WaylandProfile
66from archinstall .lib .menu .helpers import Selection
77from archinstall .lib .translationhandler import tr
88from archinstall .tui .ui .menu_item import MenuItem , MenuItemGroup
99from archinstall .tui .ui .result import ResultType
1010
1111
12- class SwayProfile (XorgProfile ):
12+ class SwayProfile (WaylandProfile ):
1313 def __init__ (self ) -> None :
1414 super ().__init__ (
1515 'Sway' ,
Original file line number Diff line number Diff line change 1+ from typing import override
2+
3+ from archinstall .default_profiles .profile import Profile , ProfileType
4+ from archinstall .lib .translationhandler import tr
5+
6+
7+ class WaylandProfile (Profile ):
8+ def __init__ (
9+ self ,
10+ name : str = 'Wayland' ,
11+ profile_type : ProfileType = ProfileType .Xorg ,
12+ ):
13+ super ().__init__ (
14+ name ,
15+ profile_type ,
16+ support_gfx_driver = True ,
17+ )
18+
19+ @override
20+ def preview_text (self ) -> str :
21+ text = tr ('Environment type: {}' ).format (self .profile_type .value )
22+ if packages := self .packages_text ():
23+ text += f'\n { packages } '
24+
25+ return text
26+
27+ @property
28+ @override
29+ def packages (self ) -> list [str ]:
30+ return []
Original file line number Diff line number Diff line change @@ -29,4 +29,5 @@ def preview_text(self) -> str:
2929 def packages (self ) -> list [str ]:
3030 return [
3131 'xorg-server' ,
32+ 'xorg-xinit' ,
3233 ]
You can’t perform that action at this time.
0 commit comments