aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2023-11-30 20:05:46 +0900
committerGitHub <noreply@github.com>2023-11-30 20:05:46 +0900
commit7fb1b8f14185ca6fd2269d07d8c4b74e3d1b8297 (patch)
tree1ba308d0a9906a168e8251d7ff0d327b925b5fe2
parent592ce2027056eded49968619c21b2c54f1b1f0f9 (diff)
parenta0c53a56b931f3f4a10420347687f6d051acc8af (diff)
Merge pull request #46 from JaKooLit/v2.1.12
fix for rofi and rainbow borders
-rw-r--r--README.md2
-rwxr-xr-xconfig/hypr/scripts/PywalSwww.sh21
-rwxr-xr-xconfig/hypr/scripts/WallpaperRandom.sh4
3 files changed, 17 insertions, 10 deletions
diff --git a/README.md b/README.md
index 858951af..d7e53d9e 100644
--- a/README.md
+++ b/README.md
@@ -72,7 +72,7 @@ chmod +x release.sh
+ 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 possible solutions
-- check out this page [FAQ](https://github.com/JaKooLit/Hyprland-Dots/wiki/4.-FAQ)
+- check out this page [FAQ](https://github.com/JaKooLit/Hyprland-Dots/wiki/4.-FAQ) and [UNSOLVED ISSUES](https://github.com/JaKooLit/Hyprland-Dots/wiki/6.-Known-Issues)
### 🙋 QUESTIONS ?!?! ⁉️
- FAQ! Yes you can use these dotfiles to other distro! Just ensure to install proper packages first! If it makes you feel better, I use same config on my Gentoo and NixOS :)
diff --git a/config/hypr/scripts/PywalSwww.sh b/config/hypr/scripts/PywalSwww.sh
index db4d706a..d91d3f60 100755
--- a/config/hypr/scripts/PywalSwww.sh
+++ b/config/hypr/scripts/PywalSwww.sh
@@ -6,6 +6,9 @@ cache_dir="$HOME/.cache/swww/"
# Get a list of monitor outputs
monitor_outputs=($(ls "$cache_dir"))
+# Initialize a flag to determine if the ln command was executed
+ln_success=false
+
# Loop through monitor outputs
for output in "${monitor_outputs[@]}"; do
# Construct the full path to the cache file
@@ -17,17 +20,19 @@ for output in "${monitor_outputs[@]}"; do
wallpaper_path=$(cat "$cache_file")
# Copy the wallpaper to the location Rofi can access
- ln -sf "$wallpaper_path" "$HOME/.config/rofi/.current_wallpaper"
+ if ln -sf "$wallpaper_path" "$HOME/.config/rofi/.current_wallpaper"; then
+ ln_success=true # Set the flag to true upon successful execution
+ fi
break # Exit the loop after processing the first found monitor output
fi
done
+# Check the flag before executing further commands
+if [ "$ln_success" = true ]; then
+ # execute pywal
+ # wal -i "$wallpaper_path"
-# execute pywal
-wal -i $wallpaper_path
-
-# execute pywal skipping tty and terminal
-#wal -i $wallpaper_path -s -t &
-
-# more info regarding Pywal https://github.com/dylanaraps/pywal/wiki/Getting-Started
+ # execute pywal skipping tty and terminal changes
+ wal -i "$wallpaper_path" -s -t &
+fi
diff --git a/config/hypr/scripts/WallpaperRandom.sh b/config/hypr/scripts/WallpaperRandom.sh
index aafcf2ae..67a12adb 100755
--- a/config/hypr/scripts/WallpaperRandom.sh
+++ b/config/hypr/scripts/WallpaperRandom.sh
@@ -29,7 +29,9 @@ while true; do
done \
| sort -n | cut -d':' -f2- \
| while read -r img; do
- swww img "$img" && $pywal_script & $pywal_refresh
+ swww img "$img"
+ $pywal_script
+ $pywal_refresh
sleep $INTERVAL
done
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage