diff options
Diffstat (limited to 'copy.sh')
| -rw-r--r-- | copy.sh | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -21,12 +21,18 @@ RESET=$(tput sgr0) # Set the name of the log file to include the current date and time LOG="install-$(date +%d-%H%M%S)_dotfiles.log" -#uncommenting WLR_NO_HARDWARE_CURSORS if nvidia is detected +# uncommenting WLR_NO_HARDWARE_CURSORS if nvidia is detected if lspci -k | grep -A 2 -E "(VGA|3D)" | grep -iq nvidia; then # NVIDIA GPU detected, uncomment line 23 in ENVariables.conf sed -i '/env = WLR_NO_HARDWARE_CURSORS,1/s/^#//' config/hypr/configs/ENVariables.conf fi +# uncommenting WLR_RENDERER_ALLOW_SOFTWARE,1 if running in a VM is detected +if hostnamectl | grep -q 'Chassis: vm'; then + echo "This script is running in a virtual machine." + sed -i '/env = WLR_RENDERER_ALLOW_SOFTWARE,1/s/^#//' config/hypr/configs/ENVariables.conf +fi + # preparing hyprland.conf keyboard layout # Function to detect keyboard layout in an X server environment detect_x_layout() { @@ -83,7 +89,7 @@ printf "\n" set -e # Exit immediately if a command exits with a non-zero status. printf "${NOTE} copying dotfiles\n" - for DIR in btop cava dunst foot hypr swappy swaylock waybar wofi; do + for DIR in btop cava dunst hypr kitty rofi swappy swaylock waybar wlogout; do DIRPATH=~/.config/$DIR if [ -d "$DIRPATH" ]; then echo -e "${NOTE} - Config for $DIR found, attempting to back up." |
