From e928dc010c3d3f2c7e2450bf911ce3be08acdc76 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Sun, 5 Nov 2023 23:42:15 +0900 Subject: updated rofi and waybar --- copy.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'copy.sh') diff --git a/copy.sh b/copy.sh index cc42efe9..ce8dc68e 100644 --- a/copy.sh +++ b/copy.sh @@ -113,14 +113,10 @@ cp -r wallpapers ~/Pictures/ && { echo "${OK}Copy completed!"; } || { echo "${ER # Initial Symlinks to avoid errors # symlinks for waybar 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" && \ # symlinks for dunst ln -sf "$HOME/.config/dunst/styles/dunstrc-dark" "$HOME/.config/dunst/dunstrc" && \ -# symlink for wofi -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" && \ - # Set some files as executable chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG" -- cgit v1.2.3 From d88e4c18f6d120d3deb2fade8948dd5ff81a9613 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 6 Nov 2023 01:02:52 +0900 Subject: small tweak on copy script --- README.md | 17 ++++++----------- config/hypr/configs/ENVariables.conf | 2 ++ copy.sh | 10 ++++++++-- 3 files changed, 16 insertions(+), 13 deletions(-) (limited to 'copy.sh') diff --git a/README.md b/README.md index 8237b8e3..edcd987a 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 634036ad..bc422eed 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 ce8dc68e..4b8be4a6 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." -- cgit v1.2.3 From 7b9c6c73675d074d32529eb78c39ae8431293f6d Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 6 Nov 2023 08:47:08 +0900 Subject: testing --- copy.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'copy.sh') diff --git a/copy.sh b/copy.sh index 4b8be4a6..53d299a6 100644 --- a/copy.sh +++ b/copy.sh @@ -65,8 +65,7 @@ fi echo "Keyboard layout: $layout" -printf "${NOTE} Detecting keyboard layout to prepare necessary changes in hyprland.conf before copying\n" -printf "\n" +printf "${NOTE} Detecting keyboard layout to prepare necessary changes in hyprland.conf before copying\n\n" # Prompt the user to confirm whether the detected layout is correct read -p "Detected keyboard layout or keymap: $layout. Is this correct? [y/n] " confirm @@ -127,5 +126,8 @@ ln -sf "$HOME/.config/dunst/styles/dunstrc-dark" "$HOME/.config/dunst/dunstrc" & # Set some files as executable chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG" +# Initializing the initial wallpaper and wal +~/.config/hypr/scripts/Wallpaper.sh 2>&1 | tee -a "$LOG" + printf "\n${OK} Copy Completed!\n\n" printf "${NOTE} Highly recommended to logout and re-login\n\n" -- cgit v1.2.3 From c67bcc5a22509c55a1c94a33474034db89f07511 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 6 Nov 2023 09:36:23 +0900 Subject: test 2 --- copy.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'copy.sh') diff --git a/copy.sh b/copy.sh index 53d299a6..b133099e 100644 --- a/copy.sh +++ b/copy.sh @@ -126,6 +126,22 @@ ln -sf "$HOME/.config/dunst/styles/dunstrc-dark" "$HOME/.config/dunst/dunstrc" & # Set some files as executable chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG" +# Check if the ~/.cache/wal directory exists +if [ ! -d ~/.cache/wal ]; then + printf "${NOTE} Initializing pywal........\n\n" + # Check if the ~/Pictures/wallpapers directory exists + if [ -d ~/Pictures/wallpapers ]; then + # Run wal with random wallpapers from ~/Pictures/wallpapers + wal -i ~/Pictures/wallpapers/* + echo "${OK} Pywal initialized" + else + echo "${ERROR} ~/Pictures/wallpapers directory not found." + echo "${WARN} Please make sure to have wallpapers in ~/Pictures/wallpapers." + fi +else + echo "${OK} ~/.cache/wal directory found. No action required." +fi + # Initializing the initial wallpaper and wal ~/.config/hypr/scripts/Wallpaper.sh 2>&1 | tee -a "$LOG" -- cgit v1.2.3 From efb6137d6a2e5f91b526341579a216b880286063 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 6 Nov 2023 09:58:48 +0900 Subject: small update --- config/gtk-3.0/bookmarks | 1 + config/gtk-3.0/settings.ini | 17 +++++++++++++++++ copy.sh | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 config/gtk-3.0/bookmarks create mode 100644 config/gtk-3.0/settings.ini (limited to 'copy.sh') diff --git a/config/gtk-3.0/bookmarks b/config/gtk-3.0/bookmarks new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/config/gtk-3.0/bookmarks @@ -0,0 +1 @@ + diff --git a/config/gtk-3.0/settings.ini b/config/gtk-3.0/settings.ini new file mode 100644 index 00000000..5ecd3edd --- /dev/null +++ b/config/gtk-3.0/settings.ini @@ -0,0 +1,17 @@ +[Settings] +gtk-theme-name=Tokyonight-Dark-B +gtk-icon-theme-name=TokyoNight-SE +gtk-font-name=Fira Code Medium 12 +gtk-cursor-theme-name= +gtk-cursor-theme-size= +gtk-toolbar-style=GTK_TOOLBAR_BOTH +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=1 +gtk-menu-images=1 +gtk-enable-event-sounds=1 +gtk-enable-input-feedback-sounds=0 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle=hintslight +gtk-xft-rgba=rgb +gtk-application-prefer-dark-theme=1 diff --git a/copy.sh b/copy.sh index b133099e..3215fdb7 100644 --- a/copy.sh +++ b/copy.sh @@ -88,7 +88,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 hypr kitty rofi swappy swaylock waybar wlogout; do + for DIR in btop cava dunst gtk-3.0 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." -- cgit v1.2.3 From 8f2b0a6d7437e73f777cfad809fb950c0f2c9491 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 6 Nov 2023 10:34:28 +0900 Subject: initial boot script to for pywal & wallpaper set --- config/hypr/configs/Execs.conf | 4 +++- config/hypr/initial-boot.sh | 27 +++++++++++++++++++++++++++ copy.sh | 20 ++------------------ 3 files changed, 32 insertions(+), 19 deletions(-) create mode 100644 config/hypr/initial-boot.sh (limited to 'copy.sh') diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index 9691e5cf..92771f61 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -3,10 +3,12 @@ $scriptsDir = $HOME/.config/hypr/scripts $themes = $HOME/.config/hypr/themes $lock = $scriptsDir/LockScreen.sh +# Initial boot script to start Pywal and Set wallpaper. This line and corresponding script can be safely deleted once logged in +exec-once = $HOME/.config/hypr/initial-boot.sh + # wallpaper stuff exec-once = swww query || swww init #exec-once = swww query || swww init && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png #using swww utility -#exec-once = swaybg -m fill -i $HOME/Pictures/wallpapers/mecha-nostalgia.png #using swaybg # Startup exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh new file mode 100644 index 00000000..a024ce63 --- /dev/null +++ b/config/hypr/initial-boot.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# THIS SCRIPT CAN BE DELETED ONCE BOOTED!! + +# A bash script designed to ran it only once dotfiles installed +# Check if a marker file exists. +if [ ! -f ~/.hyprland_startup_done ]; then + + # Check if the ~/.cache/wal directory exists + if [ ! -d ~/.cache/wal ]; then + printf " Initializing pywal........\n\n" + # Check if the ~/Pictures/wallpapers directory exists + if [ -d ~/Pictures/wallpapers ]; then + # Run wal with random wallpapers from ~/Pictures/wallpapers + wal -i ~/Pictures/wallpapers/* + echo "Pywal initialized" + fi + fi + + # Initializing the initial wallpaper and wal + exec ~/.config/hypr/scripts/Wallpaper.sh + + # Create a marker file to indicate that the script has been executed. + touch ~/.hyprland_startup_done +fi + + diff --git a/copy.sh b/copy.sh index 3215fdb7..5735cb6a 100644 --- a/copy.sh +++ b/copy.sh @@ -126,24 +126,8 @@ ln -sf "$HOME/.config/dunst/styles/dunstrc-dark" "$HOME/.config/dunst/dunstrc" & # Set some files as executable chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG" -# Check if the ~/.cache/wal directory exists -if [ ! -d ~/.cache/wal ]; then - printf "${NOTE} Initializing pywal........\n\n" - # Check if the ~/Pictures/wallpapers directory exists - if [ -d ~/Pictures/wallpapers ]; then - # Run wal with random wallpapers from ~/Pictures/wallpapers - wal -i ~/Pictures/wallpapers/* - echo "${OK} Pywal initialized" - else - echo "${ERROR} ~/Pictures/wallpapers directory not found." - echo "${WARN} Please make sure to have wallpapers in ~/Pictures/wallpapers." - fi -else - echo "${OK} ~/.cache/wal directory found. No action required." -fi - -# Initializing the initial wallpaper and wal -~/.config/hypr/scripts/Wallpaper.sh 2>&1 | tee -a "$LOG" +# Set executable for initial-boot.sh +chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG" printf "\n${OK} Copy Completed!\n\n" printf "${NOTE} Highly recommended to logout and re-login\n\n" -- cgit v1.2.3 From 13ac6bca222fc4a3061616947fc8aa49d918e597 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 6 Nov 2023 11:10:38 +0900 Subject: script --- copy.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'copy.sh') diff --git a/copy.sh b/copy.sh index 5735cb6a..1a30555f 100644 --- a/copy.sh +++ b/copy.sh @@ -30,6 +30,7 @@ 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_NO_HARDWARE_CURSORS,1/s/^#//' config/hypr/configs/ENVariables.conf sed -i '/env = WLR_RENDERER_ALLOW_SOFTWARE,1/s/^#//' config/hypr/configs/ENVariables.conf fi -- cgit v1.2.3