Massive Changes

This commit is contained in:
sankalp committed 2024-01-10 14:57:53 +05:45
1 parent 6a6d2f9689
commit 6fb75b53e3
18 files changed
+102 -51

No files matched your search

@@ -6,7 +6,7 @@
# up as the wallpaper at regular intervals
#
# NOTE: this script uses bash (not POSIX shell) for the RANDOM variable
linker=$HOME/.config/hypr/scripts/Linker.sh
if [[ $# -lt 1 ]] || [[ ! -d $1 ]]; then
echo "Usage:
@@ -29,8 +29,8 @@ while true; do
| sort -n | cut -d':' -f2- \
| while read -r img; do
# Create symbolic link to the current image
ln -sf "$img" $HOME/.config/hypr/.current_wallpaper
swww img "$img"
$linker
sleep $INTERVAL
done
done
+1 -2
View File
@@ -32,5 +32,4 @@ SWWW_PARAMS="--transition-fps ${FPS} --transition-type ${TYPE} --transition-dura
# Set the randomly selected wallpaper
swww img "${RANDOMPICS}" ${SWWW_PARAMS}
# Create symbolic link to the selected wallpaper
ln -sf "${RANDOMPICS}" "${hyprConfigDir}/.current_wallpaper"
${scriptsDir}/Linker.sh
@@ -83,5 +83,14 @@ main() {
exit 1
fi
}
# Check if rofi is already running
if pidof rofi > /dev/null; then
pkill rofi
exit 0
fi
main
sleep 0.5
${SCRIPTSDIR}/Linker.sh