Closed ghost closed 8 months ago
For some info, I can add .gif to the swww directories and they worked as expected on swww.
For some info, I can add .gif to the swww directories and they worked as expected on swww. what's the path of swww? Can i add .mp4?
sadly no .mp4 for now on swww Look from https://github.com/Horus645/swww
But i guess the maintainer can pull off something just like this great repo.
For some info, I can add .gif to the swww directories
what's path of swww in your dotfiles? i saw it installed but i dunno where's the path.
~/.config/swww/
if you like to add wallpaper you can put it inside the folders.
~/.config/swww/(themename)
Uploading 2023-11-04 22-09-03.mp4…
I didn't saw my gif appear on mod + shift + T or mod + shift + W
It's because it's not cached. And make sure you're in the correct theme directory.
You can run the create_cache.sh script in the Hyprdots repo that you cloned to your $HOME folder
https://github.com/prasanthrangan/hyprdots/assets/137863476/058c7281-84bc-40f2-bcb9-1fb0b0da1552
I tried but i didn't see anything.
@T-Crypt can this be the culprit.?
Ow sorry @Akie3301 I think the script has been optimized to use to get jpg jpeg and png If you're comfortable to add "gif " yourself
here is the line
mapfile -d '' wpArray < <(find "${wallPath}" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -iname "*.gif" \) -print0 | sort -z)
Ow sorry @Akie3301 I think the script has been optimized to use to get jpg jpeg and png If you're comfortable to add "gif " yourself
here is the line
mapfile -d '' wpArray < <(find "${wallPath}" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -iname "*.gif" \) -print0 | sort -z)
Where's this line for me to change it?
He's right.
You need to change line 88 in
Hyprdots/Scripts/create_cache.sh
I guess I wont recommend to try it because our notification and wall bash relied on the image we can disable the wallbash but our notification is built to use wallbash script you may get inviisible notifications
But gif can absolutely be supported soon.
You could try this
~/.config/hypr/scripts/swwwallpaper.sh -s path/to/wallpaper
I guess I wont recommend to try it because our notification and wall bash relied on the image we can disable the wallbash but our notification is built to use wallbash script you may get inviisible notifications
But gif can absolutely be supported soon.
yes, i hope you also add webm.
BTW can I know where you got those sick .gifs?
BTW can I know where you got those sick .gifs?
https://safebooru.donmai.us/ I like to search the tags "animated scenery"
You could try this
~/.config/hypr/scripts/swwwallpaper.sh -s path/to/wallpaper
400
it works, but: ❯ ~/.config/hypr/scripts/swwwallpaper.sh -s /home/akie3301/Downloads/Gif/original_drawn_by_wujing_f45b1f7c94badf252a99007477e0d4ed2.gif
/home/akie3301/.config/hypr/scripts/swwwallbash.sh: line 34: /home/akie3301/.config/spicetify/Themes/Sleek/Wall-Dcol.ini: No such file or directory sed: can't read /home/akie3301/.config/spicetify/Themes/Sleek/Wall-Dcol.ini: No such file or directory sed: can't read /home/akie3301/.config/spicetify/Themes/Sleek/Wall-Dcol.ini: No such file or directory sed: can't read /home/akie3301/.config/spicetify/Themes/Sleek/Wall-Dcol.ini: No such file or directory sed: can't read /home/akie3301/.config/spicetify/Themes/Sleek/Wall-Dcol.ini: No such file or directory eDP-1: 1280x720, scale: 2, currently displaying: image: /home/akie3301/Pictures/wallpapers/wallhaven-y8982k_1920x1080.png ❯
@Akie3301
Just place those gifs in your pictures and run the command below
Swww img /home/(user)/Pictures/*.gif
Replace (user) with your user name and * with the name of the gif
On Monday, I'll work on adding gif support to the repo. I'm just on my mobile during the weekends
Yey, Looking forward for this.
https://github.com/prasanthrangan/hyprdots/assets/137863476/41d8dff2-acbd-405f-a24b-180e5911b005
Yey, Looking forward for this.
Do you know how to use gifgen? I use it for convert mp4 to gif (i don't use ffmpeg because my gif can have low quality.) I tried it but it has some error:
ya currently the scripts does not scan for gif files, this will require a rewrite to process gif files! I tied to use gifs initially, but swww does not play well with gif files as it slows down significantly...
I tried to just add in -o -iname "*.gif"
in both swwwallpaper.sh
and swwwallselect.sh
. It showed up in the menu, but without any preview, and when selected all my cpu cores went 100% until the screen shut off. I barely managed to revert the changes before rebooting! Did not show up as a new wallpaper, just froze on the old one.
yea i did that too same thing happened to me Even my swap got eatten, well dude said he have to rewrite the code to make it properly scan gifs.
I'll attempt first to rewrite... If someone already started a WIP maybe I can help with testing.
Would it be possible to fix mp4 the same way as gifs?
I'll attempt first to rewrite... If someone already started a WIP maybe I can help with testing.
UPDATES GIF : Made it work. Added [0] to each wallpaper calls to make the converter extract the very first frame
caveats: + swww might be Buggy on GIF. 2 Gifs overlap
MR is here so you everyone can test https://github.com/prasanthrangan/hyprdots/pull/849
to fix glitches swww kill ; swww init
@ArikRahman
Would it be possible to fix mp4 the same way as gifs?
So in swww it would not be possible. Might be possible to turn mp4 into gif or other types supported by swww but IMO user might more suitable converting it manually instead.
Read more : https://github.com/LGFae/swww?tab=readme-ov-file#features
BTW CPU usage peaks at 40%. averages between 10 % -20% CPU usage reading at 1000 ms
Preview: https://github.com/prasanthrangan/hyprdots/pull/849#issuecomment-1937008380
https://github.com/prasanthrangan/hyprdots/assets/53417443/8db771e0-8537-4b61-9a15-58577c213dbf
@Oskar-Idland @RookiexCookie @ArikRahman
The .gif support is out now! Try it out.
to fetch updates you guys can follow this too https://github.com/prasanthrangan/hyprdots/discussions/863#discussioncomment-8438180
Closing this for now as the title is fulfilled.
Can you add live wallpaper feature to your dotfiles?