Sync with latest

This commit is contained in:
Ayush Dumasia 2025-03-15 23:33:21 +05:30
parent d384f0c9fa
commit 6d26cd94fc
27 changed files with 4033 additions and 39 deletions

10
waybar/scripts/cava.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
is_cava_ServerExist=`ps -ef|grep -m 1 cava|grep -v "grep"|wc -l`
if [ "$is_cava_ServerExist" = "0" ]; then
echo "cava_server not found" > /dev/null 2>&1
# exit;
elif [ "$is_cava_ServerExist" = "1" ]; then
killall cava
fi
cava -p ~/.config/cava/config | sed -u 's/;//g;s/0/▁/g;s/1/▂/g;s/2/▃/g;s/3/▄/g;s/4/▅/g;s/5/▆/g;s/6/▇/g;s/7/█/g;'

View file

@ -5,7 +5,7 @@ if [ $(pgrep -c hyprpaper) -ne 0 ]; then
killall hyprpaper
fi
TARGET="$HOME/Downloads/Wallpaper"
TARGET="$HOME/Pictures/Wallpaper"
WALLPAPER=$(find "$TARGET" -type f -regex '.*\.\(jpg\|jpeg\|png\|webp\)' | shuf -n 1)
CONFIG_PATH="$HOME/.config/hypr/hyprpaper.conf"

View file

@ -0,0 +1,24 @@
#!/bin/bash
# Check if swww is running and kill it
if pgrep -x "swww" > /dev/null; then
killall swww
fi
TARGET="$HOME/Pictures/Wallpaper"
WALLPAPER=$(find "$TARGET" -type f -iregex '.*\.\(jpg\|jpeg\|png\|webp\)' | shuf -n 1)
if [ -z "$WALLPAPER" ]; then
echo "Error: No wallpapers found in $TARGET."
exit 1
fi
if ! pgrep -x "swww" > /dev/null; then
swww init
sleep 1
fi
swww img $WALLPAPER --transition-type outer --transition-fps=144 --transition-duration=1
echo "Wallpaper set to: $WALLPAPER"