From d88e4c18f6d120d3deb2fade8948dd5ff81a9613 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 6 Nov 2023 01:02:52 +0900 Subject: [PATCH] small tweak on copy script --- README.md | 17 ++++++----------- config/hypr/configs/ENVariables.conf | 2 ++ copy.sh | 10 ++++++++-- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 8237b8e..edcd987 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,13 @@ ## 👁️‍🗨️ My Hyprland install Scripts 👁️‍🗨️ +- You can install Hyprland using Scripts below: + - [Fedora-Linux](https://github.com/JaKooLit/Fedora-Hyprland) - [Debian/Ubuntu-Linux](https://github.com/JaKooLit/Debian-Hyprland) - [Arch-Linux](https://github.com/JaKooLit/Arch-Hyprland) -- [Arch-Linux-(orig)](https://github.com/JaKooLit/Hyprland-v4) - -- As you noticed there are 2 for Arch Linux. At some point I will be concentrating on the Arch-Linux only - refer to install scripts what packages needed to install... but atleast, Hyprland packages is needed 😏😏😏 duh!! @@ -60,20 +59,16 @@ chmod +x $HOME/.config/hypr/scripts/* - Make sure to execute initial symlinks else dunst, wofi and waybar will fail to launch ```bash ln -sf "$HOME/.config/waybar/configs/config-default" "$HOME/.config/waybar/config" -ln -sf "$HOME/.config/waybar/style/style-dark.css" "$HOME/.config/waybar/style.css" +ln -sf "$HOME/.config/waybar/style/style-pywal.css" "$HOME/.config/waybar/style.css" ln -sf "$HOME/.config/dunst/styles/dunstrc-dark" "$HOME/.config/dunst/dunstrc" -ln -sf "$HOME/.config/wofi/styles/style-dark.css" "$HOME/.config/wofi/style.css" -ln -sf "$HOME/.config/wofi/configs/config-default" "$HOME/.config/wofi/config" ``` ### ⚠️⚠️⚠️ A MUST! after copying these dots -- By default I have not set a wallpaper. If using swww, just press SUPER CTRL W and choose wallpaper. Once you reboot or logged out, the last wallpaper will be loaded by swww automatically. -- If not using swww, edit ~/.config/hypr/Execs.conf and set using swaybg +- By default I have not set a wallpaper. Press Super CTRL W and set a wallpaper. This is also to initiate pywal for waybar, kitty (tty) and rofi themes - Nvidia Owners. Make sure to edit your ~/.config/hypr/configs/ENVariables.conf if you have set a proper environment already. (recommended). WLR_NO_CURSORS will be activated if nvidia gpu is detected. - If you have already set your own keybinds, monitors, etc.... Just copy over from backup created before log-out or reboot. (recommended) ### 📖 Known issues and possibly solutions -- Foot tty fonts after copying dots is broken - Install Fira Code or just restore your previous foot configuration in ~/.config/foot - Themes are broken when changing dark light - Ensure you have Tokyo Night Dark and Light themes installed and Tokyo Night SE icons or adjust the Dark Light script located in ~/.config/hypr/scripts/DarkLight.sh - Keyboard shortcuts or customized Keybinds are broken! - Just copy over your previous Keybinds.conf from the hypr-backup in ~/.config/ @@ -86,9 +81,9 @@ ln -sf "$HOME/.config/wofi/configs/config-default" "$HOME/.config/wofi/config" - Waybar styles (all those new panel styles require some tweaking) - I kindly request assistance 🙏 ### 🤷‍♂️ TO DO! -- [X] ~~After Arch update the hyprland package, will uncomment line 38 to 44 in ~/.config/hypr/configs/Settings.conf. Users of hyprland-git or if compiled from source, you can safely uncomment these lines (group and groupbar)~~ Switched to Hyprland-git for Arch-Hyprland script as Arch dev is not updating its Hyprland repo - [ ] Tweak waybar layouts and Themes -- [X] ~~Integrate these dotfiles into my Hyprland install scripts for a centralized configurations~~ +- [ ] Tweak rofi layouts and Themes + ### 🔮 Discord Server - kindly join my Discord Server https://discord.gg/V2SJ92vbEN diff --git a/config/hypr/configs/ENVariables.conf b/config/hypr/configs/ENVariables.conf index 634036a..bc422ee 100644 --- a/config/hypr/configs/ENVariables.conf +++ b/config/hypr/configs/ENVariables.conf @@ -30,3 +30,5 @@ env = MOZ_ENABLE_WAYLAND,1 #env = WLR_DRM_NO_ATOMIC,1 #env = NVD_BACKEND,direct +# FOR VM and POSSIBLY NVIDIA +#env = WLR_RENDERER_ALLOW_SOFTWARE,1 diff --git a/copy.sh b/copy.sh index ce8dc68..4b8be4a 100644 --- a/copy.sh +++ b/copy.sh @@ -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."