-
-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a script to to toggle between current wallpaper and live wallpaper using mpvpaper #460
Conversation
mpv paper is just using wayyy too much resources.. no issues for high powered or high ram system.. but a dual core 2gb will just crawl |
even if it's not being used ? like if you don't apply it will it still consume resources in background ?if yes then we can close it otherwise i don't see any harm in it as users can easily toggle it |
not sure... reason why I cant merge yet is I have to check and test properly. I cant now since im fully occupied with work. I may have time to check next month |
Sure |
Bonjour, J'ai éditer un script pour mpvpaper dans la suite de JaKooLit je suis novice mais j'espère que ça peux vous aidez. `#!/bin/bash WALLPAPERS PATHwallDIR="$HOME/Pictures/wallpapers/Video" variablesfocused_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}') Fonction pour générer des miniaturesgenerate_thumbnail() { Ne générer la miniature que si elle n'existe pas déjàif [[ ! -f "$thumbnail_path" ]]; then echo "$thumbnail_path" Check if swaybg is runningif pidof swaybg >/dev/null; then Retrieve video files using null delimiter to handle spaces in filenamesmapfile -d '' PICS < <(find "${wallDIR}" -type f ( -iname "*.mp4" ) -print0) RANDOM_PIC="${PICS[$((RANDOM % ${#PICS[@]}))]}" Rofi commandrofi_command="rofi -i -show -dmenu -config ~/.config/rofi/config-wallpaper.rasi" Sorting Wallpapersmenu() { Sort the PICS arrayIFS=$'\n' sorted_options=( Place ". random" at the beginning with the random picture as an iconrandom_thumbnail=$(generate_thumbnail "$RANDOM_PIC") for pic_path in "${sorted_options[@]}"; do
done Choice of wallpapersmain() { Trim any potential whitespace or hidden characterschoice=$(echo "$choice" | xargs) No choice caseif [[ -z "$choice" ]]; then Random choice caseif [[ "$choice" == "$RANDOM_PIC_NAME" ]]; then Find the index of the selected filepic_index=-1 if [[ $pic_index -ne -1 ]]; then |
english please. Jak will look at it when he is back home from work. Which with the holidays will likely be next year before he can evaluate if he wants to add this or not. he also has the issue of feature parity with all the distros he is currently supporting. it's hard enough with different versions of Hyprland for ubuntu/debian. |
it's also something we have to support for all the distros. Means more testing on every update. My suggestion is post this as something people can add if they want to but not something not included in Jak's dotfiles. I don't see a large benefit to most users. I've seen resource issues when large images are loaded. |
I agree with the previous opinion: this script would be more appropriate as a customizable option rather than as a default feature in JaKooLit dotfiles. |
during installation just like how user is asked if he wan'ts to disable rainbow borders , maybe we can add a similar prompt asking if they want live wallpaper feature . |
… wallpaper
Pull Request
Description
Please read these instructions and remove unnecessary text.
Used mpvpaper to apply live wallpapers . Made a custom script and added super alt 2 to toggle between current wallpaper and live wallpaper . Path for live wallpaper is in wallpapers/livewallpaper/
They look nice
It needs mpvpaper for it . I installed it using ninja . I followed these steps
Clone
git clone --single-branch https://github.com/GhostNaN/mpvpaper
Build
cd mpvpaper
meson setup build --prefix=/usr/local
ninja -C build
Install
ninja -C build install
Type of change
Please put an
x
in the boxes that apply:Checklist
Please put an
x
in the boxes that apply:Screenshots
(if appropriate)
Additional context
Add any other context about the problem here.