Browse Source

fix: make pywall pickup correct output if monitor is disabled

pull/157/head
Dovydas 2 years ago
parent
commit
e4cf81239b
  1. 6
      config/hypr/scripts/PywalSwww.sh

6
config/hypr/scripts/PywalSwww.sh

@ -4,6 +4,7 @@
# Define the path to the swww cache directory
cache_dir="$HOME/.cache/swww/"
laptop_display_file="$HOME/.config/hypr/UserConfigs/LaptopDisplay.conf"
# Get a list of monitor outputs
monitor_outputs=($(ls "$cache_dir"))
@ -26,7 +27,10 @@ for output in "${monitor_outputs[@]}"; do
ln_success=true # Set the flag to true upon successful execution
fi
break # Exit the loop after processing the first found monitor output
# Check if the laptop display is not disabled
if grep -q "preffered" $laptop_display_file; then
break
fi
fi
done

Loading…
Cancel
Save