hyprpm/hyprlock

This commit is contained in:
xsghetti 2024-02-26 00:59:53 -05:00
parent d4376c8ddf
commit e973ebbc15
39 changed files with 2500 additions and 7 deletions

View file

@ -0,0 +1,19 @@
#!/bin/bash
DIR=~/.config/wallpapers
PICS=($(ls ${DIR}))
RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]}
if [[ $(pidof swaybg) ]]; then
pkill swaybg
fi
swww query || swww init
#change-wallpaper using swww
swww img ${DIR}/${RANDOMPICS} --transition-fps 60 --transition-type any --transition-duration 2
wal -i ~/.config/wallpapers
~/.config/.scripts/swww.sh