🔥 add openbox

This commit is contained in:
Vladislav Nepogodin 2022-02-24 03:00:52 +04:00
parent efffe9e113
commit d107a725bd
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
2 changed files with 8 additions and 1 deletions

View File

@ -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)

View File

@ -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"});