Last active
August 29, 2023 10:05
-
-
Save jack9603301/959484a39db52727b8c1459fbf66d94b to your computer and use it in GitHub Desktop.
Animated screen saver using swaylock-effects+mpv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /home/jack/.config/swaylock | |
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia mpv --fullscreen --loop-file screensaver.gif --no-resume-playback --save-position-on-quit=no --write-filename-in-watch-later-config & | |
MPV_PID=$! | |
swaylock -c 00000080 --clock --indicator & | |
wait $! | |
kill $MPV_PID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment