mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 05:52:23 +08:00
🔥 add openbox
This commit is contained in:
parent
efffe9e113
commit
d107a725bd
@ -3,6 +3,8 @@ CLI net-installer for CachyOS, inspired by manjaro-architect
|
||||
|
||||
This installer provides online installation for CachyOS.
|
||||
|
||||
Fast and smooth installer for Arch based operating system.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
* C++20 feature required (tested with GCC 11.1.0 and Clang 13(clang will not compile it with libstdc++ 11.1.0 because of c++20 standard ranges library)
|
||||
|
@ -868,7 +868,7 @@ void install_desktop() noexcept {
|
||||
#endif
|
||||
|
||||
// Prep variables
|
||||
const std::vector<std::string> available_des{"kde", "cutefish", "xfce", "sway", "wayfire", "i3wm"};
|
||||
const std::vector<std::string> available_des{"kde", "cutefish", "xfce", "sway", "wayfire", "i3wm", "openbox"};
|
||||
|
||||
// Create the base list of packages
|
||||
std::vector<std::string> install_packages{};
|
||||
@ -901,6 +901,7 @@ void install_desktop() noexcept {
|
||||
constexpr std::string_view xfce{"xfce"};
|
||||
constexpr std::string_view cutefish{"cutefish"};
|
||||
constexpr std::string_view wayfire{"wayfire"};
|
||||
constexpr std::string_view openbox{"openbox"};
|
||||
|
||||
bool needed_xorg{};
|
||||
auto found = ranges::search(desktop_env, i3wm);
|
||||
@ -941,6 +942,10 @@ void install_desktop() noexcept {
|
||||
if (!found.empty()) {
|
||||
pkg_list.insert(pkg_list.cend(), {"wayfire", "wayfire-plugins-extra", "wf-config", "wf-shell", "wf-recorder", "nwg-drawer"});
|
||||
}
|
||||
found = ranges::search(desktop_env, openbox);
|
||||
if (!found.empty()) {
|
||||
pkg_list.insert(pkg_list.cend(), {"openbox", "obconf"});
|
||||
}
|
||||
|
||||
if (needed_xorg) {
|
||||
pkg_list.insert(pkg_list.cend(), {"libwnck3", "xf86-input-libinput", "xf86-video-fbdev", "xf86-video-vesa", "xorg-server", "xorg-xinit", "xorg-xinput", "xorg-xkill", "xorg-xrandr", "xf86-video-amdgpu", "xf86-video-ati", "xf86-video-intel"});
|
||||
|
Loading…
Reference in New Issue
Block a user