|
|
@ -13,6 +13,12 @@ pub fn install_desktop_setup(desktop_setup: DesktopSetup) {
|
|
|
|
DesktopSetup::Mate => install_mate(),
|
|
|
|
DesktopSetup::Mate => install_mate(),
|
|
|
|
DesktopSetup::Xfce => install_xfce(),
|
|
|
|
DesktopSetup::Xfce => install_xfce(),
|
|
|
|
DesktopSetup::Enlightenment => install_enlightenment(),
|
|
|
|
DesktopSetup::Enlightenment => install_enlightenment(),
|
|
|
|
|
|
|
|
DesktopSetup::Lxqt => install_lxqt(),
|
|
|
|
|
|
|
|
DesktopSetup::Sway => install_sway(),
|
|
|
|
|
|
|
|
DesktopSetup::I3gaps => install_i3gaps(),
|
|
|
|
|
|
|
|
DesktopSetup::Herbstluftwm => install_herbstluftwm(),
|
|
|
|
|
|
|
|
DesktopSetup::Awesome => install_awesome(),
|
|
|
|
|
|
|
|
DesktopSetup::Bspwm => install_bspwm(),
|
|
|
|
DesktopSetup::None => log::debug!("No desktop setup selected"),
|
|
|
|
DesktopSetup::None => log::debug!("No desktop setup selected"),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
install_networkmanager();
|
|
|
|
install_networkmanager();
|
|
|
@ -29,6 +35,126 @@ fn install_networkmanager() {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn install_bspwm() {
|
|
|
|
|
|
|
|
install(vec![
|
|
|
|
|
|
|
|
"xorg",
|
|
|
|
|
|
|
|
"bspwm",
|
|
|
|
|
|
|
|
"sxhkd",
|
|
|
|
|
|
|
|
"xdo",
|
|
|
|
|
|
|
|
"lightdm",
|
|
|
|
|
|
|
|
"lightdm-gtk-greeter",
|
|
|
|
|
|
|
|
"lightdm-gtk-greeter-settings",
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
files_eval(
|
|
|
|
|
|
|
|
files::append_file(
|
|
|
|
|
|
|
|
"/mnt/etc/lightdm/lightdm.conf",
|
|
|
|
|
|
|
|
"[SeatDefaults]\ngreeter-session=lightdm-gtk-greeter\n",
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
"Add lightdm greeter",
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
enable_dm("lightdm");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn install_awesome() {
|
|
|
|
|
|
|
|
install(vec![
|
|
|
|
|
|
|
|
"xorg",
|
|
|
|
|
|
|
|
"awesome",
|
|
|
|
|
|
|
|
"dex",
|
|
|
|
|
|
|
|
"rlwrap",
|
|
|
|
|
|
|
|
"vicious",
|
|
|
|
|
|
|
|
"lightdm",
|
|
|
|
|
|
|
|
"lightdm-gtk-greeter",
|
|
|
|
|
|
|
|
"lightdm-gtk-greeter-settings",
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
files_eval(
|
|
|
|
|
|
|
|
files::append_file(
|
|
|
|
|
|
|
|
"/mnt/etc/lightdm/lightdm.conf",
|
|
|
|
|
|
|
|
"[SeatDefaults]\ngreeter-session=lightdm-gtk-greeter\n",
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
"Add lightdm greeter",
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
enable_dm("lightdm");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn install_herbstluftwm() {
|
|
|
|
|
|
|
|
install(vec![
|
|
|
|
|
|
|
|
"xorg",
|
|
|
|
|
|
|
|
"herbstluftwm",
|
|
|
|
|
|
|
|
"dmenu",
|
|
|
|
|
|
|
|
"dzen2",
|
|
|
|
|
|
|
|
"xorg-xsetroot",
|
|
|
|
|
|
|
|
"xterm",
|
|
|
|
|
|
|
|
"lightdm",
|
|
|
|
|
|
|
|
"lightdm-gtk-greeter",
|
|
|
|
|
|
|
|
"lightdm-gtk-greeter-settings",
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
files_eval(
|
|
|
|
|
|
|
|
files::append_file(
|
|
|
|
|
|
|
|
"/mnt/etc/lightdm/lightdm.conf",
|
|
|
|
|
|
|
|
"[SeatDefaults]\ngreeter-session=lightdm-gtk-greeter\n",
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
"Add lightdm greeter",
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
enable_dm("lightdm");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn install_i3gaps() {
|
|
|
|
|
|
|
|
install(vec![
|
|
|
|
|
|
|
|
"xorg",
|
|
|
|
|
|
|
|
"i3-gaps",
|
|
|
|
|
|
|
|
"dmenu",
|
|
|
|
|
|
|
|
"i3lock",
|
|
|
|
|
|
|
|
"i3status",
|
|
|
|
|
|
|
|
"rxvt-unicode",
|
|
|
|
|
|
|
|
"lightdm",
|
|
|
|
|
|
|
|
"lightdm-gtk-greeter",
|
|
|
|
|
|
|
|
"lightdm-gtk-greeter-settings",
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
files_eval(
|
|
|
|
|
|
|
|
files::append_file(
|
|
|
|
|
|
|
|
"/mnt/etc/lightdm/lightdm.conf",
|
|
|
|
|
|
|
|
"[SeatDefaults]\ngreeter-session=lightdm-gtk-greeter\n",
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
"Add lightdm greeter",
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
enable_dm("lightdm");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn install_sway() {
|
|
|
|
|
|
|
|
install(vec![
|
|
|
|
|
|
|
|
"xorg-xwayland",
|
|
|
|
|
|
|
|
"sway",
|
|
|
|
|
|
|
|
"bemenu",
|
|
|
|
|
|
|
|
"foot",
|
|
|
|
|
|
|
|
"mako",
|
|
|
|
|
|
|
|
"polkit",
|
|
|
|
|
|
|
|
"swaybg",
|
|
|
|
|
|
|
|
"lightdm",
|
|
|
|
|
|
|
|
"lightdm-gtk-greeter",
|
|
|
|
|
|
|
|
"lightdm-gtk-greeter-settings",
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
files_eval(
|
|
|
|
|
|
|
|
files::append_file(
|
|
|
|
|
|
|
|
"/mnt/etc/lightdm/lightdm.conf",
|
|
|
|
|
|
|
|
"[SeatDefaults]\ngreeter-session=lightdm-gtk-greeter\n",
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
"Add lightdm greeter",
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
enable_dm("lightdm");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn install_lxqt() {
|
|
|
|
|
|
|
|
install(vec![
|
|
|
|
|
|
|
|
"xorg",
|
|
|
|
|
|
|
|
"lxqt",
|
|
|
|
|
|
|
|
"breeze-icons",
|
|
|
|
|
|
|
|
"nm-tray",
|
|
|
|
|
|
|
|
"xscreensaver",
|
|
|
|
|
|
|
|
"sddm",
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
enable_dm("sddm");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn install_enlightenment() {
|
|
|
|
fn install_enlightenment() {
|
|
|
|
install(vec![
|
|
|
|
install(vec![
|
|
|
|
"xorg",
|
|
|
|
"xorg",
|
|
|
|