# vim: set ft=make : # Set up Lossless Scaling vulkan layer. This mod enables lossless scaling compatibility in linux. Be sure to also install Lossless Scaling from Steam to internal storage. get-lsfg ACTION="prompt": #!/usr/bin/bash source /usr/lib/ujust/ujust.sh function check_lsfg_installed() { # Check new installation location if [[ -f "/usr/local/lib/liblsfg-vk.so" ]] && [[ -f "/usr/local/share/vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json" ]]; then echo "${green}${bold}lsfg-vk is installed and ready to use.${normal}" # Check legacy installation location elif [[ -f "$HOME/.local/lib/liblsfg-vk.so" ]] && [[ -f "$HOME/.local/share/vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json" ]]; then echo "${yellow}${bold}lsfg-vk is installed (legacy location) - consider reinstalling for latest version.${normal}" else echo "${red}${bold}lsfg-vk is not installed.${normal}" fi } OPTION={{ ACTION }} if [ "$OPTION" == "prompt" ]; then echo "" echo "Current Status:" check_lsfg_installed echo "" echo "${bold}lsfg-vk${normal} enables lossless scaling functionality for supported games." echo "" echo "Below you can install or remove ${bold}lsfg-vk${normal} directly." echo "" echo "What would you like to do with lsfg-vk?" echo "" OPTION=$(ugum choose "Install lsfg-vk directly" "Install Decky Plugin" "Uninstall lsfg-vk" "Exit without changes") elif [ "$OPTION" == "help" ]; then echo "Usage: just get-lsfg