diff --git a/.install/hyprland-packages.sh b/.install/hyprland-packages.sh index 6c9bda3..51ba92f 100644 --- a/.install/hyprland-packages.sh +++ b/.install/hyprland-packages.sh @@ -13,7 +13,8 @@ packagesPacman=( "xfce4-power-manager" "thunar" "mousepad" - "ttf-font-awesome" + "ttf-font-awesome" + "otf-font-awesome" "ttf-fira-sans" "ttf-fira-code" "ttf-firacode-nerd" diff --git a/.install/issue.sh b/.install/issue.sh index a013a9b..a895e43 100644 --- a/.install/issue.sh +++ b/.install/issue.sh @@ -11,7 +11,6 @@ cat <<"EOF" | | | | | | | | (_) | (_| | | | | | |_| |_| |_| |_|\___/ \__, |_|_| |_| |___/ - EOF echo -e "${NONE}" if gum confirm "Do you want to install the custom tty login issue?" ;then diff --git a/.install/library.sh b/.install/library.sh index 9fbb6f2..74c4316 100755 --- a/.install/library.sh +++ b/.install/library.sh @@ -92,7 +92,6 @@ _installPackagesYay() { yay --noconfirm -S "${toInstall[@]}"; } - # ------------------------------------------------------ # Create symbolic links # ------------------------------------------------------ @@ -123,3 +122,15 @@ _installSymLink() { fi fi } + +# ------------------------------------------------------ +# Installation in a KVM Virtual Machine +# ------------------------------------------------------ +_isKVM() { + iskvm=$(sudo dmesg | grep "Hypervisor detected") + if [[ "$iskvm" =~ "KVM" ]] ;then + echo 0 + else + echo 1 + fi +} diff --git a/.install/qtile-packages.sh b/.install/qtile-packages.sh index 2929857..bff196f 100644 --- a/.install/qtile-packages.sh +++ b/.install/qtile-packages.sh @@ -15,6 +15,7 @@ packagesPacman=( "thunar" "mousepad" "ttf-font-awesome" + "otf-font-awesome" "ttf-fira-sans" "ttf-fira-code" "ttf-firacode-nerd" diff --git a/.install/vm.sh b/.install/vm.sh new file mode 100755 index 0000000..da31f76 --- /dev/null +++ b/.install/vm.sh @@ -0,0 +1,17 @@ +# Set KVM environment variables +if [ $(_isKVM) == "0" ] ;then +echo -e "${GREEN}" +cat <<"EOF" + _ ____ ____ __ __ ____ __ +| |/ /\ \ / / \/ | \ \ / / \/ | +| ' / \ \ / /| |\/| | \ \ / /| |\/| | +| . \ \ V / | | | | \ V / | | | | +|_|\_\ \_/ |_| |_| \_/ |_| |_| + +EOF +echo -e "${NONE}" + if gum confirm "Are you running this script in a KVM virtual machine?" ;then + echo "source = ~/dotfiles/hypr/conf/environments/kvm.conf" > ~/dotfiles-versions/$version/hypr/conf/environment.conf + echo "Environment set to KVM." + fi +fi diff --git a/install.sh b/install.sh index 510f405..f437c59 100755 --- a/install.sh +++ b/install.sh @@ -49,6 +49,7 @@ source .install/wallpaper.sh source .install/disabledm.sh source .install/issue.sh source .install/restore.sh +source .install/vm.sh source .install/keyboard.sh source .install/copy.sh source .install/config-folder.sh