Add KVM check
This commit is contained in:
parent
eb8b08be0e
commit
e5f603b69c
@ -14,6 +14,7 @@ packagesPacman=(
|
|||||||
"thunar"
|
"thunar"
|
||||||
"mousepad"
|
"mousepad"
|
||||||
"ttf-font-awesome"
|
"ttf-font-awesome"
|
||||||
|
"otf-font-awesome"
|
||||||
"ttf-fira-sans"
|
"ttf-fira-sans"
|
||||||
"ttf-fira-code"
|
"ttf-fira-code"
|
||||||
"ttf-firacode-nerd"
|
"ttf-firacode-nerd"
|
||||||
|
@ -11,7 +11,6 @@ cat <<"EOF"
|
|||||||
| | | | | | | | (_) | (_| | | | | |
|
| | | | | | | | (_) | (_| | | | | |
|
||||||
|_| |_| |_| |_|\___/ \__, |_|_| |_|
|
|_| |_| |_| |_|\___/ \__, |_|_| |_|
|
||||||
|___/
|
|___/
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
echo -e "${NONE}"
|
echo -e "${NONE}"
|
||||||
if gum confirm "Do you want to install the custom tty login issue?" ;then
|
if gum confirm "Do you want to install the custom tty login issue?" ;then
|
||||||
|
@ -92,7 +92,6 @@ _installPackagesYay() {
|
|||||||
yay --noconfirm -S "${toInstall[@]}";
|
yay --noconfirm -S "${toInstall[@]}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
# Create symbolic links
|
# Create symbolic links
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
@ -123,3 +122,15 @@ _installSymLink() {
|
|||||||
fi
|
fi
|
||||||
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
|
||||||
|
}
|
||||||
|
@ -15,6 +15,7 @@ packagesPacman=(
|
|||||||
"thunar"
|
"thunar"
|
||||||
"mousepad"
|
"mousepad"
|
||||||
"ttf-font-awesome"
|
"ttf-font-awesome"
|
||||||
|
"otf-font-awesome"
|
||||||
"ttf-fira-sans"
|
"ttf-fira-sans"
|
||||||
"ttf-fira-code"
|
"ttf-fira-code"
|
||||||
"ttf-firacode-nerd"
|
"ttf-firacode-nerd"
|
||||||
|
17
.install/vm.sh
Executable file
17
.install/vm.sh
Executable file
@ -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
|
@ -49,6 +49,7 @@ source .install/wallpaper.sh
|
|||||||
source .install/disabledm.sh
|
source .install/disabledm.sh
|
||||||
source .install/issue.sh
|
source .install/issue.sh
|
||||||
source .install/restore.sh
|
source .install/restore.sh
|
||||||
|
source .install/vm.sh
|
||||||
source .install/keyboard.sh
|
source .install/keyboard.sh
|
||||||
source .install/copy.sh
|
source .install/copy.sh
|
||||||
source .install/config-folder.sh
|
source .install/config-folder.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user